• Welcome to TodayPlus Boards v2.
 

Visible winddirection

Started by Timmy, January 15, 2005, 11:30:40 AM

Previous topic - Next topic

thc

yes Timmy, you're right!

it's time to give credit for all people without whom tp would be died and buried..

Uk_skinner for all it's exe, Wichtel which gave a second breath at TodayPlus with Hammerskin, You for your graphics, Broesel and so many more...

Broesel

Quote from: thcit's time to give credit for all people without whom tp would be died and buried..


And not to forget ... without your's and jhollins find in the registry,
all this could not work as it does now :)

Broesel

thc


Timmy

@Broesel / @Uk_skinner,

I'm using this coding from Broesel to convert the visibility to km, in stead of miles:

load,city,%var0%
calcvar,var11,fromconfig,c%var0%vis
calcvar,var11,*,%var11%,1609
calcvar,var11,/,%var11%,1000
text,112,26,Zicht: ,l
text,138,26,%var11% km,l


But I noticed that the result is only 0 km. Does one of you know what's wrong in these textlines?!?

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: TimmyI noticed that the result is only 0 km. Does one of you know what's wrong in these textlines?!?

Yes, I noticed that too sometimes, but first take a look at your cityx.txt
What is the value for vis there ? If there is no value, it will be "" and the
var will deliver 0.

The second problem is, that we can't calculate with decimalpoints in T+,
so the values are not really exact. I helped me with another formula,
so there come meaningfully values. And there can be other values like
999.00 what means, visibility is unlimited, so I use:


calcvar,var11,fromconfig,c%var9%vis
if,var,var11,,<1
text,203,152,< 1 km,r
else
if,var,var11,,=,999
text,203,152,unlimited,r
else
calcvar,var11,*,%var11%,1667
calcvar,var11,/,%var11%,1000
text,203,152,km,r
text,184,152,~%var11%,r
endif
endif


Greetings Broesel

uk_skinner

May be I can put the calculation in exe then you can have decimal points, but this need to written into text not var. Let me know if you want to try this way.

Broesel

Quote from: uk_skinnerMay be I can put the calculation in exe then you can have decimal points, but this need to written into text not var. Let me know if you want to try this way.

Well, after some testing of the *.exe I think I have some wishes too,
but I have to think over some of them, so when I'm clear, i will contact
you if it's o.k.
And the result of the calculation don't have to be with decimal points
but if we get values like 9.9967 km it should be rounded to 10, so
the var is an integer again and can be stored as a var. I will give you my
thoughts, when your headache is gone :D :D :D

Broesel

uk_skinner

Broesel:

 Sure no problem..
 Are you doing the same thing as me, try to increase the number of post???? :wink:  :lol:

Broesel

Quote from: uk_skinnerBroesel:
Are you doing the same thing as me, try to increase the number of post???? :wink:  :lol:

Oooops, now I know, how it happened to you :oops:
But I can't delete on of the posts ?

Broesel

uk_skinner


Timmy

Quote from: uk_skinnerMay be I can put the calculation in exe then you can have decimal points, but this need to written into text not var. Let me know if you want to try this way.
Uk_skinner,

At this point I'm the geatest dummy of this board...  so I count totally on Broesels opinion! Let's wait on his conclusion.

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Timmy

Quote from: Broesel

calcvar,var11,fromconfig,c%var9%vis
if,var,var11,,<1
text,203,152,< 1 km,r
else
iv,var,var11,,=,999
text,203,152,unlimited,r
else
calcvar,var11,*,%var11%,1667
calcvar,var11,/,%var11%,1000
text,203,152,km,r
text,184,152,~%var11%,r
endif
endif


Greetings Broesel
Broesel,

Note: typemismatch: iv --> if

Some difficulties to report:
•  I've tried this code, but I didn't get any text on my screen.
•  The same difficulties are with the conversion from miles to Beaufort: the result is only 0.

Any ideas how to solve these problems?!?

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: Timmy
Broesel,

Note: typemismatch: iv --> if

Yes, I typed it at work from the doc.file at the ppc


QuoteSome difficulties to report:
•  I've tried this code, but I didn't get any text on my screen.
•  The same difficulties are with the conversion from miles to Beaufort: the result is only 0.

Any ideas how to solve these problems?!?

Timmy

Not at the moment, I pm you my Email, so if you zip me your skin-file
I'll take a closer look o.k. ?

Broesel

Timmy

Quote from: Broesel
Quote from: Timmy
Broesel,

Some difficulties to report:
•  I've tried this code, but I didn't get any text on my screen.
•  The same difficulties are with the conversion from miles to Beaufort: the result is only 0.

Any ideas how to solve these problems?!?

Timmy

Not at the moment, I pm you my Email, so if you zip me your skin-file
I'll take a closer look o.k. ?

Broesel

Broesel,

I mailed you my skinfile.

Thanks!
Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Timmy, you got mail  :D

Broesel