Skip to content

A dashboard to get a great view on your energy usage/production.

Notifications You must be signed in to change notification settings

Peter-Slump/energy-dashboard

Repository files navigation

Energy Dashboard

A dashboard to keep track of your energy usage.

screenshot.png

Docker compose setup

  1. Install app:
$ git clone git+https://github.com/peter-slump/[email protected] $ docker-compose up
  1. Create superuser:
$ docker exec -it energydashboard_energy-dashboard_1 ./energy_dashboard/manage.py createsuperuser
  1. Visit the admin http://127.0.0.1:8080/admin/:
$ Log in and create some power meters.
  1. Visit the dashboard http://127.0.0.1:8080/

Quick setup

  1. Create virtual environment (Optional but highly recommended):

$ mkdir -p ~/.virtualenvs && virtualenv --python=python2 ~/.virtualenvs/energy-dashboard

$ source ~/.virtualenvs/energy-dashboard/bin/activate

  1. Install app:

$ pip install git+https://github.com/peter-slump/[email protected]#egg=energy-dashboard

$ energy-dashboard install

  1. Run server:
$ cd energy_dashboard && ./manage.py runserver

Development

Python

Setup environment:

$ make install-python

Run Python tests:

$ python setup.py test

Load dummy data:

$ ./manage.py load_dynamic_fixtures

Front-end

Build development front-end bundle:

$ npm run webpack-dev

Build production front-end bundle:

$ npm run webpack-prod

About

A dashboard to get a great view on your energy usage/production.

Resources

Stars

Watchers

Forks

Packages

No packages published