Author Topic: My wishfile  (Read 4373 times)

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
My wishfile
« on: January 28, 2005, 12:58:31 PM »
O.k., after thinking a time over the things I've tested, here comes my
wishfile (I know it isn't christmas yet)  :oops:

What I would like:

One exe, that does following things for use in the European countries

- everything what windir.exe does now but with calculation of km/H in the
   exe (multiplying the miles with 1.60935 --> km/H, adding 0.5 to the
   result and take the integer in a var. (else it would not give rounded
   values, f.ex. 6.21 miles gives 9.9940635 --> would be rounded to
   10 in German. 3.22 miles gives 5.182107 --> would be rounded to
    5 km in German.
-  the same thing with the visibility (if vis is 999.0 write 999 into the var
    (means visibilty unlimited)

- storing the winddirection like it did until now

Hope, you can understand, what I mean and it is not too difficult.

Greetings Broesel

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
My wishfile
« Reply #1 on: January 28, 2005, 02:11:17 PM »
Broesel,

Since about half a year I know a person who is able to do this... Hopefully he will read this thread too... :wink:  :wink:  :wink:

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

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
My wishfile
« Reply #2 on: January 28, 2005, 04:14:55 PM »
Done, please go to here and download the Tp_WPACK_NonEng.zip again.  Once it is stable, the silent one will be available.

http://www.jhollin1138.com/forums/viewtopic.php?p=12302#12302

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
My wishfile
« Reply #3 on: January 29, 2005, 04:05:29 AM »
Quote from: "uk_skinner"
Done, please go to here and download the Tp_WPACK_NonEng.zip again.  Once it is stable, the silent one will be available.

http://www.jhollin1138.com/forums/viewtopic.php?p=12302#12302


Uk_skinner,

Thanks for this new version!

I've tested this program and noticed:
•  there's a right storage in the registry
•  there's a correct conversion from miles to km, and it's rounded well
•  when there's no data in a city.txt (""), then the result is 0

Is there a solution for the last point?!?

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

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
My wishfile
« Reply #4 on: January 29, 2005, 04:39:44 AM »
Quote from: "uk_skinner"
Done, please go to here and download the Tp_WPACK_NonEng.zip again.  Once it is stable, the silent one will be available.


Cool uk_skinner, you are really fast  :lol:

Thanks for the new version, I'll test it and give you feedback

Broesel

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
My wishfile
« Reply #5 on: January 29, 2005, 06:44:45 AM »
Quote from: "Timmy"

•  when there's no data in a city.txt (""), then the result is 0

Is there a solution for the last point?!?

Thanks!
Timmy[/color]


Timmy:

  Can you give me a specific example?  Did you mean there is no data in city.txt?   :?:

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
My wishfile
« Reply #6 on: January 29, 2005, 06:52:19 AM »
Quote from: "uk_skinner"
Quote from: "Timmy"

•  when there's no data in a city.txt (""), then the result is 0

Is there a solution for the last point?!?

Thanks!
Timmy[/color]


Timmy:

  Can you give me a specific example?  Did you mean there is no data in city.txt?   :?:


Yes, sometimes it happens, that there are no data in the actual weather,
looks like this: .swvisible "",but I think we can catch that in the skinfile,
because the value of the var is 0
f.ex.:
Code: [Select]

calcvar,var11,fromconfig,c%var9%vis
if,var,var11,,=,0
text,203,152,Not available,r
else
if,var,var11,,=,999
text,203,152,Unlimited,r
else
text,203,152,Km,r
text,184,152,~ %var11%,r
endif
endif


Greetings Broesel

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
My wishfile
« Reply #7 on: January 29, 2005, 06:55:54 AM »
Oops, made a mistake at my side.

I put 990 for unlimited, I will correct it and update again..Sorry..

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
My wishfile
« Reply #8 on: January 29, 2005, 10:09:17 AM »
Quote from: "uk_skinner"
Timmy:

  Can you give me a specific example?  Did you mean there is no data in city.txt?   :?:

Uk_skinner,

Here is an example of my recent city2.txt:
Code: [Select]
this.swCity = "Vlissingen";
this.swSubDiv = "";
this.swCountry = "Netherlands";
this.swRegion = "West Europe";
this.swTemp = "36";
this.swTempCel = Math.round((5/9)*(this.swTemp-32));
this.swCIcon = "";
this.swWindS = "4";
this.swWindD = "ESE";
this.swBaro = "30.26";
this.swHumid = "76";
this.swReal = "32";
this.swUV = "";
this.swVis = "";
this.swLastUp = "01/29/2005 07:00:00";
this.swConText = "";


This day there are three/four empty fields.

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

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
My wishfile
« Reply #9 on: January 29, 2005, 10:16:19 AM »
Timmy:

Ok, I see..  

Is broesel's solution fine?  I can put "0" if there is an empty filed from city.txt in the program code.  This will acheive the same outcome (var will be assign 0), and you just have a "0" (instead of "") in your registry key.

Tell me your preferred way.

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
My wishfile
« Reply #10 on: January 29, 2005, 11:16:53 AM »
Quote from: "uk_skinner"
Timmy:

Ok, I see..  

Is broesel's solution fine?  I can put "0" if there is an empty filed from city.txt in the program code.  This will acheive the same outcome (var will be assign 0), and you just have a "0" (instead of "") in your registry key.

Tell me your preferred way.

Uk_skinner,

Thank you again for your willing and helping attitide!!! It's realy appreciated!!! It had been some hard working weeks for you and some of us, but together we did succeed in many things. I realy enjoy the skinhobby.  

A "0" instead of "" ? For me, you haven't to do that, everything works very well now. I've just tried Broesel's code, two posts higher, and that code works fine, too. So, this part of the skin is OK! In this thread I have no further wishes, but in another thread I'll put an old wish...

NOTE @ ALL: Yesterday I had big troubles with a part of the code I copied from a codebox of this board, but Broesel helped me out. What's the matter? If a member post his text in a codebox, then there's automaticaly put a blank at the end of eacht textline... And that could give problems in your skin.txt! Be aware of that!

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

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
My wishfile
« Reply #11 on: January 29, 2005, 11:40:02 AM »
This has been happened before.

Users tried to copy the contents of radar.txt from the forum and got extra space at the end of each line and resulted the failure of radar.exe.  You just need to be aware of that.

As for your raindrop, the information needs to be downloadable as text then I can do the extraction.  I am counting on you to see you can find such a site at your side.  Perhaps the weather page from local TV or News will provide you this information.

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
My wishfile
« Reply #12 on: January 29, 2005, 11:48:28 AM »
Quote from: "uk_skinner"
As for your raindrop, the information needs to be downloadable as text then I can do the extraction.  I am counting on you to see you can find such a site at your side.  Perhaps the weather page from local TV or News will provide you this information.

Uk_skinner,

I'll look for the right URL.

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