danmed / Glow2MQTT

Apache License 2.0
10 stars 2 forks source link

Separate Sensors for Gas / Electricity? #2

Closed totalitarian closed 2 years ago

totalitarian commented 2 years ago

Love this script. Anyway to get the sensors separated into elec / gas?

danmed commented 2 years ago

yeah you can, pyglowmarkt allows for gas consumption to be collected too.

for example :

/usr/local/bin/glowmarkt-mqtt -u $glowuser -p $glowpass -c gas.consumption -t $mqtttopic_consumption --host $mqttip --mqtt-username $mqttuser --mqtt-pass $mqttpass

danmed commented 2 years ago

I've updated the consumption.sh to do gas readings too.