eliq2graphite
v3.0.2
Published
Fetches energy consumption from Eliq and forwards it to Graphite
Downloads
56
Readme
eliq2graphite
Fetches power consumption from ELIQ and forwards them to Graphite.
Install
npm install eliq2graphite
Setup
Environment variables
eliqAccesstoken=...
format=eliq
hostedGraphiteKey=... (optional)
url=plaintext://127.0.0.1:2003/
Formatting
The format string can be anything, e.g home.power
Usage
eliq2graphite [--age number-of-hours] [--resolution hour|6min]
Options
- -a, --age=number of hours (default 2 hours)
- -r, --resolution=6min|hour|day (default 6min)
- -n, --now
- -h, --help (show this)
Examples
eliq2graphite
is ideally run as a cron job
crontab -e
Fetch energy and average power:
... default settings: last 2 hours with 6 minutes resolution
*/6 * * * * node <path to>/eliq2graphite/.bin/eliq2graphite
... last 3 hours with 6 minutes resolution
*/6 * * * * node <path to>/eliq2graphite/.bin/eliq2graphite -a 3 -r 6min
... last 24 hours with 1 hour resolution
0 * * * * node <path to>/eliq2graphite/.bin/eliq2graphite --age 24 --resolution hour
... last 4 days with 1 day resolution
0 0 * * * node <path to>/eliq2graphite/.bin/eliq2graphite --age 96 --resolution day