Giter Club home page Giter Club logo

noaacap's Introduction

The current release of noaacap is 1.4.0.  If you are running older than this
version, please update before asking for support.

This software is written in python3 and has been tested with aprx 2.9.x.
If you are running a version < 2.9.0 you should first update aprx.  The current
release of aprx may be found at http://thelifeofkenneth.com/aprx/debs/.

It has also been tested by N3TSZ in conjunction with direwolf.  Version 1.3
or higher is required.  The current release of direwolf may be installed on a
Debian or Raspbian system via:

sudo apt-get install direwolf

The current release of noaacap may be found at:

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.4.deb.  Then, to satisfy the dependencies,
run sudo apt-get -f install.

==> APRX CONFIGURATION <==

Add a beacon section similar to the following to /etc/aprx.conf:

<beacon>

beaconmode both
cycle-size 2m

beacon via WIDE2-1 \
   srccall N0CALL-13 \
   timeout 20 \
   exec /usr/local/bin/noaacap.py

</beacon>

The timeout was needed on my older and slower single core Raspberry Pi Model B.
The aprx default timeout is 10 seconds and the timeout may not be needed on a
RPi 2 or newer.  If you see lots of "BEACON EXEC abnormal close" messages in
aprx.log, then you likely need to add the timeout.

The program will check for a new alert or update every 2 minutes, but only
send if there is a change.

==> DIREWOLF CONFIGURATION <==

Add a line similar to the following to direwolf.conf:

CBEACON EVERY=2 VIA=WIDE2-1 INFOCMD="/usr/local/bin/noaacap.py"

==> NOAACAP CONFIGURATION <==

Edit /etc/noaacap.conf:

Do not remove the [noaacap] section header.

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 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, wasting characters.

As an example, if you're located in Lancaster, PA, the map shows that you
are in zone 066.  Enter PAZ066 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
hourly resends.

adjZone1 and adjZone2 may be optionally specified.  If specified, those zones
are guaranteed to be retained in any messages found for myZone that have been
truncated because of length.  You must specify a Zone rather than a County.

Logging values are 0 (quiet), 1 (informational), and 2 (debug).  Logs are
written to the systemd journal.  You may view the logs in realtime using the
following command: sudo journalctl -f | grep noaacap.

USE

It would be good to hear from users of this software.  Please email
[email protected] with the callsign-SSID of your APRS station that is sending
weather alerts via this program.

Dan Srebnick, K2IE
02/06/2020
Updated 04/03/2024

noaacap's People

Contributors

k2ie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

noaacap's Issues

No output when run, but entries found?

pi@raspberrypi:~ $ /usr/local/bin/noaacap.py 
Nov 12 11:14:48 raspberrypi noaacap[25454]: Starting

Nov 12 11:14:50 raspberrypi noaacap[25454]: Entry count: 1
Nov 12 11:14:50 raspberrypi noaacap[25454]: Processing entry: 1
Nov 12 11:14:50 raspberrypi noaacap[25454]: Exiting

So if there's an entry, and an entry was processed, why no output? Does this simply mean that the processing determined there was nothing worthy of beaconing?

My config is:

[noaacap]
myTZ = America/New_York
myZone = VAZ069
myResend = 1
adjZone1 = VAZ061
adjZone2 = VAZ035
Logging = 2

Should not require journald

Not everyone uses or wants journald, surely there is a more agnostic way to log to syslog and let systemd intercept it like normal if it's in use.

Adding requirements.txt

Hi,

Would appreciate for future use requirements.txt file
for easy dependency installation.

Thanks

Message not being generated for special weather statements

There is special weather statement out for the county (MNC017) I have configured but noaacap is not reporting it, I am just starting with noaacap so probably something I am doing wrong. I have attached a curl of the xml file showing the statement, my config, related /var/log/messages, and the noaacap.db file (seems relevant).
message.log
Archive.zip

Any help would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.