Closed neilenns closed 2 months ago
Thinking about this a bit more, for my use case, I'd need a way to toggle the state of Rx without knowing the current state of the frequency. Maybe that could just be a POST request like this /Rx/toggle/SEA_GND
or similar, and it could return a JSON blob with the resulting state of the station ?
So the HTTP endpoint is deprecated, everything should go through WebSocket now, so we can add something like this in the web socket protocol if you prefer.
I updated the title to say websocket 😀
I like this idea aswell! +1
I'd like to be able to POST to an endpoint to enable/disable TX/RX for a station.
The use case is to create a StreamDeck button that will call the endpoint when pressed to enable/disable secondary stations that I listen to on the side but may want to turn off when they get busy. Something like
POST /station
with a JSON body like this: