Capture "Forecast at a glance"

, ,

Let me be very clear about this question, I’m not asking Brian to leave his wife and family and live in a cave and program this…

Can anyone suggest a way to capture just the “forecast at a glance” section of this nws webpage to incorporate into another webpage?

http://www.srh.noaa.gov/data/forecasts/CAZ015.php?warncounty=CAC089&city=Redding

I do a screen capture and then crop using Paintshop Pro 7.0. It looks like this on my webage :

There is probably an easier way but this works for me. The only reason I don’t use WD’s forecast graphics is that my weather PC’s vidcard only goes to 800X600 and therefore truncates the last day and a half.

John

Manually or automatically?

JBags:

Have you checked into HyperSnap DX5? I also use Paintshop Pro as well but they don’t have the feature that HyperSnap has which includes the ability to run HperSnap in a batch mode.

You can set it up so that it will call the program, and based upon pixels x,y, width, height paramenters, capture what is on the screen, saving it as a file, all in one command.

Here’s a sample code I use when I have my lightning data on the screen to capture screen segments:

@echo off
HprSnap5 -snap:x5:y42:w1020:h143 -save:jpg j:\wdfiles\lar1.jpg
HprSnap5 -snap:x5:y190:w184:h456 -save:jpg j:\wdfiles\lar2.jpg
HprSnap5 -snap:x5:y645:w1018:h69 -save:jpg j:\wdfiles\lar3.jpg
HprSnap5 -snap:x708:y350:w316:h294 -save:jpg j:\wdfiles\lar4.jpg
Hprsnap5 -snap:x708:y188:w316:h158 -save:jpg j:\wdfiles\lar5.jpg

The example above saves 5 segments from the screen in one processing.

Now, if you’re clever enough, which I’m not, you can even probably make a batch call within Schdlite’s (‘Schedule Lite’ is a batch scheduling program that can run multiple jobs at scheduled times) program that can run a batch job calling for the web page to come in on your screen at specified times, (hours/minutes) and even specific days. Then using HyperSnap’s batch job, capture the area that you’re needing and you then can do with whatever.

Schedlite doesn’t pop-up when it is processing a batch job as it stays in the background.

Schedule Lite’s Link:
http://www.flatheadtech.com/fsllt300.html

Thanks Lar. Sounds like that could work, I’ll try it at the weekend. I was hoping there was some way to batch grab the html but I didn’t find it yet.

Same here. Thanks for the tip and link :slight_smile:

I was grabbing it entirely manually.

John

i will get wd’s 5 day forecast image narrowed up a bit
no caves around here!

you can even probably make a batch call within Schdlite's ('Schedule Lite' is a batch scheduling program that can run multiple jobs at scheduled times) program that can run a batch job calling for the web page to come in on your screen at specified times, (hours/minutes) and even specific days. Then using HyperSnap's batch job, capture the area that you're needing and you then can do with whatever.
I didn't manage it with Schedule Lite but a trial version of Macro Scheduler 7.2 does the job, scheduled capture and FTP.

Macro Scheduler http://www.mjtnet.com/ seems to have a lot possibilities, probably worth the $60 registration fee.

Here’s my script (surely not perfect) if anyone wants to do something similar. Disclaimer, hijack copyrighted content at your own risk!

// C:\Program Files\MJT Net Ltd\Macro Scheduler\test1.scp
// Run MS Explorer and wait for it to be active
Let>RP_WINDOWMODE=3
Change Directory>C:\Program Files\Internet Explorer
Run Program>C:\Program Files\Internet Explorer\iexplore.exe
WaitWindowOpen>Microsoft Internet Explorer
Wait>25
SetFocus>Explorer*
//Capture Image
Run Program>C:\Program Files\HyperSnap-DX 5\HprSnap5.exe -snap:x2:y225:w671:h192 -save:jpg c:\wdisplay\aa1.jpg
Wait>10
//Close Explorer
SetFocus>Explorer*
Press ALT
Press F4
Release ALT
//FTP File
Let>FTP_PASSIVE=1
FTPPutFile>mysite.com,mylogin,mypassword,21,c:\wdisplay\aa1.jpg,/www/wxm/aa1.jpg,I

the WD icon for cloudy night, with the cotton wool clouds and orange moon, does not look good i think
i will instead doctor up one of the other icons to look like night time

I’m going to give that program a try… Thanks for the posting… :slight_smile: