• Welcome to TodayPlus Boards v2.
 

Visible winddirection

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

Previous topic - Next topic

Broesel

Quote from: Timmy
Quote from: uk_skinner
Uk_skinner,

In Europe most countries use Beaufort in stead of M/hr or Km/hr.
Is Beaufort possible for you?

Timmy

Timmy, I did it already in the skin  :D

uk_skinner, it works like a charme  :lol:  . So now it would be nice, to get
the other cities ... :roll:

Broesel

uk_skinner

Timmy, Broesel:

 I email you guys an updated the exe.  This should take care of the base pathway issue.  Right now, it will take the base pathway from regsitry key.

Broesel:

 Wow, you are quick.....Do you guys prefer doing in exe or TP skin?  I will try to add the other city...

Timmy

Quote from: Broesel
Quote from: Timmy
Quote from: uk_skinner
Uk_skinner,

In Europe most countries use Beaufort in stead of M/hr or Km/hr.
Is Beaufort possible for you?

Timmy

Timmy, I did it already in the skin  :D

Broesel
Broesel,

Amazing.... I'm such a slow skinner and you guys are so fast... much to fast for me... Sorry...

Can you deal the skintext lines with us? (The lines that are doing these things with your skin). Would be nice!

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

Broesel

Quote from: uk_skinnerBroesel:

 Wow, you are quick.....Do you guys prefer doing in exe or TP skin?  I will try to add the other city...

Well, if we have the possibility to calculate with the values we can (nearly)
do everything. If you want to make it in the exe, no problem, but then
maybe you should use another var for the results.

And I have no problem giving away the code, I've used.

Broesel

Broesel

Quote from: Timmy
Can you deal the skintext lines with us? (The lines that are doing these things with your skin). Would be nice!

Yes, here it comes .......


//---------------------------------------------
//Broesels code to show winddir as a pic
//---------------------------------------------
calcvar,var11,fromconfig,c%var0%windir
image,15,168,%var11%.bmp,t

/--------------------------------------------
//Change mph to km/h
//-------------------------------------------
calcvar,var12,fromconfig,c%var0%windsd
calcvar,var12,*,%var12%,1609
calcvar,var12,/,%var12%,1000
text,60,170,Km/h: = ,l
text,110,170,%var12%,l

//--------------------------------------------
//Show Beaufort (0 - 12)
//--------------------------------------------
if,var,var12,0,><,1
text,60,190,0 Bft,l
else

if,var,var12,1,><,5
text,60,190,1 Bft,l
else

if,var,var12,6,><,11
text,60,190,2 Bft,l
else
if,var,var12,12,><,19
text,60,190,3 Bft,l
else

if,var,var12,20,><,28
text,60,190,4 Bft,l
else
if,var,var12,29,><,38
text,60,190,5 Bft,l
else

if,var,var12,39,><,49
text,60,190,6 Bft,l
else

if,var,var12,50,><,61
text,60,190,7 Bft,l
else

if,var,var12,62,><,74
text,60,190,8 Bft,l
else
if,var,var12,75,><,88
text,60,190,9 Bft,l
else
if,var,var12,89,><,102
text,60,190,10 Bft,l
else
if,var,var12,103,><,117
text,60,190,11 Bft,l
else
if,var,var12,,>,117
text,60,190,12 Bft,l
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
//==============================


That's it .....
Be sure, you use a free variable

Broesel

Edit: Oh, I only made this one pic (named 3.bmp) for this test, don't
have the graphics for the other winddirs now.

Timmy

Quote from: Broesel
Quote from: Timmy
Can you deal the skintext lines with us? (The lines that are doing these things with your skin). Would be nice!

Yes, here it comes .......

Edit: Oh, I only made this one pic (named 3.bmp) for this test, don't
have the graphics for the other winddirs now.
Broesel,

Thanks for these skintextlines!

Question: Do you have prereferences for winddirection pics? Pixels? Colour? other things?

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

uk_skinner

Quote from: Broeselif,var,var12,,<,117
text,60,190,12 Bft,l

Broesel:

     Is this one right?

Broesel

Quote from: TimmyQuestion: Do you have prereferences for winddirection pics? Pixels? Colour? other things?

No preferences, liked the one you had in the first post of this thread.  :D

Broesel

Broesel

Quote from: uk_skinner
if,var,var12,,<,117
text,60,190,12 Bft,l

Broesel: Is this one right?

I think so, if it's more then 117 km/h it should be 12 Bft

Broesel

uk_skinner

Should not be "if,var,var12,,>,117"????

Timmy

Uk_skinner,

It's very busy on the board today... And that's due to the great brainwave you and Broesel had today. Still no headache?????  :wink:


Uk_skinner, I just got your latest TpRegistryWind.exe and tried this version, too. This version gave an error report:

city1.txt
Could not open buffer file!

I click on OK and this error report goes away. But the program icon of the .exe still is there (at the top bar). I click on the icon, and a new report says:TP Registry Key
Update Done

I click OK, and the screen is like it was before the trial.

Hope, this report helps you!

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

uk_skinner

Timmy:

 Well, you just gave me a headach... :wall:  :wall:

 Let take a look, Oddly, I did not get any error message.  Can you show me the pathway in the registry key?

Timmy

Uk_skinner,

Is this enough?


BTW: the version you gave me earlier, is still working perfect!!!

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

uk_skinner

Sorry, I meant:

HKEY_CURRENT_USER\Software\SRSSoft\TodayPlus

Tap on it, you should see "BasePath" and it should say "/Program Files/TodayPlus".

That is odd, I tested on my PPC and I pointed the base to default nad it worked..  :shock:  :shock:

Broesel

Quote from: uk_skinnerShould not be "if,var,var12,,>,117"????

:oops: Of course you are right  :oops:

I changed it in my first post

@Timmy: please change the sign in the code too ...

Broesel