[arm-allstar] weather script
Robert Newberry
N1XBM at amsat.org
Tue Apr 14 09:09:14 EST 2015
Just to put a cap on this. The problem was I had the stanzas in the wrong
location of my rpt.conf. Once they were moved into the right place
everything started working.
Thank you Chris!
On Mon, Apr 13, 2015 at 3:44 PM, Christopher Kovacs <w0anm73 at gmail.com>
wrote:
> Are you talking about editing the cron entries? Do edit, just type the
> following command below:
>
> export EDITOR=nano
> crontab -e
>
> Remove the entries, and save and exit.
>
> What the the other commands, "asterisk -rx ...." did they play any audio?
>
>
> Chris, w0anm
>
>
> On Mon, Apr 13, 2015 at 2:41 PM, Robert Newberry <N1XBM at amsat.org> wrote:
>
>> OK Chris, I have a typo again. Its KMERAYMO3 I put a "zero" in stead of a
>> "oh".
>>
>> I guess its there a way to wipe out everything? and start the weather
>> script from scratch?
>>
>> I have done a restart.
>>
>> On Mon, Apr 13, 2015 at 3:32 PM, Christopher Kovacs <w0anm73 at gmail.com>
>> wrote:
>>
>>> If you are not using these areas, it is best if you remove them from the
>>> cron as they will generate lots of cpu usage unnecessarily.
>>>
>>> Since the audio files are present, the data did get pulled down from the
>>> NWS site at some time.
>>>
>>> Did you restart asterisk (astres.sh) or (asterisk -rx "rpt reload")
>>> after you made changes to the /etc/asterisk/rpt.conf file?
>>>
>>> What happens if you type:
>>>
>>> asterisk -rx "rpt fun 41812 *986"
>>>
>>>
>>> You should hear your weather report for KMERAYM03. *HOWEVER, *I just
>>> check on the weather underground site, and it does not know of this station
>>> ID. *Please verify that this is a good UndergroundWeather ID.*
>>>
>>>
>>> http://www.wunderground.com/cgi-bin/findweather/getForecast?query=kmeraym03
>>>
>>>
>>>
>>> If you type:
>>>
>>> asterisk -rx "rpt fun 41812 *987"
>>>
>>> You should hear a message about "no alerts" unless you have a weather
>>> alert.
>>>
>>> and finally, if you type:
>>>
>>> asterisk -rx "rpt fun 41821 *988"
>>>
>>>
>>> you should hear the local forecast for your area, if none of these play,
>>> you'll need to check for errors in the rpt.conf file.
>>>
>>>
>>> 73,
>>>
>>> Chris, w0anm
>>>
>>>
>>> On Mon, Apr 13, 2015 at 1:55 PM, Robert Newberry <N1XBM at amsat.org>
>>> wrote:
>>>
>>>> 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/
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>> 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/
>>>
>>
>>
>> _______________________________________________
>>
>> 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/20150414/eb12477d/attachment.html>
More information about the arm-allstar
mailing list