WXforum.net
May 23, 2013, 09:08:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6619  •  Posts: 178739  •  Topics: 18133
Please welcome moranbahweather, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: different zoom levels with GRLevel3  (Read 7891 times)
0 Members and 1 Guest are viewing this topic.
anchorageweather
Forecaster
*****
Offline Offline

Posts: 445



WWW
« on: January 15, 2007, 02:00:59 AM »

I tried GRLevel3 this summer and was very pleased.  I am again considering it (2nd time is a charm I guess).  Anyway, I have a question:

When I was uploading the radar images to my website; I only uploaded a copy of what was currently being displayed.  Is is possible to have three or four zoom levels of the current radar image automatically uploaded at the same time.

I would like to be able to let the viewer pick how wide (zoomed) the radar image would be?  Can this be done with GRLevel3?
Logged

South of the Tracks, Anchorage, KY
WeatherHost
Forecaster
*****
Offline Offline

Posts: 1655



« Reply #1 on: January 15, 2007, 02:07:12 AM »

I don't publish GR data, but I'm not aware of any way to publish any zoomed images.  I think it will only send the default image.
Logged
carterlake
Senior Contributor
****
Offline Offline

Posts: 243



WWW
« Reply #2 on: January 15, 2007, 07:56:36 AM »

Quote from: "anchorageweather"

I would like to be able to let the viewer pick how wide (zoomed) the radar image would be?  Can this be done with GRLevel3?


There is no program that I am aware of which will allow you to do that. What you would need is the raw data on your server and a viewing program of some sort which the user can interact with.
Logged


Davis VP2 6153; Weather Display (LIVE w/ Ajax); Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; live NOAA Radio
NoQuitters
Administrator
Forecaster
*****
Offline Offline

Posts: 362

W0DLJ - 145.470


WWW
« Reply #3 on: January 15, 2007, 07:57:40 AM »

It will publish the images at whatever zoom level you have GR3 at on your pc, so in short the answer is no unless you run two copies of GR3 at different zoom levels and have them both publishing. Then again I've never tried to publish with two at the same time so not sure it would work.
Logged

Anole
Administrator
Forecaster
*****
Offline Offline

Posts: 576



WWW
« Reply #4 on: January 15, 2007, 08:27:35 AM »

I'm working on this now but I don't have any of it up on the site yet. I still have a few things to work out.

You can do zoomed images. If you zoom in manually, and start the web site uploads it will upload your zoomed image. Since you can have multiple instances of GRLevel3 open you can open several instances, zoom to the different levels you want on each and upload your zoomed images for each.

There are some problems with this though and they are not solvable using just GRLevel3 alone as far as I can tell. The four main problems are:

1) Getting the instances of GRLevel3 opened at the zoom level you want. GRLevel3 appears to always open at the base zoom level. I'm new to the SW so there may be something I'm missing that can make it remember the zoom but I don't think there is. It remembers most everything else though when you open it except...

2) You can't get it to start your web publishing automatically on start up. It remembers all the login data but you have to manually start the uploads.

3) The image file names are all going to be the same so if you create different zoom levels and upload the files to the same place you still only end up with one zoom level. The different zoom levels have to uploaded to different locations (ie subdirectories).

4) If you have multiple instances FTP'ing different zoom levels to your server, you may bump into the connection limit set by your host or server, especially if you are already using multiple programs to upload other data.

Four is something you'd have to work out on your own based on the restrictions of the number of simultaneous FTP connections you can have to your server and the other options that might be available to you.

One, two and three can be solved using a nice little program called AutoIt. Basically, AutoIt lets you create a script that can include any keystrokes, mouse movements etc. that you would otherwise have to manually input to get whatever program you want to manipulate setup/started the way you want it. AutoIt can do a lot more than that but for what I need for GRLevel3 that's the best way to explain it. Below is the script that I'm working on to open GRLevel3, zoom in and center the image where I want it, and start the web publishing:

Code:
; Start GRLevel 3
; Note the value for WinWaitActive must match the text in the title
; bar of the GRLevel 3 window
Run("C:\Program Files\GRLevelX\GRLevel3\grlevel3.exe")
WinWaitActive("KTBW Tampa, FL - GRLevel3")
; Open the View menu
Send("!V")
; Zoom in one level
Send("{ENTER}")
; Center the image where I want it
MouseClickDrag("left", 500, 600, 475, 150)
; Open the file menu
Send("!F")
; Go down to the Web Publishing selection
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
; Start the web publishing
Send("{ENTER}")
Send("{ENTER}")
Send("{ENTER}")


