Remote control v. 2.x¶
Browser have embed http-server for remote control
Remote control can use for remote set active URL or for integration with same hardware, like RFID reader.
For enable remote control, you need active http-server, set port, hostname and secret.
In .KioskBrowser.json add lines:
{
"homeUrl": "https://example.com",
"httpServerIsEnabled": true,
"httpServerSecret": "***********",
"httpServerHostname": "0.0.0.0",
"httpServerPort": 8080
}
In linux only root can run application on port < 1024. For Linux you port must be more 1024, in example is 8080. For Windows you can use 80 port.
httpServerSecret - is optional password (API key) for access control.
httpServerHostname - ip or hostname for run http server. For local it can be “127.0.0.1” or “localhost”. For all IP of kiosk: “0.0.0.0”.
For set url you can use GET request on hostname and port:
http://127.0.0.1:8080/setUrl?key=*****&url=https%3A%2F%2Fexample.com%2Fpage.html
Status¶
You can get status of browser when enabled remote control.
For get status request you must enable embedded http-server (see Remote control section).
Send GET-request on url http://127.0.0.1:8080/status?key=*****, where host, port and secret setted in config httpServer params.
http://127.0.0.1:8080/status?key=*****
Screenshot¶
You can get screenshot of browser when enabled remote control with 10 seconds autoupdate.
Send GET-request on url http://127.0.0.1:8080/screenshot?key=*****, where host, port and secret setted in config httpServer params.
http://127.0.0.1:8080/screenshot?key=*****
For image in JPEG you can require screenshot.jpg http://127.0.0.1:8080/screenshot.jpg?key=*****
http://127.0.0.1:8080/screenshot.jpg?key=*****