How do change to Farenheit?
Could this be made a configuration setting in Paper UI?
How do change to Farenheit?
Could this be made a configuration setting in Paper UI?
This is currently not yet possible, we are still waiting for having https://github.com/eclipse/smarthome/issues/601 in place to come up with a good solution for it!
Any progress on this?
This is how I solved for it. (Change your location, and name as appropriate)
Things:
yahooweather:weather:grandblanc [ location=2412765 ]
Items:
Number TemperatureGrandBlancCelsius "Outside Temperature Celsius" { channel="yahooweather:weather:grandblanc:temperature" }
Number TemperatureGrandBlancFahrenheit "Outside Temperature Fahrenheit"
Number TemperatureGrandBlancHumidity "Outside Humidity" { channel="yahooweather:weather:grandblanc:humidity" }
Rule:
rule "Convert to Fahrenheit"
when
Item TemperatureGrandBlancCelsius received update
then
var Number current = TemperatureGrandBlancCelsius.state
var Number currentInFahrenheit = (current as DecimalType * 1.8) + 32
logInfo("Temperature", "TemperatureGrandBlancCelsius received update: " + current + " in Celsius = " + currentInFahrenheit + " in Fahrenheit.")
TemperatureGrandBlancFahrenheit.sendCommand(currentInFahrenheit)
end
Site Map:
Frame label="Weather in Grand Blanc, MI" {
Text item=TemperatureGrandBlancCelsius label="Now in Celsius [%s C]" valuecolor=[>25="orange",>15="green",<=15="blue"]
Text item=TemperatureGrandBlancFahrenheit label="Now in Fahrenheit [%s F]" valuecolor=[>77="orange",>59="green",<=59="blue"]
Text item=TemperatureGrandBlancHumidity
}