Skip to content

epiqsolutions/skylight-client-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example code for a client connecting to Skylight

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published