Jun-24-2018, 10:33 AM
gontajones
I should have read all your answers not just the last
new script new error code
35.875
Traceback (most recent call last):
File "temp.py", line 10, in <module>
read_sensor(sID1) > read_sensor(sID2)
TypeError: unorderable types: NoneType() > NoneType()
I have got the temperatures but they are not being compared
Regards Paul
I love learning
I should have read all your answers not just the last
new script new error code
from mySensorModule import read_sensor from mySensors import sensorsID import time # accessing a dictionary: dict_name[key] = value sID1 = sensorsID['solar_panel'] sID2 = sensorsID['cyl_bottom'] while 1: read_sensor(sID1) > read_sensor(sID2) print("it's Hot!") time.sleep(1) else: print("Got it wrong again Dad")57.0
35.875
Traceback (most recent call last):
File "temp.py", line 10, in <module>
read_sensor(sID1) > read_sensor(sID2)
TypeError: unorderable types: NoneType() > NoneType()
I have got the temperatures but they are not being compared
Regards Paul
I love learning