• Welcome to TodayPlus Boards v2.
 

Downloading Radar Imagery

Started by Wichtel, September 23, 2004, 08:16:22 PM

Previous topic - Next topic

Wichtel

Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

joelw135

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

@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

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

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

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

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

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

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

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

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

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

New Version. Please give it a try.

uk_skinner

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!!!!!