Hi! I searched the forum for this, but could not find a way to change the temp output from weather-phat.py to show Fahrenheit instead of Celsius. Is there a way to do this? I’m an American and live in the dark ages (in more ways than just this one! :( )
One way to do it is to just convert it with code.
(°C × 9/5) + 32 = °F or in plain English, Multiple by 9, then divide by 5, then add 32.
Exactly where would i add this code?
It goes between the reading the temperature, and displaying the temperature code in the python file your using.
Usually there is code to
Get temperature from sensor
and then code to
Display temperature on display
You you do a
Get temperature in from sensor
convert C to F
Display temperature “F” on display