eliq2graphite

3.0.2 • Public • Published

eliq2graphite

Fetches power consumption from ELIQ and forwards them to Graphite.

NPM version Downloads Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i eliq2graphite

Weekly Downloads

2

Version

3.0.2

License

MIT

Unpacked Size

8.55 kB

Total Files

8

Last publish

Collaborators

  • ashpool