Small change to actually print Vbat
This commit is contained in:
parent
fcc9c2f15b
commit
238f5d0160
@ -72,7 +72,7 @@ def on_message(client, userdata, msg):
|
|||||||
subtopics = top.split("/")
|
subtopics = top.split("/")
|
||||||
|
|
||||||
#Display atmospheric data from BME280 sensor
|
#Display atmospheric data from BME280 sensor
|
||||||
if subtopics[0] == "BME":
|
if subtopics[0] == "BME" or subtopics[0] == "SYS":
|
||||||
payload = msg.payload.decode()
|
payload = msg.payload.decode()
|
||||||
val = json.loads(payload)
|
val = json.loads(payload)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user