[arm-allstar] Weather.sh?

wb9rsq at me.com wb9rsq at me.com
Thu May 10 11:49:47 EST 2018


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



More information about the arm-allstar mailing list