I need to create a weather widget. Widget means it should be a table or div where my weather details are displayed. Also I need some api without any limits and free to use to display the weather conditions?
If the API can return data in json format, it will be great. From basic understanding i know that weather.com, google and yahoo have apis. which one is better
You can go ahead with yahoo YQL. It gives you response in json format if needed.
You can use select query to weather_forecast table and fetch necessary data. Here is a nice article explaining how to achieve this. even how to display images based on weather conditioin.
http://jobyj.in/api/create-a-weather-widget-using-jquery-yql-and-weather-com/
You need to know how ajax calls are done using jquery to understand this how-to
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With