[arm-allstar] Weather.sh?

wb9rsq at me.com wb9rsq at me.com
Thu May 10 13:35:17 EST 2018


Sorry but I'm still missing something.
I see that condition.gsm is created each time I run weather.sh.
What I can't figure out is what line or lines of code in the weather.sh
actually generate the condition.gsm.
I can see how the text is obtained and even how it is tested but what
command takes the cleaned up text and builds the audio file?
tnx


-----Original Message-----
From: arm-allstar <arm-allstar-bounces at hamvoip.org> On Behalf Of "Doug
Crompton via arm-allstar"
Sent: Thursday, May 10, 2018 12:17 PM
To: ARM Allstar <arm-allstar at hamvoip.org>
Cc: Doug Crompton <wa3dsp at gmail.com>
Subject: Re: [arm-allstar] Weather.sh?

The appropriate files are found and combines into one file which is stored
in /tmp called condition.gsm.  The actual output of this combined sound
file is done by the saytime.pl program if desired. weather.sh <ID>  only
prints the weather condition and saves the combined file. You can use it to
insert a weather condition voice yourself or use the existing saytime to do
it.

saytime.pl 18954 1998      - where 18954 is your zip and 1998 is the node
you want to send it to.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


On Thu, May 10, 2018 at 12:49 PM, "wb9rsq--- via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Try as I might I just can't figure out which lines in the script are
> generating the actual .gsm audio files.
> Is there some sort of environment variable that is calling a program to
> generate speech?
> I didn't notice any declaration that is doing a variable in the
weather.sh.
> 73
>
>
> -----Original Message-----
> From: arm-allstar <arm-allstar-bounces at hamvoip.org> On Behalf Of "Doug
> Crompton via arm-allstar"
> Sent: Thursday, May 10, 2018 10:35 AM
> To: ARM Allstar <arm-allstar at hamvoip.org>
> Cc: Doug Crompton <wa3dsp at gmail.com>
> Subject: Re: [arm-allstar] Weather.sh?
>
> The locate command finds the path to the requested file. In the weather.sh
> script it uses the found (reported) weather condition to form a statement
> about the weather. Sometimes this can be several  2-3 words like "partly
> cloud" or "mostly sunny."  Since we are using the Allison voice the word
> has to be in the library or it will not work thus the check t see where it
> is and the path to it.
>
> Good find on the misspelling. I will correct that and it will be in the
> next update.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
>
>
> On Thu, May 10, 2018 at 9:26 AM, "wb9rsq--- via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
> > Questions and a comment.
> > I'm not a programmer but I try to spend a bit of time now and then to
> look
> > over and understand the various scripts related to the allstar image.
> > I have noticed more comments in the .conf files. These are quite
helpful.
> > However in many of the scripts there are complex sections with no
> comments.
> > I would love to understand more of what is happening and why.
> > My specific question for the moment is just what the locate function is
> > doing in the weather script?
> > In some of the scripts I can figure out how the text files and then the
> > speech file is being built.
> > I can't figure out how the speech file is assembled in the weather.sh
> > script.
> >
> > Also in reading through the weather.sh file I found that in the final
> line
> > the second "condition" is misspelled "condtion".
> > I think I noticed that same error in one of the comment lines.
> > I assume that this error in the code would only happen if there was a
> > request for more than a single weather report location.
> > I don't do more than one but corrected my copy just in case.
> >
> > I'd appreciate any help or info on how any of these scripts work and as
> > time
> > permits I'd love to see more detailed comments added to help novices
> learn
> > and improve scripts.
> > All the user manuals and guides are great but when help is directly
> related
> > to scripts you are actually using it means much more.
> > 73
> >
> >
> >
> > _______________________________________________
> >
> > arm-allstar mailing list
> > arm-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> >
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2/3 web page - http://hamvoip.org



More information about the arm-allstar mailing list