Giter Site home page Giter Site logo

gargravarr2112 / powermeter_hub_server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aarond10/powermeter_hub_server

0.0 1.0 0.0 298 KB

A small web sever for logging power usage data from the Efergy Engage Hub without internet/cloud access.

License: GNU General Public License v2.0

Python 68.79% HTML 31.21%

powermeter_hub_server's Introduction

powermeter_hub_server

A small web sever for logging power usage data from the Efergy Engage Hub without internet/cloud access.

These devices are sold for ~$120 AUD and the hardware looks quite well built. Sadly, the firmware transmits all your meter data to a server run by a third party in the UK and all access to the data is via efergy's web portal, Android or iPhone apps.

This project provides a simple HTTPS server that you can redirect your hub to traffic to that will act like their cloud infrastructure and allow you to gather the raw meter readings into an sqlite3 database where you are free to use the data as you please (or use the device without an internet connection, etc).

Requirements

  • Python2.6+
  • PyOpenSSL

I'm also using linux on a Raspberry Pi for this and haven't tried on other platforms. To direct the traffic to the SSL server, you'll need either to run your own DNS server to resolve all *.sensornet.info addresses to the local machine or leave the DNS alone and use iptables to redirect traffic.

Installation

Under linux, something like this:

$ sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080
$ python ./hub_server.py

There is also a little viewer app you can run to see data but it's not exactly scalable. Using this long term isn't really an option:

$ python ./web_server.py

This will give you a webserver at http://localhost:8081/ that will render your power usage with dygraph.

powermeter_hub_server's People

Contributors

aarond10 avatar randomdude avatar

Watchers

James Cloos avatar

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.