It is currently October 19th, 2020, 3:41 pm

Calculate Windspeed/Beaufort - Formula Problem

Help with creating, editing & fixing problems with skins
giuliano
Posts: 4
Joined: November 30th, 2009, 5:38 pm

Calculate Windspeed/Beaufort - Formula Problem

Post by giuliano »

Hey guys,

I'm trying to calculate the Windspeed into Beaufort.
Unfortunately I cant figure out how to get it working.

here is my code:

Code: Select all

[MeasureBeaufort]
MeasureName=MeasureWindCurrent
Measure=Calc
Formula=ROUND((((%1*1000)/3600)/0,836)**(2/3))

[MeterBeaufort]
MeasureName=MeasureBeaufort
Meter=String
X=145
Y=12r
FontFace=#FontFace#
FontColor=#FontColor3#
FontSize=7
StringAlign=LEFT
StringStyle=NORMAL
AntiAlias=1
First issue is how to include the wind measure value into the beaufortmeasure.
Second is, that even without getting the correct windspeed into the formula, the formula doesnt work. It always equals 0. BTW: I tested that by putting a number into the formula instedt of the variable %1

Thanks 4 ur help (:
User avatar
JpsCrazy
Posts: 690
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Calculate Windspeed/Beaufort - Formula Problem

Post by JpsCrazy »

You can use Measures as dynamic vairables by surrounding them in brackets. More info: http://rainmeter.net/cms/Skins-DynamicVariables_beta

I think the problem with the calc is the ,
It should be a . I believe.
giuliano
Posts: 4
Joined: November 30th, 2009, 5:38 pm

Re: Calculate Windspeed/Beaufort - Formula Problem

Post by giuliano »

Yeah, that's it!

Thanks for that quick response.
You've got it man!