Hi Paul thanks for your work!
I have one more request, I'm trying to play one radio from home
assistant but it looks like there's no way to play it directly.
Is there a way to start playback of a radio inside your plugin via RPC
command?
I can see the plugin via RPC at the moment:
curl -g -X POST -d
'{"id":1,"method":"slim.request","params":["xx:yy:eb:02:18:83",["radios","0","2"]]}'
http://192.168.178.zz:9000/jsonrpc.js
{"method":"slim.request","params":["xx:yy:eb:02:18:83",["radios","0","2"]],"id":1,"result":{"count":12,"radioss_loop":[{"weight":1,"cmd":"radionowplaying","icon":"plugins/RadioNowPlaying/html/images/RadioNowPlaying_svg.png","type":"xmlbrowser","name":"Radio
Now
Playing"},{"weight":5,"cmd":"presets","icon":"/plugins/TuneIn/html/images/radiopresets.png","type":"xmlbrowser","name":"My
Presets"}]}}%
And I was able to play the radio adding it to preferites:
curl -g -X POST -d
'{"id":1,"method":"slim.request","params":["xx:yy:eb:02:18:83",["favorites","playlist","play","item_id:0082ffbf.10"]]}'
http://192.168.178.zz:9000/jsonrpc.js
Is there any "cleaner" way to do it?
Thanks!
Davide
------------------------------------------------------------------------
tdave81's Profile: http://forums.slimdevices.com/member.php?userid=73101
View this thread: http://forums.slimdevices.com/showthread.php?t=115201
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins