[arm-allstar] weather script
Robert Newberry
N1XBM at amsat.org
Mon Apr 13 13:55:15 EST 2015
I have some counties in there and locations I am no longer interested in.
So I just do not have any reference to them in my rpt.conf. I do not
believe that should be an issue.
I fixed the typo.
I checked /tmp/wx and I have alert_short.ul, wx_forecast.ul, and
cur_WxRpt_ug.ul.
Here is below my copy/paste you asked for.
[root at raymond51000 ~]# crontab -l
03 03 * * * cd /usr/local/sbin; ./astdb.php
00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/local/sbin/
saytime.pl $NODE1 > /dev/null)
# NWS Alert for MEC017 in oxford
*/14 * * * * (/usr/local/bin/Weather/getWxAlert MEC017 "oxford" &>
/dev/null 2>&1)
# Underground Weather for station: KMEBROWN6
*/16 * * * * (/usr/local/bin/Weather/getWxRpt_ug KMEBROWN6 &> /dev/null
2>&1)
# Underground Weather (pressure trends) for station: KMEBROWN6
0 */6 * * * (/usr/local/bin/Weather/trend KMEBROWN6 &> /dev/null 2>&1)
# National Wx Service Forecast based on Zone: MEZ012
*/16 * * * * (/usr/local/bin/Weather/getWxFor MEZ012 &> /dev/null 2>&1)
# NWS Alert for MEC031 in York County
*/14 * * * * (/usr/local/bin/Weather/getWxAlert MEC031 "York County" &>
/dev/null 2>&1)
# Underground Weather for station: KMEMAINE2
*/16 * * * * (/usr/local/bin/Weather/getWxRpt_ug KMEMAINE2 &> /dev/null
2>&1)
# Underground Weather (pressure trends) for station: KMEMAINE2
0 */6 * * * (/usr/local/bin/Weather/trend KMEMAINE2 &> /dev/null 2>&1)
# National Wx Service Forecast based on Zone: MEZ018
*/16 * * * * (/usr/local/bin/Weather/getWxFor MEZ018 &> /dev/null 2>&1)
# NWS Alert for MEC005 in Cumberland
*/14 * * * * (/usr/local/bin/Weather/getWxAlert MEC005 "Cumberland" &>
/dev/null 2>&1)
# Underground Weather for station: KMERAYM03
*/16 * * * * (/usr/local/bin/Weather/getWxRpt_ug KMERAYM03 &> /dev/null
2>&1)
# Underground Weather (pressure trends) for station: KMERAYM03
0 */6 * * * (/usr/local/bin/Weather/trend KMERAYM03 &> /dev/null 2>&1)
# National Wx Service Forecast based on Zone: MEZ019
*/16 * * * * (/usr/local/bin/Weather/getWxFor MEZ019 &> /dev/null 2>&1)
[root at raymond51000 ~]#
On Mon, Apr 13, 2015 at 2:05 PM, Christopher Kovacs <w0anm73 at gmail.com>
wrote:
>
> What are you trying to play? Weather alert, forecast, or reports?
> Remember can take up to 20 minutes for the data to be downloaded based upon
> the cron entries.
>
>
> Did you run wx_config.sh script to configure? If so, can you post the
> cron entries using the command below:
>
> crontab -l
>
> County ID is for Alerts and has a "C" in the ID, NWS Zones is for Forecast
> and has a "Z" in the ID, and the weather underground begins with K. (I am
> currently updated the howto for the next release)
>
> In the above rpt.conf file you have a typo:
>
> ; Play local wx alert, *987
> 987=localpay,/tmp/wx/alert/MEC005//alert_short
>
>
> *should be:*
>
> ; Play local wx alert, *987
> 987=localplay,/tmp/wx/alert/MEC005/alert_short
>
> Since you followed the howto, did you see any audio files (*.ul) files in
> the /tmp/wx directories?
>
>
> 73,
>
> Chris w0anm
>
> On Mon, Apr 13, 2015 at 12:36 PM, Robert Newberry <N1XBM at amsat.org> wrote:
>
>> On a new BBB I ran the weather script. For whatever reason I can not play
>> the weather. I'm pretty sure everything is fine with the script since
>> that's automatic.
>>
>> I think the problem might be how I added it to the rpt.conf. Here is a
>> copy/paste of my rpt.conf.
>>
>> functions=functions41812
>> ; Play local wx report, *986
>> 986=localplay,/tmp/wx/wxreport_ug/KMERAYM03/cur_WxRpt_ug
>> ; Play local wx alert, *987
>> 987=localpay,/tmp/wx/alert/MEC005//alert_short
>> ; Play local wx forecast, *988
>> 988=localplay,/tmp/wx/forecast/MEZ019/wx_forecast
>> phone_functions=functions41812
>>
>> I followed this .pdf
>> http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/bbb_wx_howto.pdf
>>
>> I seem to remember something about the NWS swapping the county and zone
>> list, and the instructions, not fixed, but even the wx underground isn't
>> working so my problem must be somewhere else.
>>
>> Thank you
>>
>>
>> _______________________________________________
>>
>> arm-allstar mailing list
>> arm-allstar at hamvoip.org
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>
>> Visit the BBB web page -
>> http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
>>
>
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB web page -
> http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20150413/e3ccf90a/attachment.html>
More information about the arm-allstar
mailing list