As you'll note the script isn't currently changing the upload location so this on it's own isn't going to solve problem three above. I'm working on that part now. I'm in the process of learning AutoIt and the syntax etc. so I have to figure that part out. From what I can tell so far this is well within the capabilities of AutoIt and shouldn't be a problem.
Logged

anchorageweather
Forecaster
*****
Offline Offline

Posts: 445



WWW
« Reply #5 on: January 15, 2007, 08:46:23 AM »

Quote from: "Anole"
As you'll note the script isn't currently changing the upload location so this on it's own isn't going to solve problem three above. I'm working on that part now. I'm in the process of learning AutoIt and the syntax etc. so I have to figure that part out. From what I can tell so far this is well within the capabilities of AutoIt and shouldn't be a problem.


Whoa... you've done a ton of work on this.  Clearly GRLevel3 was not intended to do much in the way of web publishing.  Its too bad the developers couldn't add some publishing functionally to this software.  Its great otherwise.

Well, if it comes to pass, that I need to start using GRLevel3, I guess I will just have one zoom level - that is unless the author of the software makes some upgrades, or  Anole lets us pick his brain regarding his work arounds Wink
Logged

South of the Tracks, Anchorage, KY
Anole
Administrator
Forecaster
*****
Offline Offline

Posts: 576



WWW
« Reply #6 on: January 15, 2007, 09:49:50 AM »

I believe I have the AutoIt stuff worked out. I've created 3 AutoIt scripts that open at various zoom levels and save the files to different subdirectories. I'm uploading the files to a local server so I can do some processing on them (goal is to create an animated GIFs and rename the files so they can be in the same directory) before putting them up on the hosted server. In all of these examples I'm using KTBW and I'm centering the image on my location with the exception of the base level. The centering needs a bit of tweaking and I'll probably add some more stuff to tweak the city names and roads but you get the idea. Note the images are static and not being updated at the moment but they show what the scripts are doing. They are also being saved as 500X500px in size.

Base level:

Code:
; Start GRLevel 3
; Note the value for WinWaitActive must match the text in the title
; bar of the GRLevel 3 window
Run("C:\Program Files\GRLevelX\GRLevel3\grlevel3.exe")
WinWaitActive("KTBW Tampa, FL - GRLevel3")
; Open the file menu
Send("!F")
; Go down to the Web Publishing selection
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
; Start the web publishing
Send("{ENTER}")
Send("{ENTER}")
Send("{TAB}")
Send ("weather/radar/base")
Send("{ENTER}")


1 Zoom Step:

Code:
; Start GRLevel 3
; Note the value for WinWaitActive must match the text in the title
; bar of the GRLevel 3 window
Run("C:\Program Files\GRLevelX\GRLevel3\grlevel3.exe")
WinWaitActive("KTBW Tampa, FL - GRLevel3")
; Open the View menu
; Zoom in two levels
Send("!V")
Send("{ENTER}")
; Center the image where I want it
MouseClickDrag("left", 500, 600, 450, 100)
; Open the file menu
Send("!F")
; Go down to the Web Publishing selection
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
; Start the web publishing
Send("{ENTER}")
Send("{ENTER}")
Send("{TAB}")
Send ("weather/radar/zoom1")
Send("{ENTER}")


2 zoom steps:

Code:
; Start GRLevel 3
; Note the value for WinWaitActive must match the text in the title
; bar of the GRLevel 3 window
Run("C:\Program Files\GRLevelX\GRLevel3\grlevel3.exe")
WinWaitActive("KTBW Tampa, FL - GRLevel3")
; Open the View menu
; Zoom in two levels
Send("!V")
Send("{ENTER}")
Send("!V")
Send("{ENTER}")
; Center the image where I want it
MouseClickDrag("left", 550, 900, 400, 0)
; Open the file menu
Send("!F")
; Go down to the Web Publishing selection
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
; Start the web publishing
Send("{ENTER}")
Send("{ENTER}")
Send("{TAB}")
Send ("weather/radar/zoom2")
Send("{ENTER}")
Logged

Anole
Administrator
Forecaster
*****
Offline Offline

