<div dir="ltr">This file should not be missing. It is created when wx_config.sh is executed. Basically, once you configure wx_scripts, it will create the final wx_scripts.conf file.<div><br></div><div>Try doing the following:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>cd /usr/local/bin/Weather</div><div>./wx_config.sh</div></blockquote><div><br></div><div>If you ran this in a different directory, using the full path, it may not copy the wx_config.sh script over to the correct directory. I suspect that this may be the cause.</div><div><br></div><div>73,</div><div><br></div><div>Chris</div><div><br></div><div><div> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 15, 2015 at 11:40 AM, 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><font face="Calibri">In following your testing instructions on the link you
provided I got this result when I tried test step #2</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">how do I fix this. it looks like the file is
there.</font></div><span class="">
<div><font face="Calibri">thanks 73 Neil k8it node 41838 </font></div>
<div><font face="Calibri"></font> </div>
</span><div><font face="Calibri">[root@kitlink /]#<br>[root@kitlink /]#
/usr/local/bin/Weather/getWxAlert mic077 "Kalamazoo County"<br>Missing
/usr/local/bin/Weather/wx_scripts.conf file, aborting...<br>[root@kitlink /]# cd
/usr/local/bin/Weather<br>[root@kitlink Weather]# ls -l<br>total
96<br>-rwxr-xr-x 1 root root 1148 Sep 22 2014
clearWxAlerts<br>-rwxr-xr-x 1 root root 19138 Sep 22 2014
getWxAlert<br>-rwxr-xr-x 1 root root 2150 Sep 22 2014
getWxFor<br>-rwxr-xr-x 1 root root 5909 Sep 22 2014
getWxRpt_ug<br>-rw-r--r-- 1 root root 268 Sep 22 2014
parsing_list.txt<br>-rwxr-xr-x 1 root root 3768 Sep 22 2014
playWxAlertBg<br>-rwxr-xr-x 1 root root 948 Sep 22 2014
trend<br>-rw-r--r-- 1 root root 1944 Sep 22 2014
wx_alert_product.txt<br>-rw-r--r-- 1 root root 9165 Oct 9 2014
Wx_Config_Readme.txt<br>-rwxr-xr-x 1 root root 12523 Sep 22 2014
wx_config.sh<br>-rw-r--r-- 1 root root 191 Sep 22 2014
wx_critical_alerts.txt<br>-rw-r--r-- 1 root root 50 Sep
22 2014 wx_normal_alerts.txt<br>-rw-r--r-- 1 root root 2806 Sep
22 2014 wx_scripts.conf_NEW<br>-rw-r--r-- 1 root root 502 Sep
22 2014 wxtext_conv.sed<br>[root@kitlink Weather]#<br></font></div>
<div style="FONT:10pt Tahoma">
<div><br></div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="w0anm73@gmail.com" href="mailto:w0anm73@gmail.com" target="_blank">Christopher Kovacs</a> </div>
<div><b>Sent:</b> Friday, May 15, 2015 8:40 AM</div><div><div class="h5">
<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></div><div><div class="h5">
<div><br></div>
<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://http://w0anm.com/blog/?p=519" target="_blank">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 style="FONT-SIZE:1.6em;FONT-FAMILY:Tahoma,Verdana,sans-serif;COLOR:rgb(21,100,138);TEXT-ALIGN:justify;MARGIN:0px 0px 10px;LINE-HEIGHT:16px;BACKGROUND-COLOR:rgb(158,206,228)">Testing
Weather Alerts</h2>
<div style="FONT-FAMILY:Tahoma,Verdana,sans-serif;COLOR:rgb(68,68,68);TEXT-ALIGN:justify;LINE-HEIGHT:16px;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-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:75px;MARGIN:0px;PADDING-RIGHT:0px">
<li style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;PADDING-RIGHT:0px">
<div>
<p style="FONT-SIZE:1.05em">list cron entries:<br></p><pre> 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 style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;PADDING-RIGHT:0px">
<div>
<p style="FONT-SIZE:1.05em">Execute the getWxAlert entry:<br></p><pre>/usr/local/bin/Weather/getWxAlert MNC171 "Wright County"</pre>
<p style="FONT-SIZE:1.05em"></p></div>
</li><li style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;PADDING-RIGHT:0px">
<div>
<p style="FONT-SIZE:1.05em">Verify the following files that were created in
/tmp/wx by entering:<br></p><pre>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 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" target="_blank">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 style="FONT-SIZE:12px"><br></pre>
<div>
<h3 style="COLOR:rgb(30,140,193);MARGIN:0px;LINE-HEIGHT:16px"><font size="4">Weather Alert Troubleshooting</font></h3>
<div style="FONT-SIZE:12px;LINE-HEIGHT:16px">
<ul style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:75px;MARGIN:0px;LINE-HEIGHT:16px;PADDING-RIGHT:0px">
<li style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;PADDING-RIGHT:0px">
<div>Check to make sure that the county id is valid and was entered
correctly.</div>
</li><li style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;PADDING-RIGHT:0px">
<div>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 style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;PADDING-RIGHT:0px">
<div>
<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>/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 style="COLOR:rgb(21,100,138);MARGIN:0px 0px 10px;LINE-HEIGHT:16px"><font size="4">Testing Weather Forecast</font></h2>
<div style="FONT-SIZE:12px;LINE-HEIGHT:16px">
<p style="FONT-SIZE:1.05em">Verify that the crontab entry for the weather
forecast is present. Type:<br></p><pre>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>/usr/local/bin/Weather/getWxFor ;</pre><br>For example:<br><pre>/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>/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 style="FONT-SIZE:1.6em;COLOR:rgb(21,100,138);MARGIN:0px 0px 10px;LINE-HEIGHT:16px">Weather
Weather Underground Reports</h2>
<div style="FONT-SIZE:12px;LINE-HEIGHT:16px">
<p style="FONT-SIZE:1.05em">Verify that the crontab entry for the weather
forecast is present. Type:<br></p><pre>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>/usr/local/bin/Weather/getWxRpt_ug
/usr/local/bin/Weather/trend</pre><br>For example:<br><pre>/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>/tmp/wx/wxreport_ug KMNSTMIC3</pre><br>The directory will contain several
files:<br><pre>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 style="FONT-SIZE:1.6em;COLOR:rgb(21,100,138);MARGIN:0px 0px 10px;LINE-HEIGHT:16px">Using
the Scripts</h2>
<div style="FONT-SIZE:12px;LINE-HEIGHT:16px">
<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>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>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="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><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>
<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" 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><br></blockquote></div><br></div>
</div></div><p></p><div><div class="h5">
<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>
</div></div><p>
</p><hr>
<p></p><a></a>
<p align="left" color="#000000"></p><div><div class="h5">No virus found in this
message.<br>Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br></div></div>Version: 2015.0.5941 / Virus
Database: 4342/9776 - Release Date: 05/14/15<p></p><p></p><p></p></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>