Giter Site home page Giter Site logo

home-power-monitor's Introduction

Home-Power-Monitor

I create this project to monitor the power consumption for every room in my home.

web-interface

THe Circuit

final-product

Futures:

  • small enough to be placed in the fuse block
  • no external wires, data is exposed over wifi
  • use non invasive sensors for measurements of the current on every fuse
  • WiFi manager
  • OTA updates

EasyEDA link https://easyeda.com/marius.motea/power_meter

Components list:

  • 1 x ESP-12
  • 8 x SCT013 non invasive current sensors 30A
  • 8 x PJ-320A Phone Jack 3.5 mm
  • 2 x ADS1115
  • 1 x TPS-03 3.3v mini power supply
  • 1 x 2 pin header
  • 4 x 10K smd resistors
  • 8 x 22ohm smd resistors
  • 3 x 1uF smd capacitor

Acessing the ip of the device will return a json with power consumption on all 8 inputs

How it works

The device return an json on every http get request with the number of watts for every input (circuit). To put the data in the database you need to set a cron that run at a number of minutes (depending on requirements) and insert the values from json in the database. Credentials and device ip must be set first in config.php. On web interface access there is a SELECT in the database for the records in the last 30 days. Echarts javascript plugin is used to render the values in graphs. I upload my own setup were i use input8 for total consumption and this is displayed in a second graph.

crontab example for data fetching every 5 minutes:

*/5 * * * * php /var/www/html/powermeter/cron.php

home-power-monitor's People

Contributors

mariusmotea avatar

Watchers

 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.