02-25-2004, 04:42 PM -
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!)...
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:
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:
The output I'd see in my WM skin would be "0 mph".
So, adding "m³" to a parameter would be as simple as:
And the value in the WM skin reads "FooValue m³"...
Another one for our man, Yuri! :D
I'll use this image to help illustrate what I mean (although they're not the best examples!)...
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"
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 = "</"
So, adding "m³" to a parameter would be as simple as:
Code:
[CustomParam0]
name = Foo
unit = m³
find0 = "<td>Foo</td>"
delim = "</"
Another one for our man, Yuri! :D
Back once again...