Author Topic: How do I change the advisory display  (Read 598 times)

0 Members and 1 Guest are viewing this topic.

Offline SteveJ

  • Senior Member
  • **
  • Posts: 95
    • My Blog
How do I change the advisory display
« on: January 31, 2015, 06:53:53 PM »
I'm trying to get rid of the Santa Clara Valley and Santa Cruz default data here:

http://weather.lakewebster.com/wxadvisory.php

Can't seem to find out how to do it. Any ideas?

Thanks!
My LinkedIn

Weather.LakeWebster.com

WU: KMAPLE47 | PWS: JNKNS | CWOP: EW6690 | WXBug: p22113


Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: How do I change the advisory display
« Reply #1 on: January 31, 2015, 07:01:21 PM »
Take a look in your Settings.php file

The nws-alerts are controlled by that. Should be around line 209

// NWS Alerts package configuration (for Curly's nws-alerts scripts)
// "Location|ZoneCode|CountyCode[|CountyCode]..."
// Note: if more than 4 zone/county codes are used, a message will appear if you are NOT using
//    cron to provide updates.
// Note: additional/optional nws-alerts configuration is in nws-alerts-config.php file
$SITE['NWSalertsCodes'] = array(
    "S. Oneida County|NYZ037|",
  "N. Oneida County|NYZ009|",
  "N. Herkimer County|NYZ032|",
   "Otsego County|NYZ046|NYC077",
   "Madison County|NYZ036|NYC053",
   "Montgomery County|NYZ040|NYC057",
  "Onondaga County|NYZ018|NYC067",
  "Chenango County|NYZ045|NYC017",
   "Hamilton County|NYZ033|NYC041",
  "S. Fulton County|NYZ039|NYC035",
  "N. Fulton County|NYZ082|NYC035",
   "Delaware County|NYZ057|NYC025",
  "Oswego County|NYZ006|NYC075",
   "Lewis County|NYZ008|NYC049",
   "Schoharie County|NYZ047|NYC095",
Tony




Offline SteveJ

  • Senior Member
  • **
  • Posts: 95
    • My Blog
Re: How do I change the advisory display
« Reply #2 on: January 31, 2015, 09:07:57 PM »
Thanks, CNYWeather. Mine was already edited to look like this:

Code: [Select]
// NWS Alerts package configuration (for Curly's nws-alerts scripts)
// "Location|ZoneCode|CountyCode[|CountyCode]..."
// Note: if more than 4 zone/county codes are used, a message will appear if you are NOT using
//    cron to provide updates.
// Note: additional/optional nws-alerts configuration is in nws-alerts-config.php file
$SITE['NWSalertsCodes'] = array(
  "King County|WAZ558|WAC033",
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
  "Pierce County|WAZ558|WAC053",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);

But the old ones are still on the web page! I'm gonna start digging around the php code of the page itself...
My LinkedIn

Weather.LakeWebster.com

WU: KMAPLE47 | PWS: JNKNS | CWOP: EW6690 | WXBug: p22113


Offline SteveJ

  • Senior Member
  • **
  • Posts: 95
    • My Blog
Re: How do I change the advisory display
« Reply #3 on: January 31, 2015, 09:16:29 PM »
Had to edit ./cache/nws-alertsMainData.php

Not sure if that file is supposed to be written automatically, so I'll keep digging.
My LinkedIn

Weather.LakeWebster.com

WU: KMAPLE47 | PWS: JNKNS | CWOP: EW6690 | WXBug: p22113


 

anything