Giter VIP home page Giter VIP logo

ecoflow-hacks's Introduction

My EcoFlow Delta Pro Hacks

Log selected Delta Pro metrics into a MariaDB database and control AC vs solar battery charging

  • ecoflow-logger Python script that uses:
    • ecoflow.py EcoFlow API module adapted from the vwt12eh8/hassio-ecoflow GitHub project
    • smartthings.py SmartThings API module
    • ecoflow-logger.timer Systemd timer that triggers ecoflow-logger.service once a minute
    • ecoflow-logger.service Systemd service file that executes the ecoflow-logger script

The ecoflow.py API module uses the reactivex module which is not available in the Fedora repositories I use. I use the following commands to create a virtual Python environment in which to run this script:

cd /opt/ecoflow 
python -m venv ecoflow-python
/opt/ecoflow/ecoflow-python/bin/pip install reactivex requests PyMySQL mysqlclient

The logger script can now be run with this command:

/opt/ecoflow/ecoflow-python/bin/python /opt/ecoflow/ecoflow-logger

Show the status of the Delta Pro on a Nagios dashboard

A Nagios plugin for the Delta Pro that queries the MariaDB database for status:

  • check_ecoflow Python script

Grafana dashboard using metrics from the MariaDB database

  • grafana.json

ecoflow-hacks's People

Contributors

dlk3 avatar

Stargazers

multiOTP 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.