From 31b5c5589459fd25453e4eea86b0f8cb74d94f8b Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 26 Feb 2022 21:36:08 -0800 Subject: [PATCH] Set publisher topic. --- chime/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chime/main.py b/chime/main.py index 249d957..df8a91a 100644 --- a/chime/main.py +++ b/chime/main.py @@ -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)