Code Monkey home page Code Monkey 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

flarum-analytics icon flarum-analytics

A Flarum extension that provides your forum piwik's and google's analytics features

flask icon flask

The Python micro framework for building web applications.

github3.py icon github3.py

Hi, I'm a library for interacting with GItHub's REST API in a convenient and ergonomic way. I work on Python 2.7, 3.4, 3.5, and 3.6

go icon go

The Go programming language

goblync icon goblync

A Go library for interacting with BlyncLight devices

grafana icon grafana

The tool for beautiful monitoring and metric analytics & dashboards for Graphite, InfluxDB & Prometheus & More

graphiti icon graphiti

Decorate contribution graph for fun and profit

hid icon hid

golang HID API implementation

home-assistant-core icon home-assistant-core

:house_with_garden: Open source home automation that puts local control and privacy first.

homebrew-core icon homebrew-core

🍻 Default formulae for the missing package manager for macOS

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.