I have the WU Binding installed and reporting from my Personal Weather Station located at my house. Problem is, Celsius does nothing for me. Is there a way to convert the measurements to U.S. formats? Thanks
please read the docs:
https://docs.openhab.org/addons/bindings/weatherunderground/readme.html
- language definition in the thing configuration (but I guess its english anyway? )
- unit definition in the items configuration
- please also have a look into your WU MyAccount online, thereās some configuration also which has influence on how the API reports for your API key
Excellent! Thank you @binderthā¦ I will check into those things you suggested.
and please report back, if it worked - or not. others looking for the exame things will heart you! (but normally, the whole world wants to display real units - not those fake ones )
Haha! You got it. Iāll check into it later today.
Reporting backā¦ I went into the Things configuration and was able to edit the temperature from CĀ° to FĀ°. Working great!
just changed the Topic to be more relevant for searches
I have the same issue, however I do not find a way to configure the unit in the .items file following the example in the documentation.
Number:Temperature Temperature "Current temperature [%.1f %unit%]" <temperature> {channel="weatherunderground:weather:CDG:current#temperatureā}
The value of this item is always displayed as Fahrenheit, whatever I put in as %unit%. In other bindings such as Weather it is possible to add something like āunit=fahrenheitā - how would I do this in this case?
Thanks for the help!
I donāt know about the %unit% trick, it seems there was a change in the binding or even in the distribution for this?
which version do you use? 2.3 with snapshots or 2.2 stable? (my guess is on the latter?)
-
if 2.2: please change the version in the docs (the docs always display latest version, here 2.3 unstable), you have to edit the unit in the channel:
Type temperature : current#temperature [ SourceUnit="F" ]
the %unit% trick wonāt work in 2.2. - if 2.3: Perhaps someone with a 2.3 WU-binding experience could help out here? whatās the %unit% thing all about?
ah! missed that one: itās second on Kaiās post:
I am using 2.3.0- Snapshot # 1246. I saw the %unit% parameter the first time, too, and it is from the current documentation of the binding. Thanks for the description of the way to do it in 2.2 as I was looking exactly for a way to do it in the channel, but couldnāt find it anywhere. Will let you know if it works.
Hi, in openhab 2.3 %unit% doesnāt work seem to work for the wunderground binding. I may be obtuse but I looked at the links provided, and wasnāt exactly clear how to set %unit%. But anyway, in the items file, if I have an item defined like this:
Number WU_MaxForcTemp2day "Forecast Max 2day [%.1f F]" <temperature> (weather) { channel="weatherunderground:weather:local:forecastToday#maxTemperature" }
Then it still appears in the PaperUI, or in my sitemap, in Celsius, but with an āFā after it. I also looked in the wunderground API page for my key, but I donāt see anyway to change the default units there.
OK I looked a bit further and figured out it. To save other people from reading all the links, I think I was confused because I had a number of items like
Number Temp_xxx
and didnāt understand properly that you now have to change them to a Temperature type, as in
Numeber:Temperature Temp_xxx
And for the %unit% setting, it is somewhat buried in the PaperUI under Configuration->System->RegionalSettings. Even that is not enough you have to click on Show More and then you can see the unit menu to set.
It would be nice to update the OpenHab doc to refer to the new Units in the Number setting. The examples are from 2.2 and still use Number variablename, so it is a bit confusingā¦