Installation
npm install rtstat
Initialization
var rtstat=require('rtstat')
Overview
You can get tstat objects directly (with an ipaddress):
var tstat=rtstat
or through discovery:
var tstats=tstat;
which returns a promise that will resolve to an object with tstat uuids as keys and tstat objects as, um, objects
tstats;
API
Once you have a thermostat object, you can call methods on it that correspond to endpoints in the official API.
- sys
- tstat
- datalog
- name
- model
- ttemp
The module currently only supports read properties of the thermostats. Writing to the thermostat is forthcoming.