Page 1 of 1

Weather Application

Posted: Mon Aug 05, 2013 2:24 pm
by Ankish khatri

I'm using worldweatheronline.com REST API. How can I use custom icons ?
icons can be changed using "weathercode" element in JSON response. But how to do that using javascript ?


Weather Application

Posted: Mon Aug 05, 2013 3:16 pm
by maxkatz

Please provide more details as to what exactly you are trying to do...


Weather Application

Posted: Mon Aug 05, 2013 3:24 pm
by Ankish khatri

I have read this tutorial - http://docs.appery.io/tutorials/build...
I want to change the icons according to the weather.
In the world weather API documentation, it is written that "Weather Condition Codes
Several API calls return a weather code field that contains information about whether it is sunny, rainy, or other weather conditions. To learn what these codes mean, download the tables at these locations:

•Download weather condition codes in tab-separated format: http://www.worldweatheronline.com/fee..."

So, weather icons can be changed using the weather code. But how ??


Weather Application

Posted: Mon Aug 05, 2013 3:46 pm
by maxkatz

Check what code you get from the service and based on that set the icon URL.


Weather Application

Posted: Mon Aug 05, 2013 5:46 pm
by Ankish khatri

Can you please explain it in more detail ?
How can set the icon URL ?


Weather Application

Posted: Mon Aug 05, 2013 5:50 pm
by maxkatz

You can map it from a REST service or via this JS API: http://docs.appery.io/javascript-api/