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
Q Section
Weapons Я Us
*****


0
899 posts 100 threads Joined: Feb 2003
02-23-2004, 07:19 AM -
#1
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.
HMSS Q Section
click here for 30+ ideas from a Special Plugin List
some examples=
UV Index Monitor, Allergy Monitor, TLB Version Monitor, Cinema Monitor
Visualise World Righteousness
Semper Ad Fundum
Working for the Secret Intelligence Service
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...


Forum Jump:


Users browsing this thread: 1 Guest(s)