<div dir="ltr">The files are created by the execution of the cron entries. If the files are not created, then either the cron entries are missing or the crond is not executing.<div><br></div><div>Below should help you resolve your issues (see http://<a href="http://w0anm.com/blog/?p=519">http://w0anm.com/blog/?p=519</a>). If you have something that files during your testing, please let me know and I can work with you.</div><div><br></div><div>73,</div><div>Chris w0anm</div><div><br><div><br></div><div><h2 id="testing_weather_alerts" class="" style="font-family:Tahoma,Verdana,sans-serif;font-size:1.6em;color:rgb(21,100,138);margin:0px 0px 10px;line-height:16.7999992370605px;text-align:justify;background-color:rgb(158,206,228)">Testing Weather Alerts</h2><div class="" style="color:rgb(68,68,68);font-family:Tahoma,Verdana,sans-serif;line-height:16.7999992370605px;text-align:justify;background-color:rgb(158,206,228)"><pre style="font-size:12px">Follow the steps below:</pre><p style="font-size:1.05em"></p><ol style="font-size:12px;padding:0px 0px 0px 75px;margin:0px"><li class="" style="margin:0px;padding:0px"><div class=""><p style="font-size:1.05em">list cron entries:<br></p><pre class=""> crontab -l
</pre><br>Which shows:<br><pre><code style="font-family:Tahoma,Verdana,sans-serif"># NWS Alert for MNC171 in Wright County
*/14 * * * * (/usr/local/bin/Weather/getWxAlert MNC171 "Wright County" &> /dev/null 2>&1)</code></pre><p style="font-size:1.05em"></p><p style="font-size:1.05em"># Underground Weather for station: KMNROGER1<br>*/16 * * * * (/usr/local/bin/Weather/getWxRpt_ug KMNROGER1 &> /dev/null 2>&1)</p><p style="font-size:1.05em"># Underground Weather (pressure trends) for station: KMNROGER1<br>0 */6 * * * (/usr/local/bin/Weather/trend KMNROGER1 &> /dev/null 2>&1)</p><p style="font-size:1.05em"># National Wx Service Forecast based on Zone: MNZ059<br>*/16 * * * * (/usr/local/bin/Weather/getWxFor MNZ059 &> /dev/null 2&>1)</p></div></li><li class="" style="margin:0px;padding:0px"><div class=""><p style="font-size:1.05em">Execute the getWxAlert entry:<br></p><pre class="">/usr/local/bin/Weather/getWxAlert MNC171 "Wright County"</pre><p style="font-size:1.05em"></p></div></li><li class="" style="margin:0px;padding:0px"><div class=""><p style="font-size:1.05em">Verify the following files that were created in /tmp/wx by entering:<br></p><pre class="">ls /tmp/wx/alert/</pre><p style="font-size:1.05em"></p></div></li></ol><p style="font-size:1.05em">For an example, the county id that I have setup is MNC171. Here is the output for the command above:<br></p><pre class="" style="font-size:12px">ls -la /tmp/wx/alert/MNC171
total 64
drwxr-xr-x 2 root root 160 Oct 19 12:47 .
drwxr-xr-x 3 root root 60 Oct 19 12:42 ..
-rw-r--r-- 1 root root 1775 Oct 19 12:47 <a href="http://alert.info">alert.info</a>
-rw-r--r-- 1 root root 172 Oct 19 12:42 alert_prev_summary.txt
-rw-r--r-- 1 root root 41208 Oct 19 12:42 alert_short.ul
-rw-r--r-- 1 root root 172 Oct 19 12:47 alert_summary.txt
-rw-r--r-- 1 root root 74 Oct 19 12:42 no_alerts.txt
-rw-r--r-- 1 root root 56 Oct 19 12:47 wx_new.txt</pre><pre class="" style="font-size:12px"><br></pre><div><h3 id="weather_alert_troubleshooting" class="" style="color:rgb(30,140,193);margin:0px;line-height:16.7999992370605px"><font size="4">Weather Alert Troubleshooting</font></h3><div class="" style="font-size:12px;line-height:16.7999992370605px"><ul style="margin:0px;padding:0px 0px 0px 75px;line-height:16px"><li class="" style="margin:0px;padding:0px"><div class="">Check to make sure that the county id is valid and was entered correctly.</div></li><li class="" style="margin:0px;padding:0px"><div class="">If dtmf sequence fails to output, make sure that there is an audio file in /tmp/wx/alert/<county_id>/alert_short.ul and it’s a “non-zero” length file meaning that the file size is greater than 0, and typically it’s 41K in size.</div></li><li class="" style="margin:0px;padding:0px"><div class=""><p style="font-size:1.05em">In the rare event that the locking files are in a “dead lock” condition, you can clear the weather alerts by using the “/usr/local/bin/Weather/clearWxAlert” script as follows:<br></p><pre class="">/usr/local/bin/Weather/clearWxAlerts
Stopping Weather Alert Messages... Done.
Removing lock files from /tmp... Done.
Cleaning up the alert weather directories... Done.
Removing temporary files in /tmp/wx.. Done.</pre><p style="font-size:1.05em"></p></div></li></ul></div><h2 id="testing_weather_forecast" class="" style="color:rgb(21,100,138);margin:0px 0px 10px;line-height:16.7999992370605px"><font size="4">Testing Weather Forecast</font></h2><div class="" style="font-size:12px;line-height:16.7999992370605px"><p style="font-size:1.05em">Verify that the crontab entry for the weather forecast is present. Type:<br></p><pre class="">crontab -l</pre><br>Look for the entry:<br><pre><code style="font-family:Tahoma,Verdana,sans-serif">
# National Wx Service Forecast based on Zone: MNZ059
*/16 * * * * (/usr/local/bin/Weather/getWxFor MNZ059 &> /dev/null 2>&1)
</code></pre><p style="font-size:1.05em"></p><p style="font-size:1.05em">If the entry is not present, you will need to execute the <em>/usr/local/bin/Weather/wx_config.sh </em>script and select “y” to the prompt “Do you wish to setup/update the weather forecasts”. For weather forecasts, first get the data manually using the following commands:<br></p><pre class="">/usr/local/bin/Weather/getWxFor ;</pre><br>For example:<br><pre class="">/usr/local/bin/Weather/getWxFor MNZ059
</pre><br>There will be a delay before the prompt is returned. The getWxFor script is pulling data from the NWS website and parsing the data. Once the data is parsed, the data files and audios files are created in /tmp/wx/forecast/;. For example:<br><pre class="">/tmp/wx/forecast/MNZ059
wx_forecast.txt wx_forecast.ul</pre><br>The <em>wx_forecast.txt</em> file is the text file for the weather forecast and the <em>wx_forecast.ul</em> is the audio file.<p style="font-size:1.05em"></p></div><h2 id="weather_weather_underground_reports" class="" style="font-size:1.6em;color:rgb(21,100,138);margin:0px 0px 10px;line-height:16.7999992370605px">Weather Weather Underground Reports</h2><div class="" style="font-size:12px;line-height:16.7999992370605px"><p style="font-size:1.05em">Verify that the crontab entry for the weather forecast is present. Type:<br></p><pre class="">crontab -l</pre><br>Look for the entry:<br><pre><code style="font-family:Tahoma,Verdana,sans-serif">
# Underground Weather for station: KMNSTMIC3
*/16 * * * * (/usr/local/bin/Weather/getWxRpt_ug KMNSTMIC3 &> /dev/null 2>&1)</code></pre><p style="font-size:1.05em"></p><p style="font-size:1.05em"># Underground Weather (pressure trends) for station: KMNSTMIC3<br>0 */6 * * * (/usr/local/bin/Weather/trend KMNSTMIC3 &> /dev/null 2>&1)</p><p style="font-size:1.05em">If the entry is not present, you will need to execute the <em>/usr/local/bin/Weather/wx_config.sh </em>script and select “y” to the prompt “Do you wish to setup/update the weather reports: [y,n,q]?”. For weather reports, first get the data manually using the following commands:<br></p><pre class="">/usr/local/bin/Weather/getWxRpt_ug
/usr/local/bin/Weather/trend</pre><br>For example:<br><pre class="">/usr/local/bin/Weather/getWxRpt_ug KMNSTMIC3
/usr/local/bin/Weather/trend KMNSTMIC3</pre><br>There will be a delay before the prompt is returned. The getWxPrtp_ug script is pulling data from the Weather Underground Station and parsing the data. Once the data is parsed, the data files and audios files are created in /tmp/wx/wxreport_ug/<WX_Underground_STNID>. For example:<br><pre class="">/tmp/wx/wxreport_ug KMNSTMIC3</pre><br>The directory will contain several files:<br><pre class="">cur_WxRpt_ug.txt cur_WxRpt_ug.ul KMNSTMIC3.xml saved_pressure.var var.src</pre><br>The <em>cur_WxRpt_ug.txt</em> file is the text file for the weather forecast and the <em>cur_WxRpt_ug.ul</em> is the audio file. There are also pressure trend files that are saved in this directory. This monitors the pressure trends in a six hour period if the data is available.<p style="font-size:1.05em"></p></div><h2 id="using_the_scripts" class="" style="font-size:1.6em;color:rgb(21,100,138);margin:0px 0px 10px;line-height:16.7999992370605px">Using the Scripts</h2><div class="" style="font-size:12px;line-height:16.7999992370605px"><p style="font-size:1.05em">Once the scripts are setup in cron to gather the information and the <em>rpt.conf</em> file has been modified, there is not much to using the scripts. The cron entries will automatically gather the weather information. I would suggestion to stagger the gathering times if you are gathering a lot of weather information. This can be accomplished by editing the corntab by using the command:</p><p style="font-size:1.05em">crontab -e<br></p><pre class="">The format of the crontab file is as follows:
The time and date fields are:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sunday, or use names)</pre><br>The first field, minute, can follow a range with “/<number>” specifies skips of the number’s value through the range. For example, “0/20” can be used to specify command execution every 20 minutes, or you can select a step range. For example:<br><pre class="">0, 18, 34, 46 * * * * (/usr/local/bin/Weather/getWxRpt_ug KMNSTMIC3 &> /dev/null 2&>1)
</pre><br>This will execute the script on top of the hour, 18 minutes past the hour, 34 minutes past the hour, and then 46 past the hour.<p style="font-size:1.05em"></p></div></div><div style="font-size:12px"><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 11:48 PM, Neil k8it <span dir="ltr"><<a href="mailto:k8it@cac.net" target="_blank">k8it@cac.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="PADDING-TOP:15px;PADDING-LEFT:10px;PADDING-RIGHT:10px" name="Compose message area">
<div>ok I did all the edits, reloaded asterisk and waited . nothing</div>
<div> </div>
<div>Here are my stanza edits . remember this is asterisk
v1.2.1</div>
<div> </div>
<div>; Play local wx alert,
*987<br>987=localplay,/tmp/wx/alert/MIC077/alert_short<br>; Play local wx
forecast,
*988<br>988=localplay,/tmp/wx/forecast/MIZ072/wx_forecast<br>Automatically<br>I
also ran the wx_config.sh script</div>
<div> </div>
<div>however I do not see a /tmp/wx/alert directory or a /tmp/wx/forecast
directories so I am assuming the files are not there so I get nothing</div>
<div> </div>
<div>how do I fix this?</div>
<div>does v1.2.1 call these files by a different name and put them somewhere
else? like /usr/local/Wx etc........</div>
<div> </div>
<div>thanks 73 Neil k8it node 41838</div><div><div class="h5">
<div> </div>
<div style="FONT:10pt Tahoma">
<div><font size="3" face="Calibri"></font><br></div>
<div style="BACKGROUND:#f5f5f5">
<div><b></b> </div>
<div><b></b> </div>
<div><b></b> </div>
<div><b>From:</b> <a title="mailto:doug@crompton.com
CTRL + Click to follow link" href="mailto:doug@crompton.com" target="_blank">Doug Crompton</a> </div>
<div><b>Sent:</b> Wednesday, May 13, 2015 11:04 AM</div>
<div><b>To:</b> <a title="mailto:arm-allstar@hamvoip.org
CTRL + Click to follow link" href="mailto:arm-allstar@hamvoip.org" target="_blank">ARM Allstar</a> </div>
<div><b>Subject:</b> Re: [arm-allstar] wx script setup</div></div></div>
<div><br></div>
<div dir="ltr"><font color="#000000" face="Tahoma,sans-serif">I want to stop the
confusion here. The weather script system changed in the Version 1.0 RPi2
release. Don't confuse it with the BBB 1.2.1 which I think is what Neil is
using.<br><br>In BBB 1.2.1 -<br><br>locate
wx_config<br>/usr/local/bin/Weather/wx_config.sh<br><br>In RPi2 1.0
-<br><br>locate wx_config<br>/usr/local/bin/wx_config.sh<br><br></font><b><font style="FONT-SIZE:16pt" size="4">73 Doug</font><font style="FONT-SIZE:16pt" size="4"><br></font><font style="FONT-SIZE:16pt" size="4">WA3DSP</font><font style="FONT-SIZE:16pt" size="4"><br></font><font style="FONT-SIZE:16pt" size="4"><a href="http://www.crompton.com/hamradio" target="_blank">http://www.crompton.com/hamradio</a></font></b><font style="FONT-SIZE:16pt" size="4"><br></font><br><br>
<div>
<hr>
Date: Wed, 13 May 2015 05:49:13 -0400<br>From: <a href="mailto:N1XBM@amsat.org" target="_blank">N1XBM@amsat.org</a><br>To:
<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a><br>Subject: Re: [arm-allstar] wx script setup<br><br>
<p dir="ltr">I'm sorry try this instead.</p>
<p dir="ltr">Type this at your root prompt cd /usr/local/bin/<br>That should out
you in the correct directory the type wx_config.sh</p>
<p dir="ltr">What happens? </p>
<p dir="ltr">If it doesnt work, while you're still in /usr/local/bin/ type
ls</p>
<p dir="ltr">What is happens?<br></p>
<p dir="ltr">N1XBM<br>Apparare Scientor<br>Paratus Communicare<br>Allstar Node #
27086, 41540, 41812<br>
</p><br>_______________________________________________ arm-allstar mailing list
<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>
<a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a> Visit the BBB web
page - <a href="http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/" target="_blank">http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/</a></div></div>
<p>
</p><hr>
<p></p>_______________________________________________<br><br>arm-allstar
mailing
list<br><a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a><br><a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br><br>Visit
the BBB web page - <a href="http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/" target="_blank">http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/</a>
<p>
</p><hr>
<p></p><a></a>
<p align="left" color="#000000">No virus found in this
message.<br>Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>Version: 2015.0.5941 / Virus
Database: 4342/9764 - Release Date: 05/13/15</p><p></p><p></p></div></div></div>
<br>_______________________________________________<br>
<br>
arm-allstar mailing list<br>
<a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
<a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br>
<br>
Visit the BBB web page - <a href="http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/" target="_blank">http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/</a><br></blockquote></div><br></div>