default to fahrenheit

This commit is contained in:
brentru 2018-08-25 12:52:18 -04:00
parent 0c9d6840a8
commit a0a2814fb6

View file

@ -89,8 +89,8 @@ while True:
humidity_data = sensor.relative_humidity humidity_data = sensor.relative_humidity
# send data to adafruit io # send data to adafruit io
print('> Temperature: ', int(temperature_data)) print('> Temperature: ', int((temperature_data * 1.8)+32))
aio.send(temperature.key, int(temperature_data)) aio.send(temperature.key, int(temperature_data * 1.8)+32)
print('> Humidity :', int(humidity_data)) print('> Humidity :', int(humidity_data))
aio.send(temperature.key, int(humidity_data)) aio.send(temperature.key, int(humidity_data))
@ -107,10 +107,9 @@ while True:
strip.setPixelColorRGB(i, green, red, blue) strip.setPixelColorRGB(i, green, red, blue)
strip.show() strip.show()
# get the outdoor light color picker feed # get the outdoor light color picker feed
outdoor_light_data = aio.receive(outdoor_lights.key) outdoor_light_data = aio.receive(outdoor_lights.key)
print('< Indoor Light HEX: ', outdoor_light_data.value) print('< Outdoor Light HEX: ', outdoor_light_data.value)
# convert the hex values to RGB values # convert the hex values to RGB values
red = aio.toRed(outdoor_light_data.value) red = aio.toRed(outdoor_light_data.value)