This page last changed on Sep 10, 2013 by louise35.

Hello,

On the screen, I want to have the weather. I'm using an API which come from : http://www.wunderground.com/weather/api/d/docs?d=data/index&MR=1

I can display the weather (Cloudy, Chancerain, Sunny) but I want to have the icon which corresponds. All icons are here: http://www.wunderground.com/weather/api/d/docs?d=resources/icon-sets&MR=1

I enter on my http command : http://api.wunderground.com/api/MY_KEY/conditions/lang:FR/q/fr/MY_TOWN.xml
XPath Expression: //response/current_observation/weather

Someone can help me,
Thank you in advance,

Louise

Your command seems OK. With that command make a sensor of type:Custom, where you enter all the possible weather types.
You than must download all the possible images. Next in one of your screens add an image widget. Select the Sensor you just created. Than under sensor state you can bind the images to the weathertypes.
(See here how I did it with heating symbols Under Implementation example, click on second and third screenshot to see full image))

Pieter

edit: Descriptions related to icons are here: http://www.wunderground.com/weather/api/d/docs?d=resources/phrase-glossary

Posted by pz1 at Sep 10, 2013 14:56

Did this work for you?

Posted by pz1 at Sep 16, 2013 08:33

Yes I think. But I can't use this (wunderground) api, this have a limit of time. Did you know an other?
Thank you for your answer!
Did you know if we can send mail?

Thank you!

Posted by louise35 at Sep 16, 2013 09:01

I do use the free version of Wunderground. To reduce the number of calls I make a download of the complete xml tree every 15 minutes or so as I decribed it here: http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Use+XML+Data+Sources. Last section Availability of XML data. As a matter of fact I now use crontab to get the data, since the timed shell executes proved to be very unreliable.

Posted by pz1 at Sep 16, 2013 09:10
Document generated by Confluence on Jun 05, 2016 09:41