JPHutchins / open-energy-view

View resource consumption trends, history, analysis, and insights.
https://www.openenergyview.com
Other
70 stars 11 forks source link
climate-change electricity electricity-consumption electricity-consumption-analysis electricity-consumption-forecasting electricity-meter energy energy-consumption energy-data energy-monitor home-automation iot

Open Energy View

The goal of this project is to analyze and present resource consumption data to users empowering them to conserve and save money.

Open Beta!

https://www.openenergyview.com

If you are a PG&E customer you can link your account now! If you are not a PG&E customer you can try the demo and talk to J.P. about integrating your utility.

User Interface

Interface

Design

Design

Development

Environment Setup (Ubuntu 20.04)

Process notes here: https://github.com/JPHutchins/open-energy-view/issues/31

The following notes are for setting up the environment with a Windows 10 host and Ubuntu 20.04 on WSL2. Please submit a PR if you find necessary adaptations on your environment.

Personally I use VSCode from the Windows host utilizing the "Remote - SSH" and "Remote - WSL" extensions.

Clone this repository

git clone git@github.com:JPHutchins/open-energy-view.git
cd open-energy-view

Install backend dependencies

Install frontend dependencies and build

Run the development server and workers

Example account setup

For first time setup you must register a user to your local database. Use something easily memorable and keep in mind that you can register as many users as you need while testing.

After simulating API calls and parsing the retrieved ESPI data (J.P.'s old data) you will be greeted with an OEV instance that will respond to changes in your local Python/Flask/Celery backend and React frontend.

Data Analysis

Averages

Data is presented always by Watt hour (Wh). This is so that the user can compare different time intervals to one another. It is not meaningful to compare 630,000 Watts consumed in the month of June to 30,000 Watts consumed last Tuesday. Rather, we would like to understand the intensity of usage (average) of different time intervals. Usefully, we can see that the average 1,250 Watt hours consumed last Tuesday is higher than the average 875 Watt hours consumed during June.

Partitions

A partition is a time interval that recurs each day. The default partitions are:

These partitions allow the user to develop conclusions about what activities are using the most resources.

Passive Consumption

Passive consumption is the amount of a resource a building will use even when no person is actively utilizing the energy. This is calculated statistically using a rolling mean and rolling standard deviation. This passive consumption metric can account for an outsized amount of electricity utilized in a building since it is by definition always consuming energy.

Presentation of this very useful metric allows users to understand the impact of passive appliances on their resource consumption as well as empowers them to find and disable devices that they do not need 24/7.

Activies Pie Chart

The activities pie chart shows the user how much power each activity consumed over the current time window.

Trends

Various trends are calculated to give the user realtime feedback on their resource conservation efforts.

Seasonal Trend

This tend shows about how much power the user is using during this "time of the year" this year vs this "time of the year" last year. The time range is +/- 14 days to attempt to mitigate the impact of statistical outliers like unseasonably hot or cold weather.

Active Use Trend

This trend shows the active use trend up to this point. Examples of active use:

https://www.energy.gov/data/green-button

https://green-button.github.io/developers/

http://www.greenbuttondata.org/

https://github.com/GreenButtonAlliance

https://github.com/JPHutchins/pgesmd_self_access