• Welcome to TodayPlus Boards v2.
 

Downloading Radar Imagery

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

Previous topic - Next topic

joelw135

It looks like the same problem I had with ActivSync. Times out.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Rotlaus

Quote from: Rotlaus
- Put a little Frame about my Download Window
- location of radar.txt depending of location of radar.exe
- Do more extensive checking on the config File (for more failsafe)

Done!


Still open:
- Handle Dynamic URLs (with dates)
- Skinnable? Is this needed? (Only thing I can provide would be a little background image if you wish)
- Handle Dynamic URLs (dynamic images created with Webserver Scripts, Request from nas)

Greetings,

Andre

uk_skinner

Quote from: Rotlaus
Quote from: Rotlaus
- Put a little Frame about my Download Window
- location of radar.txt depending of location of radar.exe
- Do more extensive checking on the config File (for more failsafe)

Done!


Still open:
- Handle Dynamic URLs (with dates)
- Skinnable? Is this needed? (Only thing I can provide would be a little background image if you wish)
- Handle Dynamic URLs (dynamic images created with Webserver Scripts, Request from nas)

Greetings,

Andre

Wow, watch out your speed, Andre.  Oh, I forgot, there is no speed-limit on highway in Germany, right? :approve:

uk_skinner

Andre:  Here was what I saw... Any idea?

Edit:  The 1st png was downloaded, but not the second jpg one.

nas

Rotlaus, I saw the same.

But now the download of Stock-Charts is possible...
All I can say: Great, marvellous, Rotlaus.

Many thanks.

nas

Rotlaus

Quote from: uk_skinnerAndre:  Here was what I saw... Any idea?

Edit:  The 1st png was downloaded, but not the second jpg one.

Can you post you post your radar.txt for testing purposes?

Thanks,

Andre

uk_skinner

I used the one came with your zip file.

Wichtel

@ Rotlaus @ uk_skinner

The Exe works excellently the problem is in the radar.txt

SURL=http://gfx.finanztreff.de/charts/cc_gatrixx.gfx?herkunft=130&b=240&h=200&d1=38&d2=200&out=png&typ=0&string=780100&boerse=0&zeit=0&land=276
STOR=\My Documents\test1.png
FORM=
SURL=http://image.de.weather.com/web/maps/satellite/regions/europesat_277x187.jpg
STrR=\My Documents\radar1.jpg
FORM=


I have changed the R into an O and could download both pictures
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

Rotlaus

Quote from: Wichtel@ Rotlaus @ Uk_skinner

The Exe works excellently the problem is in the radar.Txt

STrR=\My Documents\radar1.jpg

I have changed the R into an O and could download both pictures

Gnaaa, that was my radar.txt to test the error detection. :(

But, hey! Error detection works!  :D

Greetings,

Andre

Rotlaus

Ok, im playing with the dynamic URLs. What parameters do we need?

For example we take this URL:

httx://www.wetteronline.de/cgi-bin/cgi_aktgraph?LANG=de&ART=karte&JJ=2004&MM=10&TT=03&TIME=1400&TYP=schnee&KEY=DL

First of all, we need to know, where r put the formated string, in this example it's 70 (the first character of the year)
So, Position 70=YYYY
So we go on for month, day, hour and minute, so we get something like

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN

So we know where to put the Date in the URL. But we need to know more. How often does this Server refresh? In this case the RefreshTime is 30 minutes, so we get:

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN,30,RT

Looks good? I think we need more. How long is the Delay from posted images? When is the 13:00 picture posted? At 13:10? So we get:

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN,30,RT,10,RD

And we need to know the offset from the URL Time to the UTC time. In our sample its 120 minutes, i think, so we get:

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN,30,RT,10,RD,120,UO

I think its complete now, and it would be easy to implement this in my program. But on the other Hand that seems a bit complicated for the user.

What are u thinkin bout? Think loud please. :)

Andre

uk_skinner

Quote from: RotlausOk, im playing with the dynamic URLs. What parameters do we need?

For example we take this URL:

httx://www.wetteronline.de/cgi-bin/cgi_aktgraph?LANG=de&ART=karte&JJ=2004&MM=10&TT=03&TIME=1400&TYP=schnee&KEY=DL

First of all, we need to know, where r put the formated string, in this example it's 70 (the first character of the year)
So, Position 70=YYYY
So we go on for month, day, hour and minute, so we get something like

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN

So we know where to put the Date in the URL. But we need to know more. How often does this Server refresh? In this case the RefreshTime is 30 minutes, so we get:

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN,30,RT

Looks good? I think we need more. How long is the Delay from posted images? When is the 13:00 picture posted? At 13:10? So we get:

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN,30,RT,10,RD

And we need to know the offset from the URL Time to the UTC time. In our sample its 120 minutes, i think, so we get:

FORM=70,YYYY,78,MM,84,DD,92,HH,94,NN,30,RT,10,RD,120,UO

I think its complete now, and it would be easy to implement this in my program. But on the other Hand that seems a bit complicated for the user.

What are u thinkin bout? Think loud please. :)

Andre

Andre:  This question was bother me for a while.  It will be very complicated for users to find out the position and what kind of parameters you need.  Given the facts that every web site has its own way if they do have a dynamic url for image, it is really will be painful for you and users to nail it down percisely every parameters, update time and posted time.  What I would like to propose is, at beginning, we can have a specific exe for specific site.  For instance, I think we almost get everything covered in wetteronline.de.  If users are instersting in other sites that get different format, then an other one can be created.  I know, this sounds silly.  But in a way, it make things simple.  How do you think?
:roll:

Rotlaus

Quote from: uk_skinner
What I would like to propose is, at beginning, we can have a specific exe for specific site.  For instance, I think we almost get everything covered in wetteronline.de.  If users are instersting in other sites that get different format, then an other one can be created.  I know, this sounds silly.  But in a way, it make things simple.  How do you think?
:roll:

I think this is not a so good idea, cause in a few weeks we will have 20 different exe, all of them only download a special site. It would be easier to take one exe that covers them all. And, it would be easier to build a special radar.txt for users who cant do themselves, than building a exe for each user.

Anonymous

Quote from: Rotlaus... it would be easier to build a special radar.txt for users who cant do themselves, than building a exe for each user.

@uk_skinner
@Rotlaus

I also think it is easer with a (may be) Basic_Radar.txt which includes a lot of often used .urls (specifics) from those the users select themself (and create their own .txt).

nas

uk_skinner

Quote from: Anonymous
Quote from: Rotlaus... it would be easier to build a special radar.txt for users who cant do themselves, than building a exe for each user.

@uk_skinner
@Rotlaus

I also think it is easer with a (may be) Basic_Radar.txt which includes a lot of often used .urls (specifics) from those the users select themself (and create their own .txt).

nas
nas, when you become a guest?

nas

Don“t know. Was logged in.

nas