zw-rec

1.0.9 • Public • Published

zw-rec

made with lass

npm downloads

A library to communicate with an omega zw-rec device

https://www.omega.com/en-us/control-and-monitoring-devices/wireless-monitoring-devices/wireless-receivers/p/ZW-REC-Series

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?

Package Sidebar

Install

npm i zw-rec

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

344 kB

Total Files

14

Last publish

Collaborators

  • ryanalbrecht