Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Endpoint to get active Jukebox connections #433

Open
5HT2 opened this issue Jul 7, 2024 · 0 comments
Open

API Endpoint to get active Jukebox connections #433

5HT2 opened this issue Jul 7, 2024 · 0 comments

Comments

@5HT2
Copy link

5HT2 commented Jul 7, 2024

I'd like to be able to have a couple Caddy / nginx webserver rules to redirect a subdomain on my local network to the most recent Jukebox session that was started.

I understand that not everyone would want a feature like this, I would just like to have a Jukebox always running on my network without having to turn on the "server" (client connected to the server which is being used as a play server for the household) monitor to see the QR code.

An endpoint to get the active Jukebox sessions would solve this for me, as I could implement the rest of what I want on my own webserver without too much trouble.

Unrelated but to add some context, currently I'm saving any /remote/[code] paths as requests and using the most recent one as a redirect location, to achieve this.


A sane default would be to require an admin token to access this API path.
In the JSON response it would be nice to be able to see the connection token as well as the start time of the session (maybe as a unix epoch, that would be the easiest way to parse it myself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant