Author Topic: Alerts on Menubar  (Read 570 times)

0 Members and 1 Guest are viewing this topic.

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Alerts on Menubar
« on: November 25, 2021, 08:36:03 PM »
I have added new counties and they show up on the wxadvisory.php but not the sidebar for alerts.  How can I fix this? ](*,)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Alerts on Menubar
« Reply #1 on: November 25, 2021, 10:03:53 PM »
In Settings.php, you have
Code: [Select]
$SITE['NWSalertsSidebar'] = false; // =true to insert in menubar, =false no insert to menubar
change that to
Code: [Select]
$SITE['NWSalertsSidebar'] = true; // =true to insert in menubar, =false no insert to menubar
to have the alerts shown in your sidebar.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Re: Alerts on Menubar
« Reply #2 on: November 26, 2021, 01:36:08 AM »
I did have it on, but I turned it off because it wasn't updating to match what I had changed.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Alerts on Menubar
« Reply #3 on: November 26, 2021, 12:08:24 PM »
Your nws-alerts-config.php shows $noCron=false, which implies you have a cron job running nws-alerts.php at a regular interval and https://ekyrrgweather.com/wxadvisory.php does show an updated timestamp for the alerts, so the gathering process seems to be working.

In nws-alerts-config.php you have
Code: [Select]
## BIG ICONS
$iconLimit     = 0;            // the number of icons to display  0=show all
$addNone       = true;        // true=add NONE foreach location with no alerts        false= don't show any NONE
$shoNone       = true;         // true=show one 'NONE' if no alerts for all location   false=don't show one 'NONE' if no alerts for all location
$useIcons      = 3;            // select number below
//                                0 = don't use icons - the cache file will not be written
//                                1 = sort by alert - duplicate events will be displayed
//                                2 = sort by alert - duplicate events removed
//                                3 = single top alert icon for each location
//                                4 = sort by location - duplicate removed
//                                5 = sort by location - duplicate events will be displayed
and since there are no current alerts for any of your specified zones/counties, a single 'NONE' icon should be displayed in the menubar if you'd enabled it (with $SITE['NWSalertsSidebar'] = true; in Settings.php).

Is that what you meant by 'wasn't updating'?
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Alerts on Menubar
« Reply #4 on: November 26, 2021, 12:24:22 PM »
Also, be aware that the entry in Settings.php
Code: [Select]
$SITE['NWSalertsCodes'] = array(
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
    "Bath County|KYZ051|KYC011", ---
   "Breathitt County|KYZ112|KYC025",
    "Bourbon County|KYZ042|KYC017",
  "Clark County|KYZ049|KYC049",
  "Estill County|KYZ058|KYC065",
  "Fayette County|KYZ041|KYC067",
   "Garrard County|KYZ056|KYC079",
   "Jackson County|KYZ069|KYC109",
    "Jessamine County|KYZ048|KYC113",
   "Lee County|KYZ111|KYC129",
   "Madison County|KYZ057|KYC151",
    "Menifee County|KYZ060|KYC165",
  "Montgomery County|KYZ050|KYC173",
  "Morgan County|KYZ106|KYC175",
   "Owsley County|KYZ114|KYC189",
  "Powell County|KYZ059|KYC197",
   "Rockcastle County|KYZ068|KYC203",
   "Rowan County|KYZ052|KYC205",
  "Wolfe County|KYZ108|KYC237",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);
automatically OVERRIDES the nws-alerts-config.php entry
Code: [Select]
$myZC = array(
"Bath County|KYZ051|KYC011",
   "Breathitt County|KYZ112|KYC025",
    "Bourbon County|KYZ042|KYC017",
  "Clark County|KYZ049|KYC049",
  "Estill County|KYZ058|KYC065",
  "Fayette County|KYZ041|KYC067",
   "Garrard County|KYZ056|KYC079",
   "Jackson County|KYZ069|KYC109",
    "Jessamine County|KYZ048|KYC113",
   "Lee County|KYZ111|KYC129",
   "Madison County|KYZ057|KYC151",
   "Magoffin County|KYZ109|KYC153", ---
    "Menifee County|KYZ060|KYC165",
  "Montgomery County|KYZ050|KYC173",
  "Morgan County|KYZ106|KYC175",
   "Owsley County|KYZ114|KYC189",
  "Powell County|KYZ059|KYC197",
   "Rockcastle County|KYZ068|KYC203",
   "Rowan County|KYZ052|KYC205",
  "Wolfe County|KYZ108|KYC237",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);

When both exist, then the Settings.php entry will be the one used to define/collect the alert data.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Re: Alerts on Menubar
« Reply #5 on: November 26, 2021, 12:37:56 PM »
I meant that I had added extra counties and they hadn't updated after 12 hours on the menubar to read none.

 

anything