is there a jellyfin api which I could query to get the state if someone is actively watching or not?
The use case is following:
I'd like to turn off my server at night. Sometimes I stop at 12, sometimes at 1 or 2. If I could ask "is someone watching?" And it returns false, I could postpone the shutdown.
The current solution is to always turn off at 2 and turn on at 7.
I use one of those tiny mini PCs, with an AMD mobile CPU in it. It sips power but has enough oomph for transcoding when necessary. I'm sure the NAS that my library actually sits on uses way more power with its mechanical HDDs.