Ankish khatri
Posts: 0
Joined: Fri Aug 02, 2013 11:24 am

Weather Application

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 ?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Weather Application

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

Ankish khatri
Posts: 0
Joined: Fri Aug 02, 2013 11:24 am

Weather Application

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 ??

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Weather Application

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

Ankish khatri
Posts: 0
Joined: Fri Aug 02, 2013 11:24 am

Weather Application

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Weather Application

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

Return to “Issues”