|
Farmtalk
|
 |
« on: November 02, 2011, 05:10:08 PM » |
|
Does anyone know of a good tutorial or could show me how to do this? Thanks,  --Farmtalk--
|
|
|
|
|
Logged
|
|
|
|
|
mackbig
|
 |
« Reply #1 on: November 03, 2011, 07:24:06 AM » |
|
|
|
|
|
|
Logged
|
 Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display. Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
|
|
|
|
Farmtalk
|
 |
« Reply #2 on: November 03, 2011, 07:32:02 AM » |
|
Thanks! I will post back if I have any trouble (I have surgery in a couple of hours, so I wont be able to work on it) Thanks again!  --Farmtalk--
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #3 on: November 03, 2011, 01:01:16 PM » |
|
Can you help me configure the code?
|
|
|
|
|
Logged
|
|
|
|
|
mackbig
|
 |
« Reply #4 on: November 03, 2011, 01:20:50 PM » |
|
Not much to help with beyond what the instructions already say...
Download the code, Edit as shown, use notepad.exe Upload to your site
Put your ftp creds into GR3. Click OK.
Wait 10 minutes, then check your site. I would actually just start uploading your images now, then they will be there, and you can rule out that as an issue, should you run into trouble with the php.
Andrew
|
|
|
|
|
Logged
|
 Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display. Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
|
|
|
|
Farmtalk
|
 |
« Reply #5 on: November 04, 2011, 03:56:45 PM » |
|
Which part of my site do i put it in, the coding part? and does it need to be php or html?
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #6 on: November 04, 2011, 04:27:53 PM » |
|
Im just confused on how to copy the code; which parts of the code do i copy, the instructions too? I read what it said but it is confusing me 
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #7 on: November 04, 2011, 07:31:53 PM » |
|
Hi Joesph,
A couple of questions for you. Do you have a dedicated computer for running GR3 all of the time? You are using KRLX, correct? I'll be happy to assist if I'm able to.
Also, are you able to run PHP on your site?
John
|
|
|
|
« Last Edit: November 04, 2011, 07:33:38 PM by sacreyweather »
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #8 on: November 04, 2011, 07:34:06 PM » |
|
Do you mean keeping my com on 24/7? Only on the weekends, I dont keep my com on during school...and yes im using krlx
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #9 on: November 04, 2011, 07:44:08 PM » |
|
Okay, no problem. Have you have downloaded the file GR3-radar-inc.php from Ken's (Saratoga) site? If so, have you changed the settings in there yet?
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #10 on: November 04, 2011, 07:45:58 PM » |
|
I dont understand the instructions, but yes I downloaded it 
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #11 on: November 04, 2011, 07:56:14 PM » |
|
Okay. The settings are pretty simple. I'll walk you through it.
# GRLevel3 Radar image settings $GR3radar = 'kmux'; // set to lower-case full name of NEXRAD radar site (ICAO) Change the highlighted to "rlx" $GR3DIR = '/GR3'; // set to directory for GRLevel3 images (or '/' for root directory) You can create this directory. $GR3type = 'cr'; // default radar image type 'cr','br','cr248','br1' etc. This will the first thing you see after loading the webpage. $GR3img = 'jpg'; // GR3 image type 'jpg' or 'png' $GR3cnt = 10; // number of images in series 10=(_0 ... _9 in name of file) $GR3width = 512; // width of GR3 images $GR3height = 512; // height of GR3 images $GR3maxAge = 1200; // image_0 has to be less than 20 minutes old for consideration $GR3notAvailMsg = 'GRLevel3 radar images are not available at this time.'; $GR3notCurrentMsg = 'GRLevel3 radar image is not current - more than %s seconds old.';
The width and height can be changed of you want. I have mine set to width=612 and the height=512.
Hope that makes sense.
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #12 on: November 04, 2011, 08:03:46 PM » |
|
is my directory fitzweather.html? otherwise, how does this look? # GRLevel3 Radar image settings $GR3radar = 'krlx'; // set to lower-case full name of NEXRAD radar site (ICAO) $GR3DIR = '/'; // set to directory for GRLevel3 images (or '/' for root directory $GR3type = 'br'; // default radar image type 'cr','br','cr248','br1' etc. $GR3img = 'jpg'; // GR3 image type 'jpg' or 'png' $GR3cnt = 10; // number of images in series 10=(_0 ... _9 in name of file) $GR3width = 512; // width of GR3 images $GR3height = 512; // height of GR3 images $GR3maxAge = 1200; // image_0 has to be less than 20 minutes old for consideration $GR3notAvailMsg = 'GRLevel3 radar images are not available at this time.'; $GR3notCurrentMsg = 'GRLevel3 radar image is not current - more than %s seconds old.'; Like this? (Im terrible at coding as u can tell  )
|
|
|
|
« Last Edit: November 04, 2011, 08:12:28 PM by farmtalk »
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #13 on: November 04, 2011, 08:06:40 PM » |
|
Ok. To use your what's called your "root" directory, please change where you have fitzweather.html to just the "/".
$GR3DIR = '/'; // set to directory for GRLevel3 images (or '/' for root directory) Should look like this to work properly.
|
|
|
|
« Last Edit: November 04, 2011, 08:09:04 PM by sacreyweather »
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #14 on: November 04, 2011, 08:14:16 PM » |
|
is my directory fitzweather.html? otherwise, how does this look? # GRLevel3 Radar image settings $GR3radar = 'krlx'; // set to lower-case full name of NEXRAD radar site (ICAO) $GR3DIR = '/'; // set to directory for GRLevel3 images (or '/' for root directory $GR3type = 'br'; // default radar image type 'cr','br','cr248','br1' etc. $GR3img = 'jpg'; // GR3 image type 'jpg' or 'png' $GR3cnt = 10; // number of images in series 10=(_0 ... _9 in name of file) $GR3width = 512; // width of GR3 images $GR3height = 512; // height of GR3 images $GR3maxAge = 1200; // image_0 has to be less than 20 minutes old for consideration $GR3notAvailMsg = 'GRLevel3 radar images are not available at this time.'; $GR3notCurrentMsg = 'GRLevel3 radar image is not current - more than %s seconds old.'; Like this? (Im terrible at coding as u can tell  )
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #15 on: November 04, 2011, 08:29:51 PM » |
|
That looks fine, Joseph. Now, please save the file. I'm not all that great at coding myself. Thank goodness for Dreamweaver. Now we need to a new webpage to put this in.
I'm attaching a .zip file that contains a .php file that hopefully will work with your site. Please unzip and upload this file and the GR3-radar-inc.php file to your website directory.
Have you setup the FTP in GR3? If so, please set it to start uploading to your website. It will upload new radar images not long after the radar updates, so it may a few minutes to get some images there.
Once there are images, try out the wxgr3.php file and see if it works.
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #16 on: November 04, 2011, 08:36:39 PM » |
|
On GR3, what should I set as my directory? and when I opened ur file, nothing was there.
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #17 on: November 04, 2011, 08:40:37 PM » |
|
On the GR3 FTP where it says Directory, you should put the "/" only.
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #18 on: November 04, 2011, 08:42:54 PM » |
|
Ok I did that, so the info for GR3 radar is good to go, now what part of the code do i put under your file?
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #19 on: November 04, 2011, 08:44:56 PM » |
|
Everything should be in there. All you should have to do is upload the 2 .php files to your website directory.
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #20 on: November 04, 2011, 08:47:22 PM » |
|
Can you to tell me how to do this?
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #21 on: November 04, 2011, 08:47:45 PM » |
|
I thought what u sent me was only 1 file
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #22 on: November 04, 2011, 08:53:47 PM » |
|
Can you to tell me how to do this?
Ok. Dumb question. How did you get the pages you have onto your site?
|
|
|
|
|
Logged
|
|
|
|
|
sacreyweather
|
 |
« Reply #23 on: November 04, 2011, 08:55:36 PM » |
|
I thought what u sent me was only 1 file
I did send 1 file. I was thinking you had the other. No problem. Here is the other one.
|
|
|
|
|
Logged
|
|
|
|
|
Farmtalk
|
 |
« Reply #24 on: November 04, 2011, 08:59:16 PM » |
|
it says its a read only file so i cant save it
|
|
|
|
|
Logged
|
|
|
|
|