crccheck / opower-exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opower Exporter

Push your electricity usage to InfluxDB

Usage

  1. Set up your .env based on example.env.
  2. Scrape node index.mjs

To gather historical data, let Puppeteer open a browser and after it navigates to the latest day view, start clicking on the previous day. It will start saving .json files in the ./archive directory.

To push historical data to InfluxDB, run this command:

$ find archive -name "*.json" -exec ./push.mjs {} \;

About


Languages

Language:JavaScript 98.1%Language:Shell 1.9%