Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.13 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.13 KB

Skylight Client Example Scripts

This repo contains JavaScript example client code for the Skylight HTTP API.

Basics

When using a stock PRiSM device, the default API URL is the following:

http://192.168.3.1:3030/sklt/

For example, to get the device's status summary, you can enter the following URL in your web browser's address bar

http://192.168.3.1:3030/sklt/status/

Run a script

This repo contains executable scripts that provide examples for performing various operations via the API. To run them, you must first install Node.js

Install dependencies

npm install

Example - Start a Survey

Example:

node start-survey.js --remote 192.168.3.1:3030 --rx-port J3 ./examples/example-survey-lte.json

NOTE: 192.168.3.1:3030 is the default remote address and J3 is the default rx-port, so these options can technically be omitted on a stock setup.

--help

run node <script-name> --help to get info about arguments for each script