|
Post by bekaheni on Jul 6, 2020 8:17:17 GMT -8
Hi All, Anyone any ideas how I can display Celsius instead of Fahrenheit on the skycamera.jpg image? Cheers Nick
|
|
|
Post by bekaheni on Jul 7, 2020 11:45:23 GMT -8
OK Was me!!! Its working now!
For some reason I had it in my brain that within the EnglishMetirc.txt file the value should zero for metric! Anyway once I changed the value to one then all worked!
|
|
|
Post by bekaheni on Jul 8, 2020 3:28:15 GMT -8
Hi All, Just in case folks want to show more info on the WeatherStem image! Like this :- I took the code from forum user Impactoz, but had to hack it a little as kept getting an error when running the code at this part:- "Span /Span" Note I am not a programmer, I am a cut and paste code guy!! Anyway this is what I had to change the code to :- # set up units
#wind
val = util.returnWindSpeed(state.ScurrentWindSpeed)
WindStval = "{0:0.1f}".format(val) + util.returnWindSpeedUnit()
val = util.returnWindSpeed(state.ScurrentWindGust)
WindGtval = "{0:0.1f}".format(val) + util.returnWindSpeedUnit()
val = util.returnTemperatureCF(state.currentOutsideTemperature)
OTtval = "{0:0.1f}".format(val) + util.returnTemperatureCFUnit()
val = state.currentTotalRain
RDval = "{0:0.1f}".format(val) + "mm"
val = state.currentSunlightUVIndex
if val < 3: UVval = "Low"
elif val >=3 and val < 6: UVval = "Moderate"
elif val >=6 and val < 8: UVval = "High"
elif val >=8 and val < 11: UVval = "Very High"
myText = "Fordel Camera %s Wind Speed: %s Wind Gust: %s Temp: %s Rain Today: %s UV: %s" % (dt.datetime.now().strftime('%d-%b-%Y %H:%M'),WindStval, WindGtval, OTtval, RDval, UVval) # myText = "Fordel Camera %s Wind Speed: %s Wind Gust: %s Temp: %s Rain Today: %s UV: %s " % (dt.datetime.now().strftime('%d-%b-%Y %H:%M'),WindStval, WindGtval, OTtval, RDval, UVval) Hope it helps some one Cheers Nick
|
|