Author Topic: County with Multiple Zone Codes  (Read 364 times)

0 Members and 1 Guest are viewing this topic.

Online Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 727
    • Lake Huron Weather
County with Multiple Zone Codes
« on: April 19, 2019, 03:40:23 PM »
Cross Post – still looking for suggestions.

I’m using the Saratoga Template; Base/USA w/WD

Some northern Michigan zones have changed, specifically a few have been split into multiple zones in an effort for more accuracy in forecasting and alerts. This brings me to my question, how to set them up. I’ll give just one example here;

Mackinac County
County code is MIC097
Zone Code was MIZ015

This County has now been split into three zones
Western Mackinac – MIZ095
Eastern Mackinac – MIZ096
Mackinac & Bois Blanc Islands – MIZ097

Within the Settings.php and nws-alerts-config.php files setting up the various point forecasts is no problem, they appear to be working fine.

Configuring for the NWS alerts is where my question lies.

This is what I had before the zone change (yes I am running a cron job).

"Cheboygan County|MIC031|MIZ017",
"Chippewa County|MIC033|MIZ088",
"Luce County|MIC095|MIZ007",
"Mackinac County|MIC097|MIZ015",
"Emmet County|MIC047|MIZ016",
"Presque Isle County|MIC141|MIZ018",

Now that Mackinac County has been split into 3 Zones how should I configure it?

Like this to include the three new Zones Codes

"Mackinac County|MIC097|MIZ095|MIZ096|MIZ097"

Or something like this splitting each new Zone to a separate line?

"Western Mackinac County|MIC097|MIZ095",
"Eastern Mackinac County|MIC097|MIZ096",
"Mackinac / Bois Blanc Islands|MIC097|MIZ097",

Looking for some advice/suggestions.
Thanks

CW3699

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: County with Multiple Zone Codes
« Reply #1 on: April 19, 2019, 04:37:34 PM »
Paul, You have to do like in your 2nd example of putting each of the different zones of your county in.

My county and a neighboring one has the same issue. Just split with the appropriate zone and county codes.

I have this in my Settings.php

Code: [Select]
"S. Oneida County|NYZ037|NYC065",
"N. Oneida County|NYZ009|NYC065",
"Southern Herkimer|NYZ038|NYC043",
"Northern Herkimer|NYZ032|NYC043",

along with a bunch of other counties that aren't split like mine. Also, i've always had the Zone in there before the County.
« Last Edit: April 19, 2019, 04:42:59 PM by CNYWeather »
Tony




Online Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 727
    • Lake Huron Weather
Re: County with Multiple Zone Codes
« Reply #2 on: April 19, 2019, 05:22:38 PM »
Thanks for the feedback Tony, will give it a try.

CW3699

Online Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 727
    • Lake Huron Weather
Re: County with Multiple Zone Codes - Solved
« Reply #3 on: April 26, 2019, 07:46:07 AM »
Today we have multiple alerts/warnings for the Counties I track and everything seems to be working well after using Tony's suggestion.  Thanks again Tony, appreciate it.

CW3699

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: County with Multiple Zone Codes
« Reply #4 on: April 26, 2019, 12:16:31 PM »
No problem. Glad it's working. It's always been that way for my counties from day 1. Sometimes it's a pain when one half of the county has a warning and sometimes it alerts the entire county, but better than nothing!
Tony