Fixes issues #7 and #8.

This commit is contained in:
K2IE 2025-06-23 10:17:45 -04:00
parent 4f1e7e49d2
commit b0b7b6ea01
4 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
Package: noaacap Package: noaacap
Version: 1.4.0 Version: 1.4.2
Section: hamradio Section: hamradio
Priority: extra Priority: extra
Maintainer: Dan Srebnick <k2ie at k2ie.net> Maintainer: Dan Srebnick <k2ie at k2ie.net>

View File

@ -6,7 +6,7 @@
## ##
## See /usr/local/share/noaacap/CHANGELOG for change history ## See /usr/local/share/noaacap/CHANGELOG for change history
## ##
version = "1.4.0" version = "1.4.2"
import sys import sys
import pytz import pytz
@ -281,7 +281,9 @@ for i in range(0, count):
sorted_zcs = (sorted(zcs_discrete)) sorted_zcs = (sorted(zcs_discrete))
# Move myZone to first position in case of truncation # Move myZone to first position in case of truncation
move_entry(sorted_zcs,myZone,0) if myZone in sorted_zcs:
move_entry(sorted_zcs,myZone,0)
log.debug("myZone found in sorted zcs and moved to index 0")
# Move adjacent zones, if present, after myZone # Move adjacent zones, if present, after myZone
adjZone2Index = 1 adjZone2Index = 1

View File

@ -1,4 +1,4 @@
The current release of noaacap is 1.4.0. If you are running older than this The current release of noaacap is 1.4.2. If you are running older than this
version, please update before asking for support. version, please update before asking for support.
This software is written in python3 and has been tested with aprx 2.9.x. This software is written in python3 and has been tested with aprx 2.9.x.
@ -63,8 +63,8 @@ the following command: timedatectl list-timezones | grep America.
myZone should be set to your zone code. A list of zone codes may be found myZone should be set to your zone code. A list of zone codes may be found
at https://www.weather.gov/pimar/PubZone. Only list one zone. The program at https://www.weather.gov/pimar/PubZone. Only list one zone. The program
will send the alert for all affected zones that will fit in the allocated 67 will send the alert for all affected zones that will fit in the allocated 67
characters. You could instead use a county code if you wish. However the characters. You could instead use a county code, if you wish. However,
associated zone may also be sent, wasting characters. NOAA now seems to return zones rather than counties in some cases.
As an example, if you're located in Lancaster, PA, the map shows that you As an example, if you're located in Lancaster, PA, the map shows that you
are in zone 066. Enter PAZ066 for myZone. are in zone 066. Enter PAZ066 for myZone.
@ -89,4 +89,4 @@ weather alerts via this program.
Dan Srebnick, K2IE Dan Srebnick, K2IE
02/06/2020 02/06/2020
Updated 04/03/2024 Updated 07/23/2025