cloudy

Author Topic: Ken True of Saratoga Weather  (Read 1527 times)

0 Members and 1 Guest are viewing this topic.

Offline Bogget

  • Posts: 125
  • Grimsby Lincolnshire UK
    • Grimsby Weather
Ken True of Saratoga Weather
« on: September 18, 2011, 09:16:47 AM »
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)

Bogget

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
    • Saratoga Weather
Re: Ken True of Saratoga Weather
« Reply #1 on: September 18, 2011, 01:59:48 PM »
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.

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Bogget

  • Posts: 125
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #2 on: February 02, 2012, 05:44:33 PM »
Hi Ken i see they are at it again 2/feb 2012 no forcast page i assume they have change dthe site again, do you have an update for it please.

Bogget
www.realweather.net

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 10.0
    • Saratoga Weather
Re: Ken True of Saratoga Weather
« Reply #3 on: February 02, 2012, 05:55:06 PM »
Hmmm..

Something is afoot with WU.  The contents of the page requested returns:
Code: [Select]
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Feb 2012 18:52:11 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
Cache-control: no-cache, no-cache="Set-Cookie", private
Expires: Fri, 01 Jan 1999 00:00:00 GMT
Pragma: no-cache
Location: http://english.wunderground.com/block.asp
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

48
Redirect page<br><br>
There is nothing to see here, please move along...
0

I'll have to investigate further...
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,336
  • Mauston, WI, USA
  • OS/Browser:
  • Win XP
  • Firefox 9.0.1
    • Juneau County Weather
Re: Ken True of Saratoga Weather
« Reply #4 on: February 02, 2012, 05:58:20 PM »
Ken,

That's the same thing we had with the WU-History script in another thread and that just started working again for us.

- Jim

 Home of NSLog NexStorm Lightning Data Manager

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 10.0
    • Saratoga Weather
Re: Ken True of Saratoga Weather
« Reply #5 on: February 02, 2012, 06:00:21 PM »
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 ...
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 10.0
    • Saratoga Weather
Re: Ken True of Saratoga Weather
« Reply #6 on: February 02, 2012, 06:34:59 PM »
I've placed a phone message to John Celenza at WeatherUnderground about the issue.  I'll let you know when I hear from him.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 10.0
    • Saratoga Weather
Re: Ken True of Saratoga Weather
« Reply #7 on: February 02, 2012, 09:14:10 PM »
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.

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Bogget

  • Posts: 125
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #8 on: February 02, 2012, 10:53:02 PM »
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.

Bogget


Offline weatherc

  • Posts: 1,691
  • Salo, Finland
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.1
    • Weatherstation Salo,FI
Re: Ken True of Saratoga Weather
« Reply #9 on: February 03, 2012, 03:01:57 PM »
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.

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 10.0
    • Saratoga Weather
Re: Ken True of Saratoga Weather[WU-forecast issue resolved]
« Reply #10 on: February 04, 2012, 04:05:20 AM »
Status update:

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:
1) WU was blocking some IPs for excessive traffic (I think)
2) The script couldn't get past the block, so stopped offering you a forecast.
3) 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 :)

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Bogget

  • Posts: 125
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #11 on: February 04, 2012, 11:50:56 AM »
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? :?

Bogget
www.realweather.net
« Last Edit: February 04, 2012, 12:00:02 PM by Bogget »

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 10.0
    • Saratoga Weather
Re: Ken True of Saratoga Weather
« Reply #12 on: February 04, 2012, 03:30:44 PM »
Hi Bogget,

There are two issues I found by doing a view-source on http://www.realweather.net/wxforecast.php?force=1

Quote
         <!-- WU-forecast.php (ML) Version 1.24 - 25-Oct-2011 -->
<!-- temps in C -->
<!-- autoSetTemplate using narrow aspect. -->
<!-- loading from http://english.wunderground.com/cgi-bin/findweather/getForecast?query=cleethorpes. -->
<!-- unable to open ./cache/WU-forecast-en.txt for writing. -->
<!-- using charsetInput='UTF-8' charsetOutput='ISO-8859-1' -->

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.

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Bogget

  • Posts: 125
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #13 on: February 04, 2012, 05:01:18 PM »
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?

Bogget

Offline Bogget

  • Posts: 125
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #14 on: February 04, 2012, 05:27:54 PM »
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?

i do wish i knew more about programming?

Bogget
www.realweather.net
« Last Edit: February 04, 2012, 07:53:31 PM by Bogget »

 

cumulus