Adding m³ to skin
Started by Q Section


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


2 posts in this topic
HorusUK
Senior Member
****


0
458 posts 40 threads Joined: Dec 2003
02-25-2004, 04:42 PM -
#2
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
Back once again...


Messages In This Thread
[No subject] - by Q Section - 02-23-2004, 07:19 AM
[No subject] - by HorusUK - 02-25-2004, 04:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)