cloudy

Author Topic: advisory script problem  (Read 564 times)

0 Members and 1 Guest are viewing this topic.

Offline wings2007

  • Posts: 27
  • OS/Browser:
  • Win XP
  • Firefox 10.0
advisory script problem
« on: February 07, 2012, 12:09:47 AM »
I have the zone set to TXC113 and the file is created atom-advisory-TXC113.txt. The contents look like this
Any body know where the URL is that needs to be changed?

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://alerts.weather.gov/cap/wwaatmget.php?x=TXC113">here</a>.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at www.weather.gov Port 80</address>
</body></html>

Offline saratogaWX

  • Posts: 5,264
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 10.0
    • Saratoga Weather
Re: advisory script problem
« Reply #1 on: February 07, 2012, 12:31:39 AM »
It's likely you have an old copy of the script .. I suggest you update the script which uses http://alerts.weather.gov/cap/wwaatmget.php?x=<zone> as the URL for the ATOM/CAP advisories

The old url was something like www.weather.gov/alerts-beta/... as I remember.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline wings2007

  • Posts: 27
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
Re: advisory script problem
« Reply #2 on: February 07, 2012, 01:17:07 AM »
In the atom advisory script it contains the new address. I downloaded the files yesterday, I needed to rebuild the site.

---northdallasweather.net63.net----

Offline wings2007

  • Posts: 27
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
Re: advisory script problem
« Reply #3 on: February 07, 2012, 01:43:38 AM »
It works now. I changed the URL line in the RSS script to

$RSS_URL = "http://www.weather.gov/alerts/wwarssget.php?zone=TXC113"   hardcoded the TXC113

Offline wings2007

  • Posts: 27
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
Re: advisory script problem
« Reply #4 on: February 07, 2012, 03:03:04 PM »
Back to not working. Has me baffled. It worked like twice yesterday.

Offline Harry

  • Posts: 473
  • Union City, CA USA
  • OS/Browser:
  • Win Vista/Srvr 2008
  • MS IE 9.0
    • Union City, CA Weather
Re: advisory script problem
« Reply #5 on: February 09, 2012, 06:43:34 PM »

Offline wings2007

  • Posts: 27
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0
Re: advisory script problem
« Reply #6 on: February 10, 2012, 02:17:06 AM »
working now Thanks.