Author Topic: Downloading Radar Imagery  (Read 67252 times)

Wichtel

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 550
Downloading Radar Imagery
« Reply #15 on: September 25, 2004, 02:16:38 PM »
Rotlaus


You are a God  :approve:

joelw135

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 670
Downloading Radar Imagery
« Reply #16 on: September 25, 2004, 02:34:31 PM »
I have tried the test file and only the first radar1 worked. So I created the following text file and the first three loaded which are gif files. The rest did not load. What do I do to get it to work for all 8 URLs. Thanks.

http://sirocco.accuweather.com/nx_mosaic_234X175c/sir/inmsirPA_.gif
\Storage Card\Radar\radar1.gif
http://sirocco.accuweather.com/nx_mosaic_234X175c/sir/inmsirIL_.gif
\Storage Card\Radar\radar2.gif
http://sirocco.accuweather.com/nx_mosaic_234X175c/sir/inmsirCAS.gif
\Storage Card\Radar\radar3.gif
http://image.weather.com/images/sat/france_sat_720x486.jpg
\Storage Card\Radar\radar4.jpg
http://image.weather.com/images/sat/europesat_600x405.jpg
\Storage Card\Radar\radar5.jpg
http://image.weather.com/images/sat/mideastsat_440x297.jpg
\Storage Card\Radar\radar6.jpg
http://image.weather.com/images/sat/europesat_600x405.jpg
\Storage Card\Radar\radar7.jpg
http://image.weather.com/images/sat/europesat_600x405.jpg
\Storage Card\Radar\radar8.jpg
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Rotlaus

  • TodayPlus User
  • **
  • Posts: 58
Downloading Radar Imagery
« Reply #17 on: September 25, 2004, 04:20:41 PM »
@uk_skinner: I had just to remove the extra chars at the end of the URLs. You´ll get the code, when it works so as expected. As you see, Joelw135 has some problems.

@Wichtel: Do not praise to much. As you see, it doesnt work with too much images

@joelw135: You found the first bug.  :D  The problem is, in your case my program starts 8 instances of EzDownload. Thats probalby too much.  :wink:

I think the program has to wait  for each image finished downlading. If we get 20 cities with radar and sat picture, we would have running 40 instances of EzDownload.
I´ll see, if i can modify it, to wait after each picture.

Oh, and can i have a changing URL, you know, the images with Date and time in it. I have some ideas....

With kind regards,

Andre

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Downloading Radar Imagery
« Reply #18 on: September 25, 2004, 04:56:51 PM »
Quote from: "Rotlaus"
@uk_skinner: I had just to remove the extra chars at the end of the URLs. You´ll get the code, when it works so as expected. As you see, Joelw135 has some problems.

@Wichtel: Do not praise to much. As you see, it doesnt work with too much images

@joelw135: You found the first bug.  :D  The problem is, in your case my program starts 8 instances of EzDownload. Thats probalby too much.  :wink:

I think the program has to wait  for each image finished downlading. If we get 20 cities with radar and sat picture, we would have running 40 instances of EzDownload.
I´ll see, if i can modify it, to wait after each picture.

Oh, and can i have a changing URL, you know, the images with Date and time in it. I have some ideas....

With kind regards,

Andre


Andre:

     You are the man.   :approve:  
     Can we exit EZDownload after 2 images are downloaded and reload the EZDownload?  How do you think?

Rotlaus

  • TodayPlus User
  • **
  • Posts: 58
Downloading Radar Imagery
« Reply #19 on: September 25, 2004, 06:09:53 PM »
Quote from: "uk_skinner"

Andre:

     You are the man.   :approve:  
     Can we exit EZDownload after 2 images are downloaded and reload the EZDownload?  How do you think?


There is not one EzDownload instance that download two fimages.
The Problem is as follows: When two images are in the radar.txt, my program calls EzDownload two times, and its started two times. When you could look in the Taskmanagr while downloading, there are two entries ´EzDownload´. You have two running EzDownload Instances in Memory.

I hope i could make the point clear. My english is not th best.

I think, i´ll have to check if EzDownlad finished itself after downloading, and then start the next Download.

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Downloading Radar Imagery
« Reply #20 on: September 25, 2004, 06:41:49 PM »
Quote from: "Rotlaus"
Quote from: "uk_skinner"

Andre:

     You are the man.   :approve:  
     Can we exit EZDownload after 2 images are downloaded and reload the EZDownload?  How do you think?


There is not one EzDownload instance that download two fimages.
The Problem is as follows: When two images are in the radar.txt, my program calls EzDownload two times, and its started two times. When you could look in the Taskmanagr while downloading, there are two entries ´EzDownload´. You have two running EzDownload Instances in Memory.

I hope i could make the point clear. My english is not th best.

I think, i´ll have to check if EzDownlad finished itself after downloading, and then start the next Download.


Rotalus:

      I see what you meant.  Your English is much better than me.  Thanks for keep us posted. :D

ya1950

  • TodayPlus Pro
  • ***
  • Posts: 191
Downloading Radar Imagery
« Reply #21 on: September 26, 2004, 01:35:32 AM »
OK, Now you guys have got me interested! I'm thinking about how to incorporate this into the Dash skin. I do have a question - where do you DL the radar images for non US locations? I'm in Israel and a google search doesn't get me anywhere.

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Downloading Radar Imagery
« Reply #22 on: September 26, 2004, 06:02:31 AM »
Quote from: "ya1950"
OK, Now you guys have got me interested! I'm thinking about how to incorporate this into the Dash skin. I do have a question - where do you DL the radar images for non US locations? I'm in Israel and a google search doesn't get me anywhere.


ya1950:  Look the weather section in your local TV station or News website in Israel.  Another good place is National Weather center in your contry too.  You might find an image you like.  At this moment, we only can download the image with "fixed" name.  Rotlaus will work on a solution to download the file saved in dynamic name or in dynamic folder.  hooloovoo gave me this link http://www.israelweather.co.il/sat.asp.  If you fins a good, please share with us too.

Rotlaus

  • TodayPlus User
  • **
  • Posts: 58
Downloading Radar Imagery
« Reply #23 on: September 26, 2004, 06:07:49 AM »
Ok, here we go with the next version. The Program waits for each instance of EzDownload finishing. In the zip you'll find a radar.txt with 24 Images, which does work for me.

Please test it and give me some Feedback.

Andre

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Downloading Radar Imagery
« Reply #24 on: September 26, 2004, 06:52:02 AM »
Quote from: "Rotlaus"
Ok, here we go with the next version. The Program waits for each instance of EzDownload finishing. In the zip you'll find a radar.txt with 24 Images, which does work for me.

Please test it and give me some Feedback.

Andre


Andre:  You are fast...  Good work.......

Update:  The Radar.exe also can be launched while the weather information is being updated.  But, I always get an error message "No.16" was failed.  And radar11-16 were missing when I check the /My Documents.  But I think it was due to my network was busy.  I will try it later and report the result here.  But looking good!!!!


Rotlaus

  • TodayPlus User
  • **
  • Posts: 58
Downloading Radar Imagery
« Reply #26 on: September 26, 2004, 07:55:40 AM »
Quote from: "uk_skinner"
Update:  The Radar.exe also can be launched while the weather information is being updated.  But, I always get an error message "No.16" was failed.  And radar11-16 were missing when I check the /My Documents/, any idea?


The Message "Could not start EzDownload for Image No. 16" comes when the call of CreateProcess fails. I have no idea when this happnes and why. And i have no idea why the other images are missing. I'll put the code in the Attachment. Maybe u can try starting EzDownload withe the Parameter ShowWindow=1, then u can see the EzDownload Window. I have the next few hours no time for testing.


Andre

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Downloading Radar Imagery
« Reply #27 on: September 26, 2004, 07:58:48 AM »
Quote from: "Rotlaus"

The Message "Could not start EzDownload for Image No. 16" comes when the call of CreateProcess fails. I have no idea when this happnes and why. And i have no idea why the other images are missing. I'll put the code in the Attachment. Maybe u can try starting EzDownload withe the Parameter ShowWindow=1, then u can see the EzDownload Window. I have the next few hours no time for testing.


Andre


Andre:  No problem!!!  Thanks a lot.  I will try it and let you know..... :bow:

Rotlaus

  • TodayPlus User
  • **
  • Posts: 58
Downloading Radar Imagery
« Reply #28 on: September 26, 2004, 09:17:53 AM »
New Version. Please give it a try.

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Downloading Radar Imagery
« Reply #29 on: September 26, 2004, 10:53:29 AM »
Quote from: "Rotlaus"
New Version. Please give it a try.


Andre:  This time looked like the EzDownload is launched for each radar image then is terminated after each downlaoding, right?  Great thought....  It also worked within TP no error message showed up...  Wow, you really did it!!!!!