Tordex Community
Adding m³ to skin - Printable Version

+- Tordex Community (http://forum.tordex.com)
+-- Forum: True Launch Bar plugins (http://forum.tordex.com/forum-4.html)
+--- Forum: Plugin features and improvements (http://forum.tordex.com/forum-15.html)
+--- Thread: Adding m³ to skin (/thread-1268.html)



- Q Section - 02-23-2004

Hello Yuri
Can you please add the ability to display /m³ to a slot in the weather monitor skin? We would like it to be able to display pollen counts correctly. This would be similar to adding a % for the Humidity.

Thank you.


- HorusUK - 02-25-2004

Perhaps the unit setting should be modified so that it is more literal. If a value doesn't have any internal meaning to TLB, then it should be passed stratight through to the plugin.

I'll use this image to help illustrate what I mean (although they're not the best examples!)...
[Image: currentconditionsexample.gif]

In example 1, I want to retrieve the Wind Speed, but change it's unit type from km/h to kilometers/h, I'd specify a unit type in the skin.ini, thus:
Code:
[CustomParam0]
name = Wind Speed
unit = kilometers/h
find0 = "<td>Current Conditions</td>"
find1 = "Wind"
find2 = "mph"
find3 = "<b>
delim = " km/h"
The output I'd see in my WM skin would be "12.9 kilometers/h".


In example 2, I want to retrieve the Wind Gusts, and add a unit type of mph (I'm retrieving parameter with valuetype=INT so the "-" gets converted to a zero!), I'd specify a unit type in the skin.ini, thus:
Code:
[CustomParam0]
name = Wind Gust
valuetype = INT
unit = mph
find0 = "<td>Current Conditions</td>"
find1 = "Wind Gust"
delim = "</"
The output I'd see in my WM skin would be "0 mph".


So, adding "m³" to a parameter would be as simple as:
Code:
[CustomParam0]
name = Foo
unit = m³
find0 = "<td>Foo</td>"
delim = "</"
And the value in the WM skin reads "FooValue m³"...


Another one for our man, Yuri! :D