Author Topic: Alerts and Warnings - Advisory Box: Display Issue: Situational Behavior  (Read 815 times)

0 Members and 1 Guest are viewing this topic.

Offline Cutty Sark Sailor

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3394
    • Frankfort Weather - TwinHollies WeatherCenter
 :-({|= for me please...

Apologies for 'length'... trying to provide "clues" ... Saratoga, Black-Narrow
Just Recently, issue developed... I must have missed something,  :-k but I've  ](*,) until I'm exhausted with it,... :-&
for starters, here's what I want under a 'no alert' situation, and has worked fine for years:


AtomFeed-config.php
Code: [Select]
  ###  COUNTY/ZONE SET UP  ######################################################################################
 // "MDZ011" => "Zone Code",
 // "MDZ006" => "Zone Code",
 // convert/add county into multiple zones thusly:
 // COUNTY CODE =>  COUNTY CODE => ZONE CODE => ZONE CODE
 // "MDC005" => array(1 => "MDC005",'a' => "MDZ011",'b' => "MDZ006"),
$Code_Location = array(
  "KYZ035" => "Frankfort KY", // Franklin Co Frankfort KY - priority zone listed first
"KYC073" => array(1 => "KYC073",'a' => "KYZ035"), // Franklin Co KY
"COZ040" => "Aurora CO",
"COZ240" => "Denver Area CO",
"COC001" => array(1 => "COC001",'a' => "COZ040",'b' => "COZ240"), // Adams Co CO
"NYZ010" => "Buffalo NY North",
"NYZ085" => "Buffalo NY South",
"NYC029" => array(1 => "NYC029",'a' => "NYZ010",'b' => "NYZ085"), //Erie NY (northern and southern)
"KYZ047" => "Burgin KY",
  "KYC167" => array(1 => "KYC167",'a' => "KYZ047"),  // Mercer KY
"OHZ077" => "Cincinnati OH",
"OHC061" => array(1 => "OHC061",'a' => "OHZ077"),
"COZ038" => "Fort Collins CO",
"COZ238" => "Fort Collins Area CO",
  "COC069" => array(1 => "COC069",'a' => "COZ038",'b' => "COZ238"), // Larimer Co CO
  "COZ213" => "Tabernash/Frazier/Winter Park CO",
  "COC049" => array(1 => "COC049",'a' => "COZ032",'b' => "COZ213"), //Grand Co CO
"GAZ160" => "Valdosta GA",
"GAC185" => array(1 => "GAC185",'a' => "GAZ160") //Lowndes Co GA

);

Which was producing a LiveFeed.xml output as (e.g.)
Code: [Select]
<entry>
<title>Aurora CO - No warnings, watches, or advisories</title>
<link href="http://ourspecial.net/twinhollies/weathercenter/AtomSummary.php"/>
<summary>No active alerts</summary>
<id>http://alerts.weather.gov/cap/wwaatmget.php?x=COZ040&y=0</id>
<updated>2015-09-13T10:30:00-04:00</updated>
</entry>
<entry>
<title>Aurora Area CO - No warnings, watches, or advisories</title>
<link href="http://ourspecial.net/twinhollies/weathercenter/AtomSummary.php"/>
<summary>No active alerts</summary>
<id>http://alerts.weather.gov/cap/wwaatmget.php?x=COZ240&y=0</id>
<updated>2015-09-13T10:30:00-04:00</updated>
</entry>

However, the same config is Now Producing LiveFeed.xml as (e.g.)
Code: [Select]
<entry>
<title>North Douglas County Below 6000 Feet/Denver/West Adams and Arapahoe Counties/East Broomfield County Colorado - No warnings, watches, or advisories</title>
<link href="http://ourspecial.net/twinhollies/weathercenter/AtomSummary.php"/>
<summary>No active alerts</summary>
<id>http://alerts.weather.gov/cap/wwaatmget.php?x=COZ040&y=0</id>
<updated>2015-10-05T17:00:00-04:00</updated>
</entry>
<entry>
<title>North Douglas County Below 6000 Feet/Denver/West Adams and Arapahoe Counties/East Broomfield County Colorado - No warnings, watches, or advisories</title>
<link href="http://ourspecial.net/twinhollies/weathercenter/AtomSummary.php"/>
<summary>No active alerts</summary>
<id>http://alerts.weather.gov/cap/wwaatmget.php?x=COZ240&y=0</id>
<updated>2015-10-05T17:00:00-04:00</updated>
</entry>
  Which suks:
 
 
 
  Oddly, when an alert is present, it appears to display as desired...
 
 
  To the best of my knowledge all the Saratoga scripts are 'current', and, though it is difficult to pinpoint exactly, this appears to have occurred near or at the time my Server was upgraded (Sept 29) to PHP 5.5.29 and MySQL to 5.6.23.  They also said Apache was upgrading to 2.4 , but CP shows it at 2.2.31  This certainly began after 9/13, which was my last backup, and works fine locally as best I can see.

I overwrote what I think  :shock: were the appropriate 'server' files from the backup, and the results remained the same.
Note that I can obviously bring the table back into width by eliminating the long "North Douglas.." calls....in config.
I think I've got a couple of other minor issues with "Summary" and "Complete", but it's difficult to say until I return to a "no alerts" status...
'nuff for now....
Mike
 
 
 


Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
The Atom-Feed config page is not part of the Saratoga templates as it is an older script.
I do have an update to fetch the data but I recommend updating the script.
AtomFeed update: http://weather.ricksturf.com/scripts/AtomFeed503.zip

Offline Cutty Sark Sailor

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3394
    • Frankfort Weather - TwinHollies WeatherCenter
The Atom-Feed config page is not part of the Saratoga templates as it is an older script.
I do have an update to fetch the data but I recommend updating the script.
AtomFeed update: http://weather.ricksturf.com/scripts/AtomFeed503.zip

Many Thanks, Curly!  :oops:
I knew I must have missed something along the way....
...my gosh that update is only, what... nearly 2 yrs old?  Duh.

All seems well now...
Mike...