[arm-allstar] Weather Script Updates
Doug Crompton
wa3dsp at gmail.com
Mon Feb 3 11:12:42 EST 2020
Jim,
Are you sure you put the API in correctly? I can view your station
here....
wx_condition.sh w-KTXCEDAR256 1998 v
Weather for Station ID - KTXCEDAR256
"2020-02-03 00:15:00"
"Cedar Park"
-----------------------------------
Temperature - 57 F / 14 C
Humidity - 59 Percent
Wind Direction - North at 0 miles per hour
Wind Gusts - 0 miles per hour
Barometric Pressure - 30.1 inches
Dew point - 43 F / 6 C
Precipitation Today - 0 inches
Precipitation Rate - 0 inches/Hr
Wind Chill - 57 F / 14 C
Heat Index - 57 F / 14 C
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Sun, Feb 2, 2020 at 8:01 PM Jim Kinter Jr. <Jim at k5ktf.com> wrote:
> Hi Doug et al
>
> Going another round to try to get my Wx Undergnd working.
>
> I added my API key to the ini, but when I try to run the sh, I get
>
> [root at k5ktf-vhf sbin]# wx_condition.sh w-KTXCEDAR256 425631
> URL - http://w1.weather.gov/xml/current_obs/w-KTXCEDAR256.xml Not found
>
> I just did a full update, but issue remains.
> Do I need to fix something somewhere?
>
> Thanks
> Jim
>
> At 01:49 PM 2/2/2020, \"Doug Crompton via ARM-allstar\" wrote:
>
> Update RPI 2-3-4 Version 1.6-08 February 2, 2020 includes the following -
>
> Updated saytime.pl to include the ability to save the sound files for
> playing by other means such as in tail messages, etc. Current usage for
> immediate voice stays the same - no third parameter.
>
> Usage: saytime.pl [<locationid>] nodenumber [1=save time and wx, 2=save wx
> - both no voice]
>
> Example: saytime.pl 19001 1998 1 - Save time and zip 19001 weather
> sound file to /tmp/current-time.gsm, no voice to node
>
> saytime.pl 19001 1998 2 - Save just zip 19001 weather
> sound file to /tmp/current-time.gsm, no voice to node
>
> Updated wx_condition.sh to include precipitation rate/hr when available.
> Also no voice for total rain or precipitation rate if total rain is 0.
>
> Added s option for saving to file, no voice.
>
> wx_condition.sh KPHL 40000 s << Just save output to
> /tmp/wx_condition.gsm
>
> wx_condition.sh w-kparichb3 1998 s
>
> Weather sound data saved to /tmp/current_wx.gsm
>
> To use either of these and be current you would call either saytime.pl or
> wx_condition.sh with the file save option BEFORE using the /tmp sound
> files. This could be done in a script or cron depending on how you are
> using the sound files. You would then use the gsm files WITHOUT the .gsm
> anywhere that Hamvoip uses sound files.
>
> Type just saytime.pl or wx_condition.sh to see full parameter examples.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> * http://www.crompton.com/hamradio < http://www.crompton.com/hamradio>*
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>
>
More information about the ARM-allstar
mailing list