Giter Site home page Giter Site logo

diypowerflow's Introduction

diypowerflow

DIY Powerflow

This a DIY version of the powerflow screen on the Tesla powerwall app.

It gets its values from MQTT topics and uses websockets for pushing the values into the client interface.

It includes a solar kwh prediction mechanism which allows for flexible solar panels configuration. It bases on Yr.no and darksky.net API forecasts.

I currently use MPP PCM60x charger (Solar), Batrium BMS with a Shunt (Powerwall) and two SDM120 meters (House & Grid), and a raspberry PI to get the values from all those components and post them to MQTT.

I will include more documentation (maybe some videos) explaining better how to do this exactly for people who need it.

If you have the same or similar components (like other MPP inverters) I suggest you check out the ISO for the raspberry that Daniel Römer from DIY Tech and Repairs has prepared, since it includes already a lot of scripts which you can use and adapt for your own specific situation.

How to run it

It requires a running MQTT server from which to get its power values. Also it uses influx for the kWh values and powerwall SOC. So make sure you have both installed and running somewhere in your network.

Open project.js and configure it for your usecase. then run

npm install

to ensure all dependecies are available

and then run

node project.js

default port is 3333, change it in project.js if you need.

and point your favorite browser to

http://localhost:3333

in order for solar prediction mechanism to use darksky.net, you have to get an API key from https://darksky.net/dev

TODO/ROADMAP:

  • use grafana graphs for detailed information on each component
  • show detailed house consumption from sonoffs
  • improve dots animations, to better reflect current flowing
  • make additional energy sources, like generator and wind turbines.
  • ...? what ideas/suggestions do you have? join in!

diypowerflow's People

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.