Skip to content

API Endpoint to get active Jukebox connections #433

@5HT2

Description

@5HT2

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions