Clear Across Kansas

weather.sh

weather.sh

5/8/2017

The weather.sh script has been updated to accept weatherunderground station ID’s. The weather.sh format is –

weather.sh zipcode|airport Id|w-wunder id
weather.sh 19001
weather.sh phl
weather.sh w-KPHL1234

This same format can be used in BOTH the saytime.pl and say24time.pl
scripts.

/usr/bin/perl /usr/local/sbin/saytime.pl 18954 $NODE1
/usr/bin/perl /usr/local/sbin/say24time.pl 18954 $NODE1

/usr/bin/perl /usr/local/sbin/saytime.pl phl $NODE1
/usr/bin/perl /usr/local/sbin/say24time.pl phl $NODE1

/usr/bin/perl /usr/local/sbin/saytime.pl w-KPHL001 $NODE1
/usr/bin/perl /usr/local/sbin/say24time.pl w-KPHL001 $NODE1

Where 18954 is the zip, phl is airport ID, and w-KPHL001 is wunder ID and
$NODE1 is the first node. Replace with your values. Node could be the actual node number.

In the cron entry it would look like this:

00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19 /usr/bin/perl /usr/local/sbin/saytime.pl 18954 $NODE1 > /dev/null)

or

00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19 /usr/bin/perl /usr/local/sbin/say24time.pl 18954 $NODE1 > /dev/null)

Both all on one line and of course times could be changed to suit your
needs or comment the line ‘#’ if you don’t want to play it at all.

*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio

Recent Posts