[SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
I've been automating my LMS commands using Google Home/IFTTT/Home Assistant/LMS HTTP commands. I would like to send a command which will emulate pressing the Play button on my Squeezebox Boom remote. Specifically, if I have have paused playback on the Squeezebox Boom, turned it off, and then press the Play button, I want it to resume playback from where it left off (usually mid-song). However, when I execute the command below it always resumes playback from the *start *of the last track that was playing, rather than resuming mid-track: curl -X GET "http://192.168.1.10:9000/status.html?player=00:12:34:56:78:90&p0=play";' Is there an alternative API command that I can use to turn the Squeezebox Boom back on and resume playback from wherever in the track it was last playing? itm's Profile: http://forums.slimdevices.com/member.php?userid=17437 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
mherger wrote: > > curl -X GET > "http://192.168.1.10:9000/status.html?player=00:12:34:56:78:90&p0=button&p1=play";' > > I'd recommend using json/rpc rather than the legacy status.html: > > curl -X POST -d > '{"id":0,"params":["00:12:34:56:78:90",["button","play"]],"method":"slim.request"}' > > http://localhost:9000/jsonrpc.js > > > -- > > Michael Hi all (happy new year, BTW), How can I found the other commands ? I 'm looking for pause I tried : curl -X POST -d '{"id":0,"params":["68:5d:43:ea:28:60",["button","pause"]],"method":"slim.request"}' http://localhost:9000/jsonrpc.js but it doesn't work. Thanks ! LMS 7.9.0 on Linux Mageia 5 and RPI 3 1 SB3, 2 radio, 1 touch, 1 transporter SE Plugins : Trackstat, Smartmix, MusicIP, ... Antoniop's Profile: http://forums.slimdevices.com/member.php?userid=39292 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
How can I found the other commands ? I 'm looking for pause http://localhost:9000/html/docs/cli-api.html Replace localhost:9000 with your LMS IP address and port if needed. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
Thanks Michael, I had to look into the /usr/share/squeezeboxserver/IR/Default.map file indeed. The command to pause is curl -X POST -d '{"id":0,"params":["68:5d:43:ea:28:60",["button","pause.single"]],"method":"slim.request"}' http://localhost:9000/jsonrpc.js the same will resume play. I'll then configure my keyboard accordingly. Thanks to you all, that's great, exactly what I was looking for ! LMS 7.9.x on Linux Mageia 6 and RPI 3 1 SB3, 2 radio, 1 touch, 1 transporter SE, 1 chromecast audio Plugins : Trackstat, Smartmix, MusicIP, ... Antoniop's Profile: http://forums.slimdevices.com/member.php?userid=39292 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
There is a setting for this in LMS for every player. Have you looked there? karlek's Profile: http://forums.slimdevices.com/member.php?userid=64321 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
karlek wrote: > There is a setting for this in LMS for every player. Have you looked > there? Do you mean a setting specifically for the API command, or for the Play function itself (i.e. the one triggered by the remote control)? The Play function on the remote control works exactly as I want. itm's Profile: http://forums.slimdevices.com/member.php?userid=17437 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
That was what you was thinking of, yes. But now as you named it, I remember that it only was for pressing the Power button. Pity. Does that Boom react as desired if you press the Play button on the Boom itself? karlek's Profile: http://forums.slimdevices.com/member.php?userid=64321 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
I've been automating my LMS commands using Google Home/IFTTT/Home Assistant/LMS HTTP commands. I would like to send a command which will emulate pressing the Play button on my Squeezebox Boom remote. The command is called "button" :-). See the CLI documentation (http://htmlpreview.github.io/?https://raw.githubusercontent.com/Logitech/slimserver/public/7.9/HTML/EN/html/docs/cli-api.html) -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
mherger wrote: > > I've been automating my LMS commands using Google Home/IFTTT/Home > > Assistant/LMS HTTP commands. I would like to send a command which > will > > emulate pressing the Play button on my Squeezebox Boom remote. > > The command is called "button" :-). See the CLI documentation > (http://htmlpreview.github.io/?https://raw.githubusercontent.com/Logitech/slimserver/public/7.9/HTML/EN/html/docs/cli-api.html) > > -- > > Michael I've just tried the following and it wasn't accepted: Code: curl -X GET "http://192.168.1.10:9000/status.html?player=00:12:34:56:78:90&p0=button&p1=play";' itm's Profile: http://forums.slimdevices.com/member.php?userid=17437 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
curl -X GET "http://192.168.1.10:9000/status.html?player=00:12:34:56:78:90&p0=button&p1=play";' I'd recommend using json/rpc rather than the legacy status.html: curl -X POST -d '{"id":0,"params":["00:12:34:56:78:90",["button","play"]],"method":"slim.request"}' http://localhost:9000/jsonrpc.js -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
mherger wrote: > > curl -X GET > "http://192.168.1.10:9000/status.html?player=00:12:34:56:78:90&p0=button&p1=play";' > > I'd recommend using json/rpc rather than the legacy status.html: > > curl -X POST -d > '{"id":0,"params":["00:12:34:56:78:90",["button","play"]],"method":"slim.request"}' > > http://localhost:9000/jsonrpc.js > > > -- > > Michael Thanks for the tip. What's the advantage of POST/json over HTTP get - is it more secure? itm's Profile: http://forums.slimdevices.com/member.php?userid=17437 View this thread: http://forums.slimdevices.com/showthread.php?t=108863 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] API command to simulate Play button on Squeezebox Boom remote?
Thanks for the tip. What's the advantage of POST/json over HTTP get - is it more secure? No, it's no more secure than status.html. But it works. And you can use it to query the server, too. The response would be JSON formatted data which is much more reliable to parse. It's design to handle commands, whereas the status.html is a hack. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter