Example code for accessing pingStation surveillance data.
Several methods of accessing the data are provided.
- UDP
- WebSockets
- REST
Each example is provided as a Node script.
Node v6 [https://nodejs.org/en/] with NPM
Install module dependencies:
$ npm install
Then run the appropriate script:
$ node ./pingStation-REST.js
or
$ node ./pingStation-UDP.js
or
$ node ./pingStation-WS.js