Hello,
I’m having a problem with starting a web radio stream via the REST API on Volumio version 3.832. The system is installed on a USB drive and running on a Lenovo T420 PC.
The Issue: The web radio stream will not start when added and played via the command line (using curl).
Summary of Tests:
- Manual Control: When I start the radio from the Volumio web UI (My Web Radios), it works without any issues.
- API Commands: All the API commands I tested returned a successful response (
HTTP/1.1 200 OKand{"response":"success"}), but playback did not start.
Failing Commands: The following commands were tested for Radio Vlna (stream URL: http://stream.radiovlna.sk:443/vlna-hi.mp3). Despite the successful API response, playback did not begin.
Bash# Attempt to add to queue and play curl -i -X POST -H "Content-Type: application/json" -d "{\"uri\":\"http://stream.radiovlna.sk:443/vlna-hi.mp3\",\"title\":\"Rádio Vlna\"}" http://192.168.10.132/api/v1/addToQueue curl "http://192.168.10.132/api/v1/commands/?cmd=play"
Working Command: The only command that successfully started playback was one that explicitly defined the type and service of the stream as a “webradio.”
Bash# Working command curl -X POST -H "Content-Type: application/json" -d "{\"service\":\"webradio\",\"type\":\"webradio\",\"title\":\"Rádio Vlna\",\"uri\":\"http://stream.radiovlna.sk:443/vlna-hi.mp3\"}" http://192.168.10.132/api/v1/replaceandplay
Conclusion and Question: It seems the API requires the specific parameters "service":"webradio" and "type":"webradio" for correct playback initialization, while the addToQueue and play commands do not work without them, even when the API returns “success.”
Is this the expected behavior of the API, or is this a bug in this version of Volumio?
Thank you for your help.