Looking for flag or exposed attribute to query if roon is actively streaming

Hi all, first post. Does anyone know if there is a “roon streaming” flag or attribute I can see in the core on my server? I’d like to write a little script that disables suspend/sleep of my server when I’m listening. It sucks when jamming out and the system shuts down.

Home brewed PC with:
Ryzen 5 3600 processor
Radeon RX 590 GPU
16 G ram
MSI Tomahawk B450 MAX motherboard

Linux Ubuntu 22.04.1 LTS

Bluesound Node
Raspberry PI RoPieee

With the Ronn node.js API you can monitor the Roon zones.

1 Like

Thank you, I’ll do some work on that tomorrow.

If you are subscribed to a zone you get a call back on each change with the current state of this zone. There you find if it is paying or stopped. See Roon Transport API: JSDoc: Class: RoonApiTransport (roonlabs.github.io) and Zone object: JSDoc: Class: Zone (roonlabs.github.io)