Commit 33fa4695 authored by Daniel Kolibár's avatar Daniel Kolibár
Browse files

forgot to publish also temperature; adde fakebudka sofware

parent e41384bc
......@@ -52,6 +52,7 @@ async def readTemperatrue():
dht_sensor.measure()
temp = dht_sensor.temperature()
x = {'houseId': HOUSE_ID, 'temperature': temp}
mqtt_client.publish('birdie/temperature', json.dumps(x))
hum = dht_sensor.humidity()
y = {'houseId': HOUSE_ID, 'humidity': hum}
mqtt_client.publish('birdie/humidity', json.dumps(y))
......
FROM python:3
ADD main.py /
RUN pip install paho-mqtt
CMD [ "python", "./main.py" ]
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment