Skip to content

Commit a0a2814

Browse files
author
brentru
committed
default to fahrenheit
1 parent 0c9d684 commit a0a2814

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

IO_House_Series/Lights_and_Temp/io_house_light_temp.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
humidity_data = sensor.relative_humidity
9090

9191
# send data to adafruit io
92-
print('> Temperature: ', int(temperature_data))
93-
aio.send(temperature.key, int(temperature_data))
92+
print('> Temperature: ', int((temperature_data * 1.8)+32))
93+
aio.send(temperature.key, int(temperature_data * 1.8)+32)
9494
print('> Humidity :', int(humidity_data))
9595
aio.send(temperature.key, int(humidity_data))
9696

@@ -107,10 +107,9 @@
107107
strip.setPixelColorRGB(i, green, red, blue)
108108
strip.show()
109109

110-
111110
# get the outdoor light color picker feed
112111
outdoor_light_data = aio.receive(outdoor_lights.key)
113-
print('< Indoor Light HEX: ', outdoor_light_data.value)
112+
print('< Outdoor Light HEX: ', outdoor_light_data.value)
114113

115114
# convert the hex values to RGB values
116115
red = aio.toRed(outdoor_light_data.value)

0 commit comments

Comments
 (0)