README
nodejs-collector (1.1.x)
This app reads data from Elitech RC-4 data logger and push them to a remote server. It uses the elitech-reader module.
Install
In your local machine, use npm:
npm install nodejs-collector -g
Running
nodejs-collector
Usage: nodejs-collector [OPTION] --list|--once|--loop (one is required)
-u, --url=<url> Webservice url. Eg: http://somehost.com/temperatureData. Default: false (it means that no data will be uploaded)
-i, --interval=<interval> Upload interval: interval between data upload. Default: 10 (unit: seconds)
-s, --size=<size> Maximun page site to upload data to server. Default: 1000
-p, --port=<port> Serial port. Default: false (it means that collector will try to retrieve it from operating system)
-o, --once Run measurement cycle once and exit.
-L, --loop Run measurement cycle in a loop. Type [ctrl+c] to exit.
-l, --list List serial ports
-h, --help display this help
Get it
Please feel free to get our code and improve it. You are welcome to be a contributor. Contact us!
git clone https://github.com/john-orr/collector.git
Finally
Cheers