Here is what I did, I searched the internet and I found it necessary to make a weather API to get the weather on his site, I registered on several sites and I followed the documention and here I am lost.
how to integrate a weather like on the site http://calypsopark.com ? or what are the steps to follow to get the exact same thing ?
If you want to do this with Javascript / jQuery, you can use a simple $.getJSON call to fetch the data:
$.getJSON('http://api.wunderground.com/api/<your-api-key>/forecast/q/CA/San_Francisco.json')
.done(function(data){
// Do something with data here
});
The data for the current day, and the forecast for the next 3 are in the array data.forecast.simpleforecast.forecastday. I’ve put together an example of how you could display a widget like the one on the calypso park website:
thank you very much for your warm support, since I am a beginner in this field I do not know why you integrated the html in the script, and I tried your script and nothing appears on my browser, this is what I added:
This looks to me like it shows / hides the panel with the weather forecast for the next 3 days, as on the Calypso Park site? It’s not necessary for my example to work.
The problem with your first JS Fiddle is that you can’t link directly to the script t.min.js online - I’ve put the example code online, so you can see it working: www.nilsonjacques.com/projects/weather/
If you want to get the code running on your own computer or server, you’ll need to download the file t.min.js from the github repository and put it in the same folder as your HTML file.
Thank you very much fretburner ,you’re a star devellopement, you’re a very good develloper, brilliant, nothing to say.
Here is a screenshot here that shows what I say, that my problem is resolved
Thank you so much for all your help I really appreciate it , it’s been four days that I look for a solution to that, and thanks to you my problem is solved , Thank you so much really you saved my life .Very good communication, helpful and quick support. I was able to find the right solution by the answer you provided. Short in words, 10 stars out of 10. Thanks & Best Regards!
Hello fretburner,
please one last question, is there a way to replace the weather icons provided by wunderground with other more stylized icons.
Have a wonderful day
The forecast data for each day includes a property called ‘icon’ (with values like ‘clear’, ‘cloudy’, ‘mostlycloudy’ etc) which you could use. Change this line in the detail_tmpl from: