Skip to content
Fetches electricity consumption from Eliq and forwards it to Graphite
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
test
.editorconfig
.gitignore
.jshintrc
.travis.yml
LICENSE
Procfile
README.md
example.config.json
index.js
package-lock.json
package.json

README.md

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
You can’t perform that action at this time.