WXforum.net
May 19, 2013, 06:06:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6609  •  Posts: 178283  •  Topics: 18103
Please welcome TargY, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: NOAA zone instead of County displayed  (Read 552 times)
0 Members and 1 Guest are viewing this topic.
jdpsys
Member
*
Offline Offline

Posts: 20



WWW
« on: April 29, 2012, 01:58:58 AM »

On my index page I'm getting:
There are no active watches, warnings or advisories for zone TXZ147.

On the full advisory page I do get the county.

The setting seem to be correct.

www.fairfieldwx.com
Logged

Jon
Davis Vantage Pro II - Meteohub (4.9 b929 - SheevaPlug)
http://www.fairfieldwx.com
hayskswx
Forecaster
*****
Online Online

Posts: 1580



WWW
« Reply #1 on: April 29, 2012, 02:34:09 AM »

I changed settings.php and the atom advisory file and mine worked.
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
SkiMedicKC
Member
*
Offline Offline

Posts: 27


WWW
« Reply #2 on: April 29, 2012, 08:28:10 AM »

I'm having the same issue...it shows up correctly on the wx-advisory.php  page,  but on the index.php page, still shows the zone #.

I would actually prefer a custom statement, such as "Raytown, MO USA" instead of the county name.  Where can I adjust that?
Logged

hayskswx
Forecaster
*****
Online Online

Posts: 1580



WWW
« Reply #3 on: April 29, 2012, 03:16:38 PM »

I'd like it to display Hays,Kansas also. Mine displays the county (Ellis)
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
k8jsl
Member
*
Offline Offline

Posts: 9


WWW
« Reply #4 on: April 29, 2012, 03:34:31 PM »

I'll work on a replacement that will display Both county and zone warnings ..
be an easy fix
Logged

hayskswx
Forecaster
*****
Online Online

Posts: 1580



WWW
« Reply #5 on: April 29, 2012, 03:40:14 PM »

 Very Happy
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #6 on: April 29, 2012, 04:29:30 PM »

For the USA-templates, the Settings.php item $SITE['noaazone'] is used by three scripts:

for warning zone by atom-advisory.php and atom-top-warning.php and
for forecasts (in backup mode) by advforecast2.php

The intent was that the value in $SITE['noaazone'] be the Zone (not the County) code so all three scripts could use the same value.  If $SITE['noaazone'] is set to the County code, then the forecast may not be available if your point-printable forecast is not available.

I understand that some warnings may be issued by NOAA only in the County codes, and not the Zone codes, and that leads folks to want to use the County code in $SITE['noaazone'].  In a future release, I'll add a provision to have $SITE['noaazone'] use the Zone for forecast backup and an optional new setting to specify the County code for warning information.   

If you need to use the County code for warnings, I suggest you do the following:
1) set $SITE['noaazone'] to your forecast Zone (not County)
2) edit the atom-advisory.php to:
  a) change the lines
Code:
if (isset ($SITE['noaazone'])) {
  $myDefaultZone = $SITE['noaazone'];
}
to
Code:
if (isset ($SITE['noaazone'])) {
//  $myDefaultZone = $SITE['noaazone'];
}
and
  b) change the line
Code:
$myDefaultZone = 'CAZ513'; // <== change this to your zone
to have your County code instead.
3) edit atom-top-warning.php to:
  a) change
Code:
if (isset($SITE['noaazone'])) {$DefaultZone = $SITE['noaazone'];}
to
Code:
// if (isset($SITE['noaazone'])) {$DefaultZone = $SITE['noaazone'];}
  b) change the line
Code:
$myDefaultZone = 'CAZ513'; // <== change this to your zone
to have your County code instead.

Then your advisories will come from your County code, and your backup forecasts from the Zone code.

Best regards,
Ken

BTW.. it is a shame that the NWS doesn't replicate all the applicable warnings from the County codes into the affected Zones .. they must have a good reason for it. Sad
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
k8jsl
Member
*
Offline Offline

Posts: 9


WWW
« Reply #7 on: April 29, 2012, 04:43:20 PM »

oh but they do ..
its not in RSS/ATOM format ...
you need to supply your Zone and County in the URL to get both..

I'm taking the parts needed from top-atom-warning.php
and reformatting sections to read the data
Logged

k8jsl
Member
*
Offline Offline

Posts: 9


WWW
« Reply #8 on: April 29, 2012, 06:46:02 PM »

Ken,

seeings how 90% of this script is still yours ..
I can't find where the dang () are defined in the title

http://dev.michiganwxsystem.com/test/wxindex.php

added support for Fire Zone for those of you that have a Fire Zone
different from your regular Warning/Forecast zone
Logged

saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #9 on: April 30, 2012, 01:12:40 PM »

Looks like the () are remnants from a removal of a state or county name.  Hard to tell without seeing the source of the script Smile
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
k8jsl
Member
*
Offline Offline

Posts: 9


WWW
« Reply #10 on: April 30, 2012, 01:27:27 PM »

pm me an email address ..
I'll zip it up and send it
Logged

saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #11 on: April 30, 2012, 01:32:21 PM »

Done. Smile
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.125 seconds with 19 queries.