Set publisher topic.

This commit is contained in:
Kyle Isom 2022-02-26 21:36:08 -08:00
parent 4800307b49
commit 31b5c55894
1 changed files with 1 additions and 1 deletions

View File

@ -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)