Skip to content

Tracearr: add enhanced support (streams/transcodes/bandwidth) - #981

Open
radugalbenu wants to merge 4 commits into
linuxserver:masterfrom
radugalbenu:tracearr-enhanced
Open

Tracearr: add enhanced support (streams/transcodes/bandwidth)#981
radugalbenu wants to merge 4 commits into
linuxserver:masterfrom
radugalbenu:tracearr-enhanced

Conversation

@radugalbenu

Copy link
Copy Markdown
Contributor

Follow-up to #974, which added Tracearr as a foundation app.

Verified against the Tracearr source (connorgallopo/Tracearr):

  • GET /api/v2/public/streams?summary=true returns { summary: { total, transcodes, direct_streams, direct_plays, total_bitrate, by_server } }
  • Auth is a Bearer token (trr_pub_...), generated in Settings → API Key

The tile shows Streams / Transcodes / Bandwidth from that one summary call. Includes the repo's standard Skip TLS verification toggle.

Auths with a Tracearr public API key (Bearer), hits
/api/v2/public/streams?summary=true, and surfaces active streams,
active transcodes, and total bandwidth on the dashboard tile.
Found via local integration testing: execute() can return null on
connection failure, and the old code called ->getBody() on it
unconditionally, throwing a fatal error instead of degrading the
tile. A missing/malformed summary also left $data empty, causing
"undefined variable" warnings in the livestats view. Default the
stats to zero and guard the null case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants