Need to automate retreival of file from satellite website

Strictly for sharing scripts used in Digital Atmosphere and getting assistance from other users.
Post Reply
gkasica
Member
Posts: 57
Joined: Mon Jan 02, 2006 3:58 pm
Location: Jackson WI USA
Contact:

Need to automate retreival of file from satellite website

Post by gkasica »

I know that wild cards can be used to accomplish this as shown in my current command below, but I'm wondering if there's a way to have the download command (or something else) look at the following URL for example and get whatever the latest file is that starts with LATEST - there's always only one of them obviously bu the date and time change:

http://www.nrlmry.navy.mil/focus_public ... 1.1930.jpg

my problem comes in that it depends on WHEN the file is created and put up on the web site, sometimes its later than others and since I'm using the satellite as a base map for plotting on....no map no plot...hence the problem.

Currently I'm using the following command:

download,http://www.nrlmry.navy.mil/focus_public ... C:\Program Files\DigitalAtmosphereWS\USVISSAT.jpg

OR

download,http://www.nrlmry.navy.mil/focus_public ... C:\Program Files\DigitalAtmosphereWS\USVISSAT.jpg

depending on if I want the 00 or 30 minute image.....problem comes trying to tell WHEN either is available.and trying to time the script to run at the right time,

I'd be happy with just always getting whatever is LATEST as the URL I put in above shows but I'm not sure how to do that....that way no matter when the script would execute it would get the file there starting with LATEST and not worrying about the rest of the name. Similar to how the %1 is suppoes to work on Data retreival from the menu....does this make any sense?

Any answers??
Post Reply