zw-rec
A library to communicate with an omega zw-rec device
Table of Contents
Install
npm:
npm install zw-rec
yarn:
yarn add zw-rec
Usage
const ZwRec = require('zw-rec');
/*
A config object can optionally be passed in the constructor. Default options are:
host = 192.168.1.200
clientUsername = login
clientPassword = 12345678
adminUsername = admin
adminPassword = 00000000
*/
//instatiate zeRec device
const zwRec = new ZwRec({
host: '172.17.1.17'
});
//get all thermocouple data
zwRec.getAllThermocouples().then(data => {
console.log(data)
});
//get a single thermocouple's data. Eg for deviceID 13
zwRec.getThermocouple(13).then(data => {
console.log(data)
});
//update thermocouple configuration
zwRec.setThermocouple({
deviceID: 13,
EDName: 'FLOOR_1',
EDSleepTime: 120, //expected update interval in seconds
EDOffset0: 0, //sensor 1 offset
EDOffset1: 0 //sensor 2 offset
});
//reboot the reciever
zwRec.rebootReciever()
Contributors
no one yet!
License
What is a license?