Hi,
just tested Volumio 2.522 - so far, so great.
As I want to do some integration into my modernized tube radio, I started playing with the websocket API and the REST API.
Everyting (setting tracks, getting status, etc.) is working but I disovered that setting the volume doesn’t seem to work for webradio streams.
If I play a track from NAS a call like
curl localhost:3000/api/v1/commands/?cmd=volume&volume=25
will change the volume to 25 (web interface and getstatus confirm this).
If I do the same when a webradio is playing, the web interface shows NaN (not a number) and getstatus reports a null value for volume.
curl localhost:3000/api/v1/getstate
{"status":"play","position":1,"title":"","artist":"Absolut Radio Relax","album":null,"albumart":"https://radio-directory.firebaseapp.com/volumio/src/images/radio-thumbnails/Absolut Relax.jpg","uri":"http://stream.absolutradio.de/relax/mp3-160/radioplayer/","trackType":"webradio","seek":744829,"duration":0,"samplerate":"","bitdepth":"","channels":2,"random":null,"repeat":null,"repeatSingle":false,"consume":true,"volume":null,"mute":false,"disableVolumeControl":false,"stream":true,"updatedb":false,"volatile":false,"service":"webradio"}
Am I doing something wrong or is this a bug in volumio?
Kind regards
Stephan