TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: Timmy on December 29, 2003, 06:37:13 AM

Title: 'WIND SCALE: Mph ---> Beaufort
Post by: Timmy on December 29, 2003, 06:37:13 AM
SRS wrote me:  I have no idea what Beaufort is  ... but you can do basic integer arthimetic using variables in todayplus, so you should be able to convert from one unit to another.

But I'm not so good in 'basic integer arthimetics'. Therefore my question to this forum: What are the lines in a skin to get Beaufort (instead of Mph)?

Some information:
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: MadTxn on December 29, 2003, 10:54:55 AM
I'm guessing you'll need a pig-load of if statements, just like for the battery meter stuff. i.e

<pseudocode>
if MPH 1 <> 3
  beaufort=1
etc...
</pseudocode>
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: Timmy on December 31, 2003, 11:13:09 AM
Quote from: MadTxnI'm guessing you'll need a pig-load of if statements, just like for the battery meter stuff. i.e

<pseudocode>
if MPH 1 <> 3
  beaufort=1
etc...
</pseudocode>

MadTxn,
I've tried the following lines in my slider. But with thes lines, my screen freezened. Can you see what is wrong?

[/color]
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: TransFXB on December 31, 2003, 11:38:52 AM
Timmy,

Just curious: have you tried to display var40 just after the command
"calcvar,var40,windspeed"?

I have tried but it always returns 0 for me.

TransFXB
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: MadTxn on December 31, 2003, 11:40:00 AM
First, I wouldn't change var40, I would use a different var, i.e.

if,var,var40,,<,1
storevar,var41=0
else...


Second, I think instead of

var,var40,175,36,, Beaufort,l


you want


text,%var40%,175,36,, Beaufort,l
Title: calcvar ....
Post by: Broesel on January 01, 2004, 09:25:48 AM
I don't think, you can get a working value with the calcvar-command,
as it is restricted to only some of the system-values (take a look in the
skin-reference) but as it would be nice to also change the mph to metric
values (kmh) you could make a request in the "feature requests".

Greetings Broesel
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: TransFXB on January 01, 2004, 11:20:24 AM
Broesel, this is exactly what I think.

This is why i have asked above :

Quotehave you tried to display var40 just after the command
"calcvar,var40,windspeed"?

TransFXB
Title: WIND SCALE: Mph ---> Beaufort
Post by: Timmy on January 02, 2004, 09:44:28 AM
The last thing I've tried, are the following lines. But it did't work either. Who knows the solution???I need to know how to solve this problem, before I start the next feature: an imagemeter with the beaufort-scale. On the forehand, I've made the corresponding ping (see below). I try to let it work like the moonphase imagemeter.
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: TransFXB on January 02, 2004, 09:59:12 AM
Timmy,

As stated above, the basic problem is that 'calcvar,var40,windspeed' will return nothing. windspeed is not part of the possible system values that can be used, as far as I know.

I ask again : have you tried to simply write/display what is in var40 just after the command calcvar,var40,windspeed ?
I guess not. That's the point.

TransFXB
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: Timmy on January 02, 2004, 10:23:20 AM
Quote from: TransFXBAs stated above, the basic problem is that 'calcvar,var40,windspeed' will return nothing. windspeed is not part of the possible system values that can be used, as far as I know.

I ask again : have you tried to simply write/display what is in var40 just after the command calcvar,var40,windspeed ?
I guess not. That's the point.

TransFXB

TransFXB, isn't there realy any possebility to 'get' the windspeed, and to do something with it? (I'm almost sure there must be a way, but I do not see it...)
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: TransFXB on January 02, 2004, 10:50:51 AM
Timmy,

I have tried earlier to do what you are trying to do.
In my case, it was to convert mph to km/h.
I like very much your Beaufort idea (I am a sailor sometimes) but it basically requires the same input as for the mph to km/h.

I have not been succesfull to get this 'windspeed' by any mean.
This doen't mean that it is not possible but I really don't know how.

I think this deserves a request for feature!!

TransFXB
Title: 'WIND SCALE: Mph ---> Beaufort
Post by: Timmy on January 02, 2004, 10:57:21 AM
Quote from: TransFXBTimmy,

I have tried earlier to do what you are trying to do.
In my case, it was to convert mph to km/h.
I like very much your Beaufort idea (I am a sailor sometimes) but it basically requires the same input as for the mph to km/h.

I have not been succesfull to get this 'windspeed' by any mean.
This doen't mean that it is not possible but I really don't know how.

I think this deserves a request for feature!!

TransFXB

Thanks, TransFXB,
I'll follow your advice, and bring it in the forum 'Feature requests'.