github TheSpaghettiDetective/moonraker-obico v2.2.7

one hour ago

Changed

  • Janus's video relay now comes from the Obico server. Before, Janus always used turn.obico.io with the printer's auth token as the relay username and password, whatever server the printer was linked to. Now the server sends a relay address and a credential that expires after 7 days, and Janus's config is built from them. A server that sends no relay, such as an older or self-hosted server without a relay configured, runs Janus without one, which is what those printers effectively had before.

  • Janus reads its relay only when it starts, so the agent checks once an hour and, a day before the credential expires, fetches a new one and restarts video streaming. Anyone watching at that moment sees a gap of a few seconds, about once a week.

Tested on a Raspberry Pi linked to Obico's staging server: video played through the new relay from the web page and from the iPhone app. With the renewal window shortened to expire 10 minutes after startup, the agent fetched a new credential at its first hourly check, restarted Janus, and the relay accepted the new credential. 26 unit tests pass on Python 3.9.

These changes have been on master since Nov 24, so printers that update from the latest commit already run them. This release gives them a version number.

Versioned container image: ghcr.io/thespaghettidetective/moonraker-obico:v2.2.7 (digest sha256:0867f7124cda1a8dfb39c6515f0a553a2afe046c946d5da2ca2ee64b7edf5d89). Release commit: d26ed083fe7a162d913d194f0d7c659489fc482a.

Don't miss a new moonraker-obico release

NewReleases is sending notifications on new releases.