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