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 ?
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 ?
Please provide more details as to what exactly you are trying to do...
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 ??
Check what code you get from the service and based on that set the icon URL.
Can you please explain it in more detail ?
How can set the icon URL ?
You can map it from a REST service or via this JS API: http://docs.appery.io/javascript-api/