Adjustments on output
This commit is contained in:
6
smart.py
6
smart.py
@@ -15,8 +15,8 @@ import paho.mqtt.publish as publish
|
|||||||
# user= '1707910897002706169923_ECPR0002108185'
|
# user= '1707910897002706169923_ECPR0002108185'
|
||||||
user= '1707911515002706169998_ECPR0002107915'
|
user= '1707911515002706169998_ECPR0002107915'
|
||||||
password = 'V!lhanhan03'
|
password = 'V!lhanhan03'
|
||||||
# meter_id= '1EFR2375175891'
|
# smartmeter_id= '1EFR2375175891'
|
||||||
meter_id= '1EFR2375175878'
|
smartmeter_id= '1EFR2375175878'
|
||||||
|
|
||||||
# MQTT config
|
# MQTT config
|
||||||
broker= 'homeassistant'
|
broker= 'homeassistant'
|
||||||
@@ -94,7 +94,7 @@ for row in rows:
|
|||||||
|
|
||||||
# Ergebnisse ausgeben
|
# Ergebnisse ausgeben
|
||||||
for result in results:
|
for result in results:
|
||||||
print(result['timestamp']+ " " + result['value']+ " " + result['unit'])
|
print(result['obis']+ ": " + result['timestamp']+ " " + result['value']+ " " + result['unit'] + " (" + result['name'] +")")
|
||||||
|
|
||||||
|
|
||||||
s.close()
|
s.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user