Giter Site home page Giter Site logo

pvoutput.org loader for Sense users.

Setup

  1. Create a .env file or environment vairables containing API keys for sense and pvoutput.org
  2. use pipenv to install dependencies in pipfile.
  3. Run commands below

Live Status Loads

NOTE: live data (current watts generated, consumed, to/from grid, voltage) can be sent every 5 or 15 minutes. Daily Totals are only updated hourly this is a limitation of sense, and will match their API/UI.

Via Cron

The live.py file will load generation and consumpotion currents and totals, along with line voltage.

*/15 * * * * /usr/bin/python3 /WHEREVERYOUSAVETHIS/live.py 

Live Status at 5 Minute Interval

Backfilling

Backfill one day

# main.py YYYY MM DD
pipenv run python main.py 2020 02 01

Backfill many days

Just be aware of your API limits!

# main.py YYYY MM DD DAYS
pipenv run python main.py 2020 02 01 29 #leap year!
> Loading 29 days of data starting on 2020-02-01

Backfil yesterday

# no argument run
pipenv run python main.py

Backfille months of data

Authentication

SENSE_USER="YOUR EMAIL"
SENSE_PASSWD="SENSE PASSWORD"
PVOUTPUT_KEY="API KE FROM PV"
PVOUTPUT_ID="SITE ID FROM PV"

Eddie Webbinaro's Projects

atc icon atc

build scheduler and web interface

backstage icon backstage

Backstage is an open platform for building developer portals

bors-ng icon bors-ng

👁 A merge bot for GitHub Pull Requests

bosh-bamboo icon bosh-bamboo

Uses BOSH to manage bamboo, remote agents and postgres DB, including intelligent agent lifecycle

brew icon brew

🍺 The missing package manager for macOS

caddy icon caddy

Fast, cross-platform HTTP/2 web server with automatic HTTPS

circleci-dmz-orb icon circleci-dmz-orb

Allows CircleCI builds to access private network services over a intermediate jump host using SSH port forwarding.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.