[arm-allstar] Weather codes
Doug Crompton
wa3dsp at gmail.com
Tue Feb 26 16:46:03 EST 2019
I wanted to let everyone know that the weather.sh script and will accept 4
digit ICAO airport codes from around the world. Codes for countries and
cities can be found here -
http://airportsbase.org/ICAO.php
For non US areas these codes can be used in place of the ZIP or postal code
in the Supermon global.inc and in the manual saytime.pl call or the on the
hour cron.
weather.sh <zip> -v
weather.sh <ICAO code> -v
weather.sh <w-wunderground-station-code> -v
saytime.pl <zip> <node>
saytime.pl <ICAO code> <node>
saytime.pl <w-wunderground-station-code> <node>
Cron examples -
00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19
/usr/bin/perl /usr/local/sbin/saytime.pl <zip> $NODE1 > /dev/null)
00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19
/usr/bin/perl /usr/local/sbin/saytime.pl <ICAO code> $NODE1 > /dev/null)
00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19
/usr/bin/perl /usr/local/sbin/saytime.pl <w-wunderground-station-code>
$NODE1 > /dev/null)
Airport Examples -
Philadelphia International
# weather.sh KPHL -v
41°F, 5°C / Cloudy
Paris France Metropolitan area
# weather.sh LFPB -v
48°F, 9°C / Clear
South Pole, Antartica
# weather.sh NZSP -v
-22°F, -30°C / Intermittent Clouds
Narobi, Kenya
# weather.sh HKNW -v
68°F, 20°C / Partly Cloudy
Cape Town, South Africa
# weather.sh FACT -v
61°F, 16°C / Clear
Not all codes work for weather so you have to pick the closest one to you
that works. For US based the best thing to use is your zip code. In Canada
postal codes also work.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
More information about the ARM-allstar
mailing list