This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Reboot Chromecast
#2
I just needed to post here before I saw what I had to do:

This script reboots the Chromecast:

Code:
require'socket.http'
response_body = {}
request_body = [[{"params":"now"}]]
socket.http.request{
 url = "http://192.168.22.99:8008/setup/reboot";
   method = "POST";
   headers = {
   ["Content-Type"] = "application/json";
        ["Content-Length"] = string.len(request_body)
    };
    source = ltn12.source.string(request_body);
    sink = ltn12.sink.table(response_body);
}
 
I still cant force the screensaver back though.
Reply


Messages In This Thread
Reboot Chromecast - by BjornHBrudeli - 23.08.2017, 10:30
RE: Reboot Chromecast - by BjornHBrudeli - 23.08.2017, 11:51

Forum Jump: