I would just like to publicly thank Ken True of Saratoga Weather for his forecast scripts as over the last few weeks WuUnderground have changed their site agin and again and Ken without payment has re written his script and made is available to all of us for free where would we be without people like him, Thank you Ken.
If you want to check to see if your up to date the current ver on this date is WU-forecast.php V1.22(ML)
Thank you for the kind words, Bogget! I’m glad I can help the weather enthusiasts with scripting for their weather websites.
Fortunately, the source websites are usually slow to change, so updates to scripts are not often needed. WeatherUnderground has been an exception in this regard with one giant change, then a series of small (but significant) changes the last few weeks. I do hope their website tuning will be over soon.
It’s some kind of auto-block script they’ve engaged. You say the WU-history script is working ok now? Maybe they just haven’t tweaked the new scripting to re-allow our access. Still investigating …
Arrrg… bad news. Our WU-forecast.php script will not work in the future. I need to rewrite the script to use their JSON API instead.
Expect to have no WU-forecasts on your sites for several days as I work through generating the equivalent function using their API.
Oh boy what is wrong with them, OK they may want to update the site often that is up to them but they rely on our weather data in the large part, so why cant they leave a hidden page just as it is for us to get data from for our forcast page, i have seen many replys from them saying they are not trying to stop us getting our data yet here we are again, well as i said at the top thank god for Ken.
Current wugraphs-scripts should also be removed or at least hidden from public immedately as they are able to kill the webservers.
Tested here by trying to load 3 graphs (what never appeared) on a site living on same server as my site do and the dual-core webserver got almost killed (loads rised above 6), because the scripts never end. Only way to get ride of them was to restart whole webserver.
I talked via email with John Celenza of WeatherUnderground and the issue with the WU-forecast.php script was caused by an IP block by WunderGround on my server’s IP address. They have kindly removed the block, and the script works again.
I did do an update to WU-forecast.php V1.28 tonight to add the ability to follow the 301 redirect to their block.asp page, and cache the contents in the cache file. If it happens that you find no forecast, even after doing a ?force=1 to force a cache refresh, then check the contents of your cache file (do a view source on the page to find the name/location of the file), and in the file will be the text of the block page … you can use the IP address there to contact WU to ask the block be removed.
I also changed the request to include a User-agent: PHP,WU-forecast.php,saratoga-weather.org so they can identify that the request was made by the WU-forecast.php script (and that they should contact me for questions).
Sorry for the alarm … in short:
WU was blocking some IPs for excessive traffic (I think)
The script couldn’t get past the block, so stopped offering you a forecast.
the updated script V1.28 has diagnostics to help you put a request to WU to unblock if it happens to you
I am working (and about 80% finished) with a WU API JSON script and will release it later, but the WU-forecast.php can live on to serve
Hmm? i still can not get a forecast i have cleared cash and tried another computer that has never had my site on it still no forecast, am i missing something?
Lol…you say if it doesnt work do a view source and get the location??? OK if your a programmer maybe but what am i looking at??? i have no idea? :?
First, the script you’re running is not the updated one (V1.28) so it wouldn’t help diagnose the block.
Second, your cache file ./cache/WU-forecast-en.txt is not writable, so even if the script were updated, we’d not be able to read the cache file to see what address needs to be unblocked.
I suggest you update the script, and make the ./cache/ directory writable, the run the query again for further diagnostics.
Hi Ken, OK i will update now i assume this is the page we are talking about so i need a template from your site, and where is this cash and how do i make it writeable and why has it stopped being writable?
Ok updated now, i found a folder on both my back up of the website and on the website called cache and nothing in either? foler is not in anyway restricted as far as i know, and wc-forcast.txt is blank but properties say its writable i dont have a WU-forecast-en.txt and never have as far as i know?
Just created a WU-forecast-en.txt and uploaded it still not working?
As I mentioned, I’ve contacted WU support and asked them to unblock that IP… (i copied and pasted the last few lines from the cache file into the email)
The thing that concerned me was the error message…?? or is this just a consequence of the IP being blocked…?