<div dir="ltr"><div>Hi LaRoy,</div><div><br></div>Please do not modify the <span style="font-size:12.8000001907349px">wx_scripts.conf_NEW. </span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">This file is the template file that is used to create the wx_scripts.conf file when you run the wx_config.sh script. You should not change that file or for that matter any configuration file manually. </span><span style="font-size:12.8000001907349px">The reason why the script was keeping the _WXVOL_ value is that you change the wx_scripts.conf_NEW. The wx_script.conf uses this file as a template. When you change the WXVOL manually, it prevented the template to write the correct value to wx_scripts.conf file.</span></div><div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I agree, the bug is that the script is looking for the getWxRpt_ug cron entry before updating the volume entry. Since I always use the getWXRpt_ug on my nodes, I never came across this issue. </span></div></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">You are correct,regarding the "sed" location as it should be moved to that location in the code.</span></div><div><div><br></div><div>Please revert the /usr/local/etc/wx/wx_scripts.conf_NEW file to the original file; I've attached a copy. The WXVOL should change values when running the wx_config.sh script in the /usr/local/etc/wx/wx_scripts.conf file after that.</div><div><br></div><div><br></div><div>We can further work this issue off-list if needed or schedule some talk time together.</div><div><br></div><div>73, and Thanks,</div><div><br></div><div><br></div><div>Chris, w0anm</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 9:28 PM, LaRoy McCann <span dir="ltr"><<a href="mailto:lmccann@dtisp.com" target="_blank">lmccann@dtisp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chris,<br>
I think I found the problem. The value of WXVOL in wx_scripts.conf_NEW is<br>
"_WXVOL_".<br>
<br>
When I run wx_conf.sh and reconfigure, I change the Volume from _WXVOL_ to 3.<br>
When it saves the config file back to wx_scripts.conf it is not saving the<br>
value of 3 to the file. It is keeping the "_WXVOL_".<br>
<br>
In looking at wx_config.sh, the WXVOL is only written to the file if it sets<br>
the Units, Pressure and Rain. This is only done if the weather report is<br>
setup in crontab. I only have the wxalert configured in crontab, therefor<br>
wx_config.sh never executes the lines that set the volume to the config file.<br>
<br>
I moved the sed and mv lines for VOL up in the wx_config.sh script to make<br>
sure wx_scripts.conf is updated.<br>
<br>
<br>
<br>
echo -n "Enter the volume setting for ulaw files [$CUR_VOL] :"<br>
read ANS<br>
if [ -z "$ANS" ]; then<br>
WXVOL=$CUR_VOL<br>
else<br>
WXVOL=$ANS<br>
fi<br>
<br>
#### Moved the following lines to make sure we set the VOL.<br>
# Vol<br>
sed "s/_WXVOL_/${WXVOL}/g" /tmp/wx_scripts.tmp > /tmp/wx_scripts.tmp1<br>
mv /tmp/wx_scripts.tmp1 /tmp/wx_scripts.tmp<br>
######<br>
<br>
# Configure wx_config.conf file<br>
# (wxalert beacon, report output - metric or US units)<br>
<br>
<br>
<br>
LaRoy McCann, K5TW<br>
--<br>
Open WebMail Project (<a href="http://openwebmail.org" target="_blank">http://openwebmail.org</a>)<br>
<span class=""><br>
<br>
---------- Original Message -----------<br>
From: Christopher Kovacs <<a href="mailto:w0anm73@gmail.com">w0anm73@gmail.com</a>><br>
To: BeagleBone Black ARM Allstar <<a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>><br>
Sent: Mon, 20 Apr 2015 18:48:34 -0500<br>
Subject: Re: [arm-allstar] no audio from the weather alert scripts<br>
<br>
</span><span class="">> Hi LaRoy,<br>
><br>
> I have never seen this behavior before.<br>
><br>
> This value is defined in the wx_scripts.conf file (<br>
</span>> */usr/local/etc/wx/wx_scripts.conf*) as show below.<br>
<span class="">><br>
> WXVOL="3" # Volume control to adjust ulaw<br>
> output file # integer 1-10, were<br>
> 10 is highest volume<br>
><br>
</span>> This is set when running the *wx_config.sh*:<br>
<span class="">><br>
> ----------------------------------------------------------------------<br>
> Script Configuration<br>
><br>
> The scripts have already been configured. If you choose, you can change<br>
> your weather configurations. this selection allows you to change the<br>
> audio volume, weather units of measure (metric/us), and email<br>
> (gmail) support.<br>
><br>
> ----------------------------------------------------------------------<br>
> Do you want to reconfigure the weather scripts ([n],y): ? y<br>
><br>
> Enter the volume setting for ulaw files [3] :3<br>
><br>
> The wx_scripts.conf file is sourced when executing the getWxAlert as<br>
> well as other wx scripts. Try re-executing<br>
><br>
> the configuration script and select re-configure after stepping<br>
> through the other questions requesting to add Alert,<br>
><br>
> Reports, and Forecast.<br>
><br>
</span>> Send me the current copy of */usr/local/etc/wx/wx_scripts.conf* file<br>
<div><div class="h5">> that you have on your system. This script and<br>
><br>
> definitions are correct. You are running the the RPi2 release, correct?<br>
><br>
> Thanks,<br>
><br>
> Chris, w0anm<br>
><br>
> On Mon, Apr 20, 2015 at 5:11 PM, LaRoy McCann <<a href="mailto:lmccann@dtisp.com">lmccann@dtisp.com</a>> wrote:<br>
><br>
> > Ok, just narrowed down the problem. I believe it is with<br>
> > /usr/local/bin/getWxAlert.<br>
> ><br>
> > In the "TextToSpeech" function, this variable is defined:<br>
> > TTS_PROGRAM="/usr/local/bin/tts_audio.sh -v ${WXVOL} "<br>
> ><br>
> > The problem as I see it is WXVOL is not defined anywhere in getWxAlert, so<br>
> > I assume it defaults to 0.<br>
> > When getWxAlert calls tts_audio.sh it passes -v 0 which creates the audio<br>
> > file with no volume.<br>
> ><br>
> > If I manually run "/usr/local/bin/tts_audio.sh -v 3<br>
> > /tmp/wx/alert/ARC111/no_alerts.txt" it creates no_alerts.ul that has an<br>
> > audio level.<br>
> ><br>
> > I confirmed this by changing the TTS_PROGRAM="/usr/local/bin/tts_audio.sh<br>
> > ". Now it uses the default value in tts_audio.sh.<br>
> ><br>
> > Not sure what the intent was here. Either getWxAlert needs to have WXVOL<br>
> > defined within it or needs to have the -v ${WXVOL} option left off.<br>
> ><br>
> > Not sure why I am the only one having this issue?<br>
> ><br>
> ><br>
> > LaRoy McCann, K5TW<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On 4/20/2015 2:33 PM, LaRoy McCann wrote:<br>
> ><br>
> > Yes it was connected and I ran it several times again since the initial<br>
> > setup, although I did not reconfigure the county, just the last section<br>
> > asking about the audio level, whether to play the scripts and the gmail<br>
> > account.<br>
> ><br>
> > I'll try it again and configure the whole thing.<br>
> ><br>
> > LaRoy McCann, K5TW<br>
> ><br>
> > On 4/20/2015 2:20 PM, Robert Newberry wrote:<br>
> ><br>
> > When you ran the script was your RPI2 connected to the internet? I had a<br>
> > similar problem when I ran the first time script. Apparently when it went<br>
> > to the internet to do whatever it's doing. I re-ran the script and<br>
> > everything worked after I ran the script with a working internet<br>
> > connection.<br>
> ><br>
> > N1XBM<br>
> > Apparare Scientor<br>
> > Paratus Communicare<br>
> > Allstar Node # 27086, 41540, 41812<br>
> ><br>
> ><br>
> > --<br>
> > This message has been scanned for viruses and<br>
</div></div>> > dangerous content by the *DTISP MailScanner* <<a href="http://www.dtisp.com/" target="_blank">http://www.dtisp.com/</a>>, and<br>
<span class="">> > is<br>
> > believed to be clean.<br>
> ><br>
> > _______________________________________________<br>
> ><br>
> > arm-allstar mailing<br>
</span>listarm-allstar@hamvoip.orghttp://<a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br>
<span class="">> ><br>
> > Visit the BBB web page -<br>
<a href="http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/" target="_blank">http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
</span>> > ------------------------------<br>
> > [image: Avast logo] <<a href="http://www.avast.com/" target="_blank">http://www.avast.com/</a>><br>
<span class="">> ><br>
> > This email has been checked for viruses by Avast antivirus software.<br>
> > <a href="http://www.avast.com" target="_blank">www.avast.com</a><br>
> ><br>
> ><br>
> > --<br>
> > This message has been scanned for viruses and<br>
</span>> > dangerous content by the *DTISP MailScanner* <<a href="http://www.dtisp.com/" target="_blank">http://www.dtisp.com/</a>>, and<br>
<span class="">> > is<br>
> > believed to be clean.<br>
> ><br>
> > _______________________________________________<br>
> ><br>
> > arm-allstar mailing<br>
</span>listarm-allstar@hamvoip.orghttp://<a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br>
<span class="">> ><br>
> > Visit the BBB web page -<br>
<a href="http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/" target="_blank">http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
</span>> > ------------------------------<br>
> > [image: Avast logo] <<a href="http://www.avast.com/" target="_blank">http://www.avast.com/</a>><br>
<span class="">> ><br>
> > This email has been checked for viruses by Avast antivirus software.<br>
> > <a href="http://www.avast.com" target="_blank">www.avast.com</a><br>
> ><br>
> ><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 -<br>
> > <a href="http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/" target="_blank">http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/</a><br>
> ><br>
><br>
</span><span class="">> --<br>
> This message has been scanned for viruses and<br>
> dangerous content by the DTISP MailScanner, and is<br>
> believed to be clean.<br>
</span>------- End of Original Message -------<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>