From 2e3470c41f76a10c9a897f57862da1769d3834aa Mon Sep 17 00:00:00 2001 From: K2IE Date: Wed, 27 Mar 2024 16:32:10 -0400 Subject: [PATCH] v1.3 fixes truncation bug, recommends zone vs county, updated README --- noaacap/DEBIAN/control | 2 +- noaacap/usr/local/bin/noaacap.py | 3 +-- noaacap/usr/local/share/noaacap/CHANGELOG | 4 ++++ noaacap/usr/local/share/noaacap/README | 15 ++++++++++----- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/noaacap/DEBIAN/control b/noaacap/DEBIAN/control index 33f1927..1c3d149 100644 --- a/noaacap/DEBIAN/control +++ b/noaacap/DEBIAN/control @@ -1,5 +1,5 @@ Package: noaacap -Version: 1.2.0 +Version: 1.3.0 Section: hamradio Priority: extra Maintainer: Dan Srebnick diff --git a/noaacap/usr/local/bin/noaacap.py b/noaacap/usr/local/bin/noaacap.py index 4b2badd..b7c22c6 100755 --- a/noaacap/usr/local/bin/noaacap.py +++ b/noaacap/usr/local/bin/noaacap.py @@ -6,7 +6,7 @@ ## ## See /usr/local/share/noaacap/CHANGELOG for change history ## -version = "1.2" +version = "1.3" import sys import pytz @@ -352,7 +352,6 @@ for i in range(0, count): streak_end = next_suffix zcs = zcs + '>' + streak_end - zcs = zcs[:-1] log.debug("ZCS Value: " + zcs) type = pp[bytes(Phenomena, 'utf-8')].decode('utf-8') diff --git a/noaacap/usr/local/share/noaacap/CHANGELOG b/noaacap/usr/local/share/noaacap/CHANGELOG index 61fbeca..a1fba3d 100644 --- a/noaacap/usr/local/share/noaacap/CHANGELOG +++ b/noaacap/usr/local/share/noaacap/CHANGELOG @@ -1,5 +1,9 @@ noaacap changelog ## +Version: 1.3 +Release: TBD +Fixed truncation bug in compressed zone list +## Version: 1.2 Release: March 27, 2024 Reintroduced compressed zones and other improvements diff --git a/noaacap/usr/local/share/noaacap/README b/noaacap/usr/local/share/noaacap/README index 4b54062..1440ddb 100644 --- a/noaacap/usr/local/share/noaacap/README +++ b/noaacap/usr/local/share/noaacap/README @@ -14,7 +14,7 @@ https://github.com/K2IE/noaacap/releases Once you are running aprx >= 2.9 or direwolf >= 1.3, install noaacap: -Install via sudo dpkg -i noaacap-1.0.deb. Then, to satisfy the dependencies, +Install via sudo dpkg -i noaacap-1.3.deb. Then, to satisfy the dependencies, run sudo apt-get -f install. ==> APRX CONFIGURATION <== @@ -57,10 +57,14 @@ myTZ should be set to the Linux TZ value for the issuing office of your preferred weather zone. For a complete list of timezones, you may use the following command: timedatectl list-timezones | grep America. -myZone should be set to your county code. A list of county codes may be found -at https://alerts.weather.gov/. Only list one county. The program will then -send the alert for all affected zones. You could instead use a zone code if -you want to be more specific. +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 +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 +associated zone may also be sent in, wasting characters. + +As an example, if you're located in Lancaster, PA, the map shows that you +are in zone 066. Enter PA066 for myZone. myResend should be set to 0 for no message resends or to an interval of your choosing. If noaacap beacons every 2 minutes, a value of 30 would provide @@ -82,3 +86,4 @@ weather alerts via this program. Dan Srebnick, K2IE 02/06/2020 +Updated 03/27/2024