Remote control v. 1.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 config.js add lines:

var config = {
  homeUrl: "https://example.com",
  httpServer: {
    isEnabled: true,
    secret: "***********",
    hostname: "127.0.0.1",
    port: 8080
  }
}
module.exports = config;

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.

Secret - is optional password (API key) for access control.

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=*****