Posts: 576



WWW
« Reply #7 on: January 15, 2007, 12:28:15 PM »

Almost done with this. Ran into a slight problem executing the script on startup (both in the startup folder and using Startwatch). It was getting confused as to which window to manipulate since they were all titled the same. Needs a bit more testing but I should have a single script which does will start all of the zoom levels in the example above.
Logged

carterlake
Senior Contributor
****
Offline Offline

Posts: 243



WWW
« Reply #8 on: January 15, 2007, 08:13:37 PM »

Quote from: "Anole"
2) You can't get it to start your web publishing automatically on start up. It remembers all the login data but you have to manually start the uploads.


I actually had someone in the WD forums make and send me a macro program which I load into my START folder... works great on the server to restart downloading when the server takes a dump.
Logged


Davis VP2 6153; Weather Display (LIVE w/ Ajax); Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; live NOAA Radio
anchorageweather
Forecaster
*****
Offline Offline

Posts: 445



WWW
« Reply #9 on: January 15, 2007, 08:28:20 PM »

Quote from: "carterlake"
Quote from: "Anole"
2) You can't get it to start your web publishing automatically on start up. It remembers all the login data but you have to manually start the uploads.


I actually had someone in the WD forums make and send me a macro program which I load into my START folder... works great on the server to restart downloading when the server takes a dump.


 Confused ...can this program be had?!?
Logged

South of the Tracks, Anchorage, KY
carterlake
Senior Contributor
****
Offline Offline

Posts: 243



WWW
« Reply #10 on: January 15, 2007, 08:40:07 PM »

Quote from: "anchorageweather"
Quote from: "carterlake"
Quote from: "Anole"
2) You can't get it to start your web publishing automatically on start up. It remembers all the login data but you have to manually start the uploads.


I actually had someone in the WD forums make and send me a macro program which I load into my START folder... works great on the server to restart downloading when the server takes a dump.


 Confused ...can this program be had?!?


It was er... hum... Niko

http://www.weather-watch.com/smf/index.php/topic,19705.0.html
Logged


Davis VP2 6153; Weather Display (LIVE w/ Ajax); Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; live NOAA Radio
Anole
Administrator
Forecaster
*****
Offline Offline

Posts: 576



WWW
« Reply #11 on: January 15, 2007, 09:28:34 PM »

I think I have all the issues with the AutoIt startup script worked out. I combined all three zoom levels into one script that you can download here:

http://weather.anolecomputer.com/GRL3all.zip

Everything is pretty self-explanatory but the one gotcha is that the window title needs to be exact. In my case it's "KTBW Tampa, FL - GRLevel3" so you'd need to change that to match yours before attempting to run the script. I'm starting it with StartWatch, but it could just as easily be added to the startup folder in windows. Now I just have to work out how I want to get the images to the site and I'll be up and running with GRLevel3 as my new radar source.

BTW, I don't know if I mentioned it before but AutoIt is free and can be downloaded here:

http://www.autoitscript.com/
Logged

anchorageweather
Forecaster
*****
Offline Offline

Posts: 445



WWW
« Reply #12 on: January 15, 2007, 09:33:01 PM »

Quote from: "carterlake"
Quote from: "anchorageweather"
Quote from: "carterlake"
Quote from: "Anole"
2) You can't get it to start your web publishing automatically on start up. It remembers all the login data but you have to manually start the uploads.


I actually had someone in the WD forums make and send me a macro program which I load into my START folder... works great on the server to restart downloading when the server takes a dump.


 Confused ...can this program be had?!?


It was er... hum... Niko

http://www.weather-watch.com/smf/index.php/topic,19705.0.html


Thanks for the lead Exclamation
Logged

South of the Tracks, Anchorage, KY
Anole
Administrator
Forecaster
*****
Offline Offline

Posts: 576



WWW
« Reply #13 on: February 02, 2007, 01:16:09 PM »

Quote from: "Anole"
I think I have all the issues with the AutoIt startup script worked out. I combined all three zoom levels into one script that you can download here:

http://weather.anolecomputer.com/GRL3all.zip



Turns out it wasn't quite worked out but I think it's solid now. Had to add some sleep time between commands and I had to make sure all the different windows had absolutely unique titles. If interested you can find an updated copy at the above link.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.188 seconds with 18 queries.
anything