Percent Character in Twitter **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Percent Character in Twitter **solved**

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Percent Character in Twitter

Post 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
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Percent Character in Twitter

Post 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.
iatros
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Mon Jan 25, 2016 8:48 am

Re: Percent Character in Twitter **solved**

Post 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
Post Reply