[arm-allstar] [solved] New weather script test
Tony Ross
ynotssor at yahoo.com
Sun Jun 18 16:36:01 EST 2017
Thank you for your help Doug. You are 100% correct in stating that
"duplex=1" is required for node configuration in /etc/asterisk/rpt.conf
in order for the script to generate audio.
The change has been made locally here and your script works as designed.
Local "operator error" is once again applicable.
On 06/15/2017 11:57 PM, "Doug Crompton via arm-allstar" wrote:
> The only thing I can think of is if you are not playing it to a valid node
> it obviously will not play. Doing it manually in the client and running the
> script do the same thing. Add an echo before the localplay like this -
>
> echo $node
>
> if [ "$View" == "p" ] || [ "$View" == "b" ] || [ "$View" == "d" ]
> then {
> cat $FNAME > /tmp/current_wx.gsm
> /usr/bin/asterisk -rx "rpt localplay $node /tmp/current_wx"
> sleep 2
> rm -f /tmp/current_wx.gsm
> } fi
>
> Run it with a 'v' and it should display the data and then the node number
> before exiting. If that is not a valid node on your system and not one you
> are listening on it will not play. The script has to be run on the same
> server the node is on.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
>
>
>
> On Fri, Jun 16, 2017 at 2:01 AM, "Tony Ross via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
>> On 06/15/2017 07:19 PM, "Doug Crompton via arm-allstar" quoted and wrote:
>>
>>> Tony,
>>>
>>> Not sure what the problem could be. I have copied the script to other
>>> systems and it seems to play fine. Are you using this on V1.5 code?
>>>
>> Yes, v1.5 code from hamvoip was installed recently for my first experience
>> with allstarlink.
>>
>> RPi 2 or 3? I assume you have downloaded the xml2 package?
>> RPi2, and I read your original post and successfully completed "pacman -Sy
>> xml2" prior to running the script.
>>
>> I am also confused as to how you would be playing the file from /tmp as the
>>> audio file is removed in the script after it plays. If it is still there
>>> something is not completing.
>>>
>>> Doug
>>>
>> I commented line 539 of your script to retain the file "after it plays"
>> for debugging purposes when I heard nothing, e.g. "cat -n wx_condition.sh"
>> shows:
>> ...
>> 534 if [ "$View" == "p" ] || [ "$View" == "b" ] || [ "$View" == "d" ]
>> 535 then {
>> 536 cat $FNAME > /tmp/current_wx.gsm
>> 537 /usr/bin/asterisk -rx "rpt localplay $node /tmp/current_wx"
>> 538 sleep 2
>> 539 # rm -f /tmp/current_wx.gsm
>> 540 } fi
>> ...
>>
>> As I mentioned, the /tmp/current_wx file plays properly via audacity when
>> sftp'd to another machine but does not play on the allstarlink node for
>> some reason; the node radio ptt is not even keyed. The audio from other
>> nodes to which I connect or which connect to my node is always of excellent
>> quality though.
>>
>>
>>
>>> On Thu, Jun 15, 2017 at 9:08 PM, "Tony Ross via arm-allstar" <
>>> arm-allstar at hamvoip.org> wrote:
>>>
>>> On 06/15/2017 05:31 PM, "Doug Crompton via arm-allstar" wrote:
>>>> Tony,
>>>>> You can't use $node - you need to put your actual node number in
>>>>> there!
>>>>>
>>>>> $NODE1 should be the first node on your server. It has to be caps! Do
>>>>>
>>>>> echo $NODE1 at the Linux prompt.
>>>>>
>>>>> But better to just use the actual node number you want to play on. You
>>>>> need
>>>>> to play it by specifying the script not playing the file out of /tmp.
>>>>>
>>>>> wx_condition.sh KPHL 40000
>>>>>
>>>>> would play Philadelphia airport weather to node 40000.
>>>>>
>>>>> That node must be on the same server where the script is running. It
>>>>> play
>>>>> locally.
>>>>>
>>>>> Thank you Doug. The variable $node in my post is my actual node number
>>>> in
>>>> a bash shell, just as in your script. Using your KPHL example above, or
>>>> any
>>>> other NWS station and my node number, there is no audio output although
>>>> the
>>>> /tmp/current_wx.gsm plays properly in audacity on another machine. Exit
>>>> status = 0 from your script (echo $?). Normal audio is excellent when
>>>> connected to other nodes, so something is apparently missing in my
>>>> installation.
>>>>
>>>> I have an "strace -o ..." output file but can see no problems in it.
>>>> _______________________________________________
>>>>
>>>> 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