sensorpush
This is a JavaScript/TypeScript npm module for the SensorPush API. It is lightweight; this module requires ZERO external modules, especially no big request
or node-fetch
module.
It is unofficial and I'm happy to hand ownership over to the sensorpush.com team, or another engineer they approve of.
Installation
npm install sensorpush
# or
yarn add sensorpush
A quick example
It's very easy to get all your sensorpush data in a NodeJs program.
const sensorpush = apiconst email = 'you@foo.com'const password = 'BO000yAH!' { try // autorize ourselves const authorization = await sensorpushoauth const accesstoken = await sensorpushoauth // get and print some data const sensors = await sensorpushdevices const gateways = await sensorpushdevices const samples = await sensorpush console catch err console }