dhogborg / off-peak

Analyze energy usage
GNU Affero General Public License v3.0
46 stars 10 forks source link
energy-data golang kubernetes react tibber typescript

Off-peak

This tool reads your consumption data on an hour-by-hour interval and calculates how your household performs against the average, and how much you saved by using hour metering.

This tool is possible thanks to the wonderful API (and people) at Tibber.

The project can be viewed and used on https://offpeak.se

Configuring credentials

Server

In server/, copy client.example.env to client.env, fill in the application credentials from Tibber in the new file. This is only possible (and necessary) for developers with full production access and to test the authentication.

If building a docker image and testing the production build, use docker.env in the project root. This is not recommended.

Running without credentials

Using this method you can develop most aspects of the site, except the login flow. To use the snapshot functionality you can create your own firebase project and use those credentials.

Setup

Running

Run make run in the server/ folder, this starts the backend. Run make run in project root, this starts the frontend dev server.