rtlamr-node
A wrapper for rtlamr in NodeJS. To use this, rtlamr must be in your $PATH.
Installation
npm install codetheweb/rtlamr-node
Usage
const rtlamr = ; // Get single meter readingrtlamr; // Get stream of multiple meter readingsrtlamr;
Make sure rtl_tcp
is running when using rtlamr-node
.
run()
takes the same arguments as the original rtlamr
. For example, to connect to a remote RTL_TCP server, you would pass in {'server': '192.168.0.xxx:zzzz'}
as an argument.
single()
takes an object with two properties, id
and timeout
. timeout
is in seconds and is optional.