cloudy cloudy

Author Topic: NEW AtomFeed.php Program  (Read 62139 times)

0 Members and 1 Guest are viewing this topic.

curly

  • Guest
Re: NEW AtomFeed.php Program
« Reply #375 on: February 07, 2011, 10:56:29 PM »
Been getting those errors here also on various locations.

I went to the NWS site and some of their pages that I'm getting the errors on are loading slowly, or they are blank. 3 - 11 seconds on some of them.

If nothing is there (string length: 0 ) or it takes too long to fetch, the script moves on.

Offline Harry

  • Posts: 802
  • Union City, CA USA
    • Union City, CA Weather
Re: NEW AtomFeed.php Program
« Reply #376 on: February 07, 2011, 11:10:06 PM »
I tried some of those feeds also that cnyweather is having trouble with using feedvalidator.org and get

Sorry
This feed does not validate.

•line 1, column 0: XML parsing error: <unknown>:1:0: no element found [help]

which means the feed is blank.  When I try it again a few minutes later, it works okay.

Offline Mark Burgus

  • Posts: 2,746
Re: NEW AtomFeed.php Program
« Reply #377 on: February 07, 2011, 11:20:08 PM »
NWS is going through a ruff spot    again   I too am getting the same error   Half the time my web page has it correct and other times it says that NWS is having problems  :(


Mark

Offline jysue

  • Posts: 3
  • Honolulu, HI
Re: NEW AtomFeed.php Program
« Reply #378 on: February 15, 2011, 04:26:08 PM »
Curly,
Does your script handle more than two zones per county? My county has 7 zones and I am getting the error messages:

<!-- HIZ007 zone code does not have a county code associated with it -->
<!-- HIZ008 zone code does not have a county code associated with it -->
<!-- HIZ009 zone code does not have a county code associated with it -->
<!-- HIZ010 zone code does not have a county code associated with it -->
<!-- HIZ011 zone code does not have a county code associated with it -->

Here is the relevant part of the config file:

    "HIZ005" => "Oahu South Shore", // Priority zone listed first
    "HIC003" => array(1 => "HIC003", 'a' => "HIZ005", 'b' => "HIZ006", 'c' => "HIZ007",
                      'd' => "HIZ008", 'e' => "HIZ009", 'f' => "HIZ010",
                      'g' => "HIZ011"),
                      // COUNTY CODE => COUNTY CODE => ZONE CODE
    "HIZ006" => "Waianae Coast",
    "HIZ007" => "Oahu North Shore",
    "HIZ008" => "Oahu Koolau",
    "HIZ009" => "Olomana",
    "HIZ010" => "Central Oahu",
    "HIZ011" => "Waianae Mountains"

Thank you,
Jeffrey


curly

  • Guest
Re: NEW AtomFeed.php Program
« Reply #379 on: February 15, 2011, 11:04:50 PM »
Curly,
Does your script handle more than two zones per county? My county has 7 zones and I am getting the error messages:

It only does two zones per county when comparing the two for differences.
The alert messages are letting you know that those added zones don't have a county to compare with.

You can get around this by not using the HIC003 array and having all zones listed separately.

Code: [Select]
    "HIZ005" => "Oahu South Shore", // Priority zone listed first
    "HIC003" => "Honolulu",
    "HIZ006" => "Waianae Coast",
    "HIZ007" => "Oahu North Shore",
    "HIZ008" => "Oahu Koolau",
    "HIZ009" => "Olomana",
    "HIZ010" => "Central Oahu",
    "HIZ011" => "Waianae Mountains"