berezhinskiy / ecoflow_exporter

Prometheus exporter for EcoFlow portable power stations
GNU General Public License v3.0
188 stars 29 forks source link

Automatically extract MQTT credentials from api.ecoflow.com #7

Closed berezhinskiy closed 1 year ago

berezhinskiy commented 1 year ago

The idea is to remove the prerequired step of obtaining MQTT credentials by a bash script. Python can do extraction logic. Environment variables MQTT_USERNAME and MQTT_PASSWORD will be changed to ECOFLOW_USERNAME and ECOFLOW_PASSWORD. I'd like to know the potential limitations of the number of mobile applications on EcoFlow's backend side since each new docker run will generate new MQTT credentials. Another option is to use MQTT_USERNAME and MQTT_PASSWORD in case the env vars are exists. Otherwise, MQTT credentials will be printed to STDOUT