Code Monkey home page Code Monkey logo

solar-report's Introduction

Solar Report

Gets solar energy production, household consumption, and net household consumption from Enphase Enlighten.

Usage

$ virtualenv env
$ . env/bin/activate
$ pip install -r requirements.txt
$ python report.py --start 3/4/20 --end 4/2/20

off peak consumption (< 08:00)          383.2 kwh
super off consumption (< 16:00)         221.1 kwh
peak consumption (< 21:00)              218.8 kwh

off peak production (< 08:00)           9.3 kwh
super off production (< 16:00)          781.5 kwh
peak production (< 21:00)               97.2 kwh

off peak net (< 08:00)                  373.9 kwh
super off net (< 16:00)                 -560.3 kwh
peak net (< 21:00)                      121.5 kwh

Follow the Enphase API Quickstart and replace ENPHASE_APP_KEY, ENPHASE_USER_ID, and ENPHASE_SYSTEM_ID in the script to hook up your own system.

This script uses the SoCal Edison time of use 4-9 rate plan (TOU-D-4-9). Change OFF_PEAK_END_HR, SUPER_OFF_PEAK_END_HR, PEAK_END_HR for different rate plans.

Pictures from my first "physical" side project

I installed my own 6.8 kW solar panel system in 2019 to take advantage of the 30% federal tax credit before it dropped. Not including four weekends of labor, it cost $11,200 after the credit and will pay itself off in about five years.

I modeled my permit application after a friend's, which made the whole permitting ordeal considerably more tractable than it would otherwise have been. Even so, it took about sixteen hours to design my system and write my permit, which was โ€” somehow? โ€” stamped on my first try. Inspection was also unexpectedly straightforward: after glacing at my electrical panel, the inspector signed off without even going on my roof! He said, "all those guys do a good job anyway." I held my tongue.

It took another several hours to finish my permission-to-operate application with SoCal Edison (SCE) and opt into net metering and time-of-use billing, which is required for net metering clients. I got an unexpectedly high first bill; my energy is delivered by SCE but generated by Clean Power Alliance (CPA). CPA has a surplus of solar energy, so it charges a negative super off peak rate. After switching over to SCE for generation, my already-improved electrical bill improved by nearly $50 per month.

alt text I built a trellis/ramp to make it easier to get twenty-one 50 lb panels on my roof.

alt text It took an entire day for me to find rafters and plan my roof penetrations with sidewalk chalk.

alt text Those boards on the rails on Enphase Microinverters.

alt text Here's the roof part of the finished product!

alt text Here's the ground part! The Enphase Envoy is on the left. It combines the two home runs from the roof, uses current transformers to monitor production and consumption, and reports those numbers at 15 minute intervals to the cloud.

solar-report's People

Contributors

hamikm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lfabing

solar-report's Issues

Follow up from HN comment

Hi Hamik,
If you could share a template from your permit application, it would be wonderful!
Thank you!

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.