Re: [RDD] Print Degrees in RML

2021-01-06 Thread Mick

GNU bash 4.2+ supports unicode, so the following should work as well:

hotness=$(echo -e 18 '\u2103')
hotness=$(echo -e 18 '\u00b0'C)

or using (some versions of) printf:

printf -v hotness "%d \u2103" 18

On 6/1/21 2:12 pm, Robert Jeffares wrote:
> Try
>
> hotness=`echo 18 $'\xe2\x84\x83'`
> /usr/bin/rmlsend --to-host=localhost --to-port=5858 LB\ "$hotness"!
>
> works in v3.x
>
> substitute $temperature  for 18 using your local variable
>
>
> 73
>
> Robert
>
> On 6/01/21 3:31 pm, wa7skg wrote:
>> I have a script that grabs weather information, manipulates it, pulls
>> an appropriate audio cart, and airs the temperature periodically. I
>> have modified the script to add the rmlsend LB command to display the
>> current temperature in the Label box of RDAirplay. The script is
>>
>> rmlsend LB\ "KHRB-LP $T Degrees"\!
>>
>> If possible, I'd to have that display the degrees symbol (superscript
>> o) instead of Degrees. I've researched trying to find how to print
>> special characters in bash to no avail.
>>
>> Is this possible in RML?
>>
>> Thanks.
>>
>>

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Print Degrees in RML

2021-01-05 Thread wa7skg
Had to tweak it a bit. I had to use \xe2\x84\x89 to get F instead of C 
and didn't need all the paths, but it works great.


Thanks,
Michael


Robert Jeffares wrote on 1/5/21 8:12 PM:

Try

hotness=`echo 18 $'\xe2\x84\x83'`
/usr/bin/rmlsend --to-host=localhost --to-port=5858 LB\ "$hotness"!

works in v3.x

substitute $temperature  for 18 using your local variable


73

Robert

On 6/01/21 3:31 pm, wa7skg wrote:
I have a script that grabs weather information, manipulates it, pulls 
an appropriate audio cart, and airs the temperature periodically. I 
have modified the script to add the rmlsend LB command to display the 
current temperature in the Label box of RDAirplay. The script is


rmlsend LB\ "KHRB-LP $T Degrees"\!

If possible, I'd to have that display the degrees symbol (superscript 
o) instead of Degrees. I've researched trying to find how to print 
special characters in bash to no avail.


Is this possible in RML?

Thanks.



___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Print Degrees in RML

2021-01-05 Thread Robert Jeffares

Try

hotness=`echo 18 $'\xe2\x84\x83'`
/usr/bin/rmlsend --to-host=localhost --to-port=5858 LB\ "$hotness"!

works in v3.x

substitute $temperature  for 18 using your local variable


73

Robert

On 6/01/21 3:31 pm, wa7skg wrote:
I have a script that grabs weather information, manipulates it, pulls 
an appropriate audio cart, and airs the temperature periodically. I 
have modified the script to add the rmlsend LB command to display the 
current temperature in the Label box of RDAirplay. The script is


rmlsend LB\ "KHRB-LP $T Degrees"\!

If possible, I'd to have that display the degrees symbol (superscript 
o) instead of Degrees. I've researched trying to find how to print 
special characters in bash to no avail.


Is this possible in RML?

Thanks.



--
Communication Consultants 2020 Limited
64 Warner Park Avenue
Laingholm
Auckland 0604
New Zealand

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev