Set publisher topic.
This commit is contained in:
@@ -73,7 +73,7 @@ def main(credspath='/etc/chime/creds.dat', logpath='/var/lib/pht.csv'):
|
||||
reading = sensor.reading()
|
||||
show_temperature(reading)
|
||||
write_reading(logfile, reading)
|
||||
publisher.publish(reading.json())
|
||||
publisher.publish(reading.json(), b"pht")
|
||||
db.store(reading)
|
||||
sleep(120)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user