WXforum.net
Web Weather => Weather Web Site Help => Topic started by: rlmarcum22 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? ](*,)
-
In Settings.php, you have
$SITE['NWSalertsSidebar'] = false; // =true to insert in menubar, =false no insert to menubar
change that to $SITE['NWSalertsSidebar'] = true; // =true to insert in menubar, =false no insert to menubar
to have the alerts shown in your sidebar.
-
I did have it on, but I turned it off because it wasn't updating to match what I had changed.
-
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 ## 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'?
-
Also, be aware that the entry in Settings.php
$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 $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.
-
I meant that I had added extra counties and they hadn't updated after 12 hours on the menubar to read none.