[arm-allstar] New weather script test

Tony Ross ynotssor at yahoo.com
Fri Jun 16 01:01:28 EST 2017


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
>



More information about the arm-allstar mailing list