cloudy cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • 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 #15 on: February 04, 2012, 07:01:32 PM »
Hi Bogget,

The page shows the correct version of the script, but the ./cache/ is not writable by PHP
Quote
<!-- WU-forecast.php (ML) Version 1.28- 03-Feb-2012 -->
<!-- temps in C -->
<!-- autoSetTemplate using narrow aspect. -->
<!-- WU URL is 'http://english.wunderground.com/cgi-bin/findweather/getForecast?query=cleethorpes' -->
<!-- WU URL set to 'http://english.wunderground.com/cgi-bin/findweather/getForecast?query=cleethorpes' -->
<!-- loading from http://english.wunderground.com/cgi-bin/findweather/getForecast?query=cleethorpes. -->
<!-- RC=301 Moved Permanently, bytes=435 -->
<!-- following to http://english.wunderground.com/block.asp --->
<!-- RC=200 OK, bytes=827 -->
<!-- unable to open ./cache/WU-forecast-0-en.txt for writing. -->

You might try changing permissions on the ./cache/ directory itself to 777 to make it writable.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Daryll

  • Posts: 202
  • Ramsey, Cambridgeshire, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
Re: Ken True of Saratoga Weather
« Reply #16 on: February 04, 2012, 07:25:46 PM »
Is your WU-forecast-en.txt in a cache directory on the website, or is it in the root like mine is..?

I've just been updating this, and mine was blocked, so I've contacted WU support.


I have discovered another problem though... since updating my WU-Forecast.php file i get:

"Warning: Division by zero in /virtual/users/e17230-18941/web/WU-forecast.php on line 746" at the top of the home and forecast webpages...??

Daryll.
Main PC: E6600 Wolfdale, 4 Gb RAM, Nvidia GTX460, running Win 7

Server: HP Microserver, 4 Gb RAM, total of 1.5 TB HDD, running WHS 2011

www.ramseyweather.co.uk

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • 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 #17 on: February 04, 2012, 07:30:07 PM »
Hi Daryll,

Looking at your wxforecast.php?force=1 page shows
Quote
         <!-- WU-forecast.php (ML) Version 1.28- 03-Feb-2012 -->
<!-- temps in C -->
<!-- autoSetTemplate using wide aspect. -->
<!-- loading from http://www.wunderground.com/global/stations/03566.html. -->
<!-- RC=301 Moved Permanently, bytes=431 -->
<!-- following to http://www.wunderground.com/block.asp --->
<!-- RC=200 OK, bytes=828 -->
<!-- saved cache to ./WU-forecast-0-en.txt (828 bytes) -->

<!-- using charsetInput='UTF-8' charsetOutput='ISO-8859-1' doIconv='1' doRTL='' -->
and your ./WU-forecast-0-en.txt contents shows
Quote
HTTP/1.1 200 OK
Date: Sat, 04 Feb 2012 19:27:14 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
Cache-control: no-cache, must-revalidate, no-cache="Set-Cookie", private
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
X-CreationTime: 0.024
Set-Cookie: ASC=1328383634:1; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Set-Cookie: DT=1328383634:27320:365-t1; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

106
<b>Request Blocked</b>
<br><br>
Your request to Wunderground.com has been blocked. To get this block removed, please contact wunderground.com:
<br>
Your IP is 74.52.111.11, USER_AGENT PHP,WU-forecast.php,saratoga-weather.org
<br>
Email: [email protected]

0

So send along a note to [email protected] asking that 74.52.111.11 IP address be unblocked.

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

Offline Daryll

  • Posts: 202
  • Ramsey, Cambridgeshire, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
Re: Ken True of Saratoga Weather
« Reply #18 on: February 04, 2012, 07:50:41 PM »
Hi Ken, and thanks for your speedy responses...

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...?

Daryll
Main PC: E6600 Wolfdale, 4 Gb RAM, Nvidia GTX460, running Win 7

Server: HP Microserver, 4 Gb RAM, total of 1.5 TB HDD, running WHS 2011

www.ramseyweather.co.uk

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • 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 #19 on: February 04, 2012, 07:52:21 PM »
The Warning: error message was just due to the script not finding a valid cache of the WU forecast page .. it will go away when the block is removed.

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

Offline Daryll

  • Posts: 202
  • Ramsey, Cambridgeshire, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
Re: Ken True of Saratoga Weather
« Reply #20 on: February 04, 2012, 08:00:17 PM »
Excellent, many thanks Ken

Daryll.
Main PC: E6600 Wolfdale, 4 Gb RAM, Nvidia GTX460, running Win 7

Server: HP Microserver, 4 Gb RAM, total of 1.5 TB HDD, running WHS 2011

www.ramseyweather.co.uk

Offline Bogget

  • Posts: 149
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #21 on: February 04, 2012, 08:59:12 PM »
OK set it to 777 and still nothing, my wu text file is same directory as html pages that is root.

Bogget

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • 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 #22 on: February 04, 2012, 09:20:42 PM »
Hi Bogget,

Looking at the view-source of http://www.realweather.net/wxforecast.php shows
Quote
<!-- WU-forecast.php (ML) Version 1.28- 03-Feb-2012 -->
<!-- temps in C -->
<!-- autoSetTemplate using narrow aspect. -->
<!-- WU URL is 'http://english.wunderground.com/cgi-bin/findweather/getForecast?query=cleethorpes' -->
<!-- WU URL set to 'http://english.wunderground.com/cgi-bin/findweather/getForecast?query=cleethorpes' -->

<!-- loading from ./cache/WU-forecast-0-en.txt (828 bytes) -->

So the cache is now working, and looking at the cache file at http://www.realweather.net/cache/WU-forecast-0-en.txt shows
Quote
HTTP/1.1 200 OK
Date: Sat, 04 Feb 2012 20:56:22 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
Cache-control: no-cache, must-revalidate, no-cache="Set-Cookie", private
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
X-CreationTime: 0.050
Set-Cookie: ASC=1328388982:1; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Set-Cookie: DT=1328388982:27057:365-u4; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

106
<b>Request Blocked</b>
<br><br>
Your request to Wunderground.com has been blocked. To get this block removed, please contact wunderground.com:
<br>
Your IP is 74.52.111.11, USER_AGENT PHP,WU-forecast.php,saratoga-weather.org
<br>
Email: [email protected]

0
so you need to send a request to [email protected] requesting that IP 74.52.111.11 be unblocked.

When it is unblocked, you'll see your forecasts again :)

Best regards,
Ken

p.s. It would be helpful if you put the URL of your website in your profile so we don't have to search for it in prior postings :)
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Bogget

  • Posts: 149
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #23 on: February 04, 2012, 10:12:32 PM »
Thank you Ken, once again.

i have just seen a site with WXSIM i didnt realise that worked in the UK?

is that any better than the one i am using?

Bogget

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • 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 #24 on: February 04, 2012, 10:44:24 PM »
Hi Bogget,

WXSIM is a purchased software from www.wxsim.com that allows you to run your own forecasts based on meteo data.  Many of us have found it useful for our websites, and I do have a formatting script that processes the text output of the WXSIM program to create reports like the WU and NWS forecasts. 

WXSIM will work anywhere in the world, but you have to buy a license for it and have it customized for your locale by the author Tom Ehrensberger.

See the WXSIM forum here for posts about using WXSIM.

I personally think that Tom has done an outstanding job creating a weather modeling program that runs on a PC with output that closely matches what the 'big guys' with their supercomputer models can produce. :)   8)   =D&gt;

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

Offline Bogget

  • Posts: 149
  • Grimsby Lincolnshire UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
    • Grimsby Weather
Re: Ken True of Saratoga Weather
« Reply #25 on: February 04, 2012, 11:23:21 PM »
Yes it does look great, but for me i dont need all the bells and whistles it provides, i dont think i would use it all, your excellent script also gives great forecasting and your support is second to none. you have never failed to sort any of the problems i have had (and i have had a few).

so i thnk another contribution to your supprt fund and a thank you.

Bogget :)

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • 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 #26 on: February 05, 2012, 12:48:29 AM »
Thanks for the kind words, Bogget!  And thanks for the donation too :)

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

Offline Daryll

  • Posts: 202
  • Ramsey, Cambridgeshire, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
Re: Ken True of Saratoga Weather
« Reply #27 on: February 07, 2012, 11:06:57 PM »
Just a follow-up to this.... after a day or 2 I started getting the forecasts again.

I've just had an email from WU where they say:
"We have unblocked your IP.  Please note that there was an error in the script that you were using that caused the block.  Please make sure that you now use the patched script to obtain the data."

Hmmm... the script worked fine until they started changing things...!!!! 8O
Main PC: E6600 Wolfdale, 4 Gb RAM, Nvidia GTX460, running Win 7

Server: HP Microserver, 4 Gb RAM, total of 1.5 TB HDD, running WHS 2011

www.ramseyweather.co.uk

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • 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 #28 on: February 07, 2012, 11:58:45 PM »
Hi Daryll,

I see you are running the latest version of WU-forecast.php which does include the "User-agent: PHP,WU-forecast.php,saratoga-weather.org" on the request.  That will help them identify that the request should be honored.. the older versions did not include a User-agent: in the request.

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

 

cumulus