Reboot Chromecast - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Reboot Chromecast (/showthread.php?tid=955) |
Reboot Chromecast - BjornHBrudeli - 23.08.2017 Hi, I'm struggling with controlling a Chromecast from LM. I'm using this script provided by Erwin: Code: -- ****** Control Chromecast with 1 byte object version 1.0 created by Erwin van der Zwart ******* -- From my windows command line I can reboot the chromecast by doing this: curl -Lv -H Content-Type:application/json http://192.168.22.99:8008/setup/reboot -d "{""params"":""now""}" and start youtube with this: curl -Lv -H Content-Type:application/json http://192.168.22.99:8008/apps/YouTube -d v=_iuBO1lkch8 I would like to do a reboot and get the homescreen/screensaver running from the LM. I've added: Code: -- Action on value 4 But the response is 400 bad request (from Wireshark). I've tried changing the parameters to "{""params"":""now""}", [["{""params"":""now""}" ]] and all possible variations in between. I'm out of clue. Would anyone help me? Best regards Bjorn RE: Reboot Chromecast - BjornHBrudeli - 23.08.2017 I just needed to post here before I saw what I had to do: This script reboots the Chromecast: Code: require'socket.http' I still cant force the screensaver back though. |