- 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
A Nagios plugin for the Delta Pro that queries the MariaDB database for status:
- check_ecoflow Python script
- grafana.json