Page 1 of 1

Percent Character in Twitter **solved**

Posted: Sat Dec 01, 2018 11:51 am
by ConligWX
Hi is there a known way of displaying % when using an event definition for twitter? if I just add % i get %20 in all spaces of the twitter post.

so using the following:

Code: Select all

Temp: [th0temp-act:--]°C, Wind: [wind0wind-act=mph:--] mph [wind0dir-act=endir], Pressure: [thb0press-act:--] hPa, Rain [rain0total-sumday:--]mm, Humidity: [th0hum-act:--] %, Solar: [sol0rad-act:--] w/m2, UV Index: [uv0index-act:--] www.conligwx.org
shows this in Twitter:

Code: Select all

Temp:%206.7°C,%20Wind:%202.0%20mph%20ENE,%20Pressure:%20989.7%20hPa,%20Rain%202.8mm,%20Humidity:%2094.0%20%,%20Solar:%209.0%20w/m2,%20UV%20Index:%200.0%http://20www.conligwx.org 
Removing the % after humidity sensor difinition shows:

Code: Select all

Temp: 6.6°C, Wind: 0.0 mph NE, Pressure: 989.7 hPa, Rain 2.8mm, Humidity: 94.0, Solar: 12.0 w/m2, UV Index: 0.0 http://www.conligwx.org 
appologies if this has already been discussed.

Re: Percent Character in Twitter

Posted: Sat Dec 01, 2018 8:59 pm
by admin
Please copy in this one. It looks like percent but is a different character.

Code: Select all

It was discussed in this thread: viewtopic.php?f=56&t=10036&hilit=twitter+hum

Re: Percent Character in Twitter

Posted: Sun Dec 02, 2018 11:38 pm
by ConligWX
Thanks, I found that symbol too small and another percentage works too that is bigger:

Code: Select all

- works

Code: Select all

works

Code: Select all

%
does not work.

Re: Percent Character in Twitter **solved**

Posted: Tue Sep 17, 2019 7:46 am
by iatros
Thank you Simon, that's great!

May I offer you in exchange the code for showing WInd directions only if wind speed is above 0 kmh:

Code: Select all

 Wind:  #if#{*[wind0wind-act]=0*}#then#--#else#[wind0wind-act=kmh.1] kmh aus [wind0dir-act=dedir]#fi#
regards from Switzerland
Martin
@Wetter_Endingen