parent
c138ee7bf7
commit
b8dd1fbcf4
2
main.py
2
main.py
|
@ -76,7 +76,9 @@ def get_temperature():
|
||||||
debug_print("Added temperature sensor")
|
debug_print("Added temperature sensor")
|
||||||
|
|
||||||
print(get_water_level())
|
print(get_water_level())
|
||||||
|
debug_print("got water level")
|
||||||
print(get_temperature())
|
print(get_temperature())
|
||||||
|
debug_print("got temperature")
|
||||||
|
|
||||||
def mqtt_on_connect(client, userdata, flags, rc):
|
def mqtt_on_connect(client, userdata, flags, rc):
|
||||||
client.subscribe("strawberry-pi-greenhouse/relay/channel/1")
|
client.subscribe("strawberry-pi-greenhouse/relay/channel/1")
|
||||||
|
|
Loading…
Reference in New Issue