Author Topic: GRLevel3 Animation via HAniS  (Read 19709 times)

0 Members and 1 Guest are viewing this topic.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
GRLevel3 Animation via HAniS
« on: July 30, 2015, 03:53:05 PM »
Thanks to the diligent work by Tom Whittaker I was able to find his HAniS HTML5 Animation package.  Using his HAniS.js and excellent examples and instructions I was able to modify my Three-In-One FlAniS GRLevel3 Flash Animation to create a HAniS HTML5 Animation package.

The 'wxgr3hanis.txt' Readme file:

This package displays GRLevel3 images using HTML5 animations via HAniS by Tom Whittaker.  This HTML5 animation package does everything necessary to animate the GRLevel3 images.  This Version 2, dated 20150815, adds a Standalone option as well as a variable pause, an image display rate, and a setting to display a variable number of images. The Standalone option, '$standAlone = false;         // false if we run in the template environment', is the first active line following the introductory comments.


The package now includes 'wxgr3hanis.php' which is the main template file,
   'inc-gr3hanis.php' which contains the display logic and calls
   'wxgr3hanis-iframe.php' in an iframe,
   this file 'wxgr3hanis.txt'
   and /HAniS/hanis_min.js.
   
The 'gr3radar-hanis-select.php' file has been integrated into 'inc-gr3hanis.php' and may be removed from your site.

The updated Settings to possibly customize in wxgr3hanis.php Version 2 now include:
/************************* Settings *****************************/
$radar = 'br1'; // Default radar type is set here
$radarLoc = 'koax'; // IMPORTAMT!!! Default radar location is set here
$useRadarLoc = true; // Does your site include the radar location in the file name? true or false
$imageDir = 'grlevel3'; // Location of GRLevel3 images on server
$imageWidth = 620; // Width of radar images
$iframeWidth = 637; // Default IFrame Width -- adjust as needed
$iframeHeight = 695; // Default IFrame Height -- adjust as needed
$autoRefresh = true; // Use Autorefresh? true or false
$autoRefreshTime = 8; // Number of minutes between autorefreshes.  IMPORTANT: use 2, 3, 4, 5, 6, 8, 10, 15, 20, or 30 ONLY!!!
$autoRefreshDefaultOff = true; // Begin with Autorefresh Off? true or false
$bgndColor = 'silver'; // Set HAniS Background Color Here
$btnColor = 'darkslategray'; // Set Button Color here
$btnTextColor = 'white'; // Set Button Text Color here
############################ New in Version 2 ##########################
$pauseSeconds = 2; // Pause on last image, in seconds
$animRate = 20; // Frame Rate of animation: 5 is glacial, 10 is slow, 15 is leisurely, 20 is good, and 50 is fast - set with integer
$numbImages = 10; // Number of images to display - between 3 and the number of images you are uploading
/*********************** End Settings ***************************/

Your GRLevel3 image size may differ from mine, 620px by 620px.  You should enter your image width in the $imageWidth Setting above.  Subsequent adjustments of $iframeWidth and $iframeHeight may then be needed.

If you haven't included the radar location in your filenames, set $useRadarLoc = false.

Modification of 'inc-gr3hanis.php' will probably be needed to comment out (<!--...-->) those image sequences that aren't available on your site.

To install the script after customizing 'wxgr3hanis.php':
   Copy the files in the /images folder to your site's /images folder, and
   Copy the three php scripts to your site's root folder.
   Copy the /HAniS folder to your site's root folder.

Also download the explanatory PDF in the second post of the thread to place in the /images folder as well.


Original Version 1 July 30, 2015 by SE Lincoln Weather

ChangeLog:

-------------------
Version 20150731:
a) Changed image naming by using getUniqueImageURL() in 'wxgr3hanis-iframe.php' to prevent browser caching.
b) Neither the auto-refresh or on-demand refresh buttons worked, so they have been removed.  A kludge refresh method is instead offered until such time as the HAniS.js methods have been perfected.
c) There was a long-standing error in the 'gr3radar-hanis-select.php' regarding Total Storm Rainfall, and it has been corrected there as well as in 'inc-gr3hanis.php'.
d) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

Version 20150801
a) Discovered the setting in HAniS which disables browser caching and thereby activates 'Refresh' and 'AutoRefresh'.
   i)    Restored 'Refresh' and 'AutoRefresh' buttons to display
   ii)   Added AutoRefresh switch, '$autoRefresh', to Settings
   iii)   Added AutoRefresh interval, called '$autoRefreshTime', to Settings
b) Added $imageWidth parameter to Settings to simplify customization
c) Added $useRadarLoc parameter to Settings in case your file names don't include the radar site
d) Removed Kludge Refresh method
e) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

Version 20150801b
a) Added automatic $iframeHeight adjustment when not using Autorefresh
b) Added $autoRefreshDefaultOff parameter to Settings to enable a default Autorefresh Off
c) Added $bgndColor parameter to Settings to enable easier HAniS background color changes
d) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

Version 20150802
a) Modified link in 'inc-wxgrehanis.php' which displays 'wxusalerts.php' to display http://www.weather.gov/'if 'wxusalerts.php' isn't present.
b) Added 'Select Auto Refresh Interval' to script.  If Auto Refresh is Disabled by default, it will be automatically enabled with the new Refresh Interval.  At times of intense nearby storm activity the NWS Radar can sometimes update at two minute intervals.  On the other hand, when there is little nearby activity a 30 minute interval could suffice.  Your default Auto Refresh Interval will display initially, even when Auto Refresh is Disabled by default.
c) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

Version 20150803
a) Fixed bug where Auto Refresh Interval selector displayed when '$autoRefresh' was off.
b) Modified file from Version 20150802:
   i)   gr3radar-hanis-select.php
c) Modified files from 20150801 Versions:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

Version 20150804
a) Changed Auto Refresh Interval selector appearance.
b) Added Settings for Button Color and Button Text Color in 'wxgr3hanis.php' Settings.  There is no setting in HAniS to change the 'toggle' square colors, blue and orange.  HTML Color Names are listed at http://www.w3schools.com/html/html_colornames.asp and when passed to an iframe cannot be specified using hex numbers, only Color Names.
c) Modified files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

Version 20150810
a) Folded gr3radar-hanis-select.php into inc-gr3hanis.php, eliminating the first file.
b) This also eliminated the need to manually modify 'selected="selected"' statements.
c) A user was getting duplicate displays when changing radar or interval.
d) Modified files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php eliminated -- delete from server
   iii)   inc-gr3hanis.php
-------------------

Version 2 20150815
a) Added '$pauseSeconds' which indicates the number of seconds to pause after the last image.
b) Added '$animRate' to vary the animation rate. 5 is glacial, 10 is slow, 15 is leisurely, 20 is good, and 50 is fast - set with integer.
c) Added '$numbImages' to vary the number of images to display - set between 3 and the number of images you are uploading.
d) Added '$btnColor' and '$btnTextColor' control of the Selectors so they match the HAniS buttons.
e) Added Standalone capability.
f) Modified files:
   i)   wxgr3hanis.php
   ii)   inc-gr3hanis.php
   iii)   wxgr3hanis-iframe.php
   iv)   wxgr3hanis.txt (this file)
-------------------

Some slight changes for improved alignment and viewing.

Version 2a 20150823:
a) Found 'margin' of 8px around 'wxgr3hanis-iframe.php' that was throwing the image and <iframe> out of alignment.  Removed margin and '$iframeWidth' now equals '$imageWidth' and shouldn't need adjustment.
b) Added Stand Alone version, 'wxgr3hanis-SA.php', for optional use on tablets - no template may yield better viewing.
c) Cleaned up some other centering issues, especially in the Stand Alone version.
d) Modified files:
   i)   wxgr3hanis.php - update after preserving your customized Settings
   ii)   inc-wxgr3hanis.php - replace existing file
   iii)   wxgr3hanis-iframe.php -replace existing file
   iv)   wxgr3hanis.txt (this file)
e) New file: 'wxgr3hanis-SA.php' for optional use

-------------------
   
Version 2b 20150825
a) Tom Whittaker has added the ability to specify the color for toggle squares to HAniS 2.6 released today.  Your '$btnColor' (button color) will now also modify the toggle button color.
b) For compatibility with possible future enhancements, a forward slash, '/', MUST NOW be used with this version when specifying the GRLevel3 image directory.
c) HAniS Version 2.6 is included in the HAniS directory.
d) Cleaned up a residual CSS validation issue.
e) modified files:
   i)   wxgr3hanis.php & wxgr3hanis-SA.php - update after preserving your customized Settings and adding a '/' to your images directory specication
   ii)   wxgr3hanis-iframe.php - replace existing file
   iii)   /HAniS/hanis_min.js - replace existing file
   iv)   wxgr3hanis.txt (this file)


Version 2 20150815, Version 2a 20150823, and Version 2b 20150825 are attached.


« Last Edit: August 25, 2015, 02:39:55 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #1 on: July 30, 2015, 03:53:32 PM »
Here's the explanatory PDF required by 'wxgr3hanis.php'.
« Last Edit: August 06, 2015, 01:04:27 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #2 on: July 30, 2015, 04:45:23 PM »
Thats great Jerry.

I had someone ask me for a different radar package on my site because of the issues with flash. Got a weekend project now.
Tony




Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #3 on: July 31, 2015, 10:37:01 AM »
Are you on GoDaddy because that's a recurring issue with images Jerry.
Tony




Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #4 on: July 31, 2015, 11:17:38 AM »
It looks like it's a browser cache issue.  On this desktop I use CCleaner to wipe my browser cache each time I close the browser, and I've experienced no such problem with stale images.  My fix didn't seem to faze Chrome on my Nexus 9 because it still served stale images until I refreshed the page. :-(
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #5 on: July 31, 2015, 12:31:01 PM »
Tried this and I'm getting a blank iFrame so far. http://www.cnyweather.com/wxgr3hanis.php

My images are in the GR32 directory

$radar = 'br1'; // Default radar type can be set here
$radarLoc = 'ktyx'; // Default radar location can be set here
$imageDir = 'GR32'; // Location of GRLevel3 images on server
$iframeWidth = 637; // Default IFrame Width -- adjust as needed
$iframeHeight = 685; // Default IFrame Height -- adjust as needed
Tony




Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #6 on: July 31, 2015, 12:53:33 PM »
The blank frame occurs when your iframe dimensions are too small to accommodate the image.  Set scrolling="auto" in 'inc-wxgr3hanis.php' line 53 and then increase the iframe dimensions in 'wxgr3hanis.php' until the scrollbars disappear.  This will give you a starting place to then decrease the iframe dimensions by the width or height of the now-absent scroll bars if you so desire.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #7 on: July 31, 2015, 01:02:16 PM »
I changed that and made the iFrame 800 x 800 for the heck of it. My images are 650 x 650 and it's blank still.
Tony




Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #8 on: July 31, 2015, 01:32:14 PM »
Try Setting   '<body style="width:620px" onload="HAniS.setup(' of 'wxgr3hanis-iframe.php' to 650.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #9 on: July 31, 2015, 02:00:34 PM »
I have posted a revised version, dated today, in the first post above.

ChangeLog:

-------------------
Version 20150731:
a) Changed image naming by using getUniqueImageURL() in 'wxgr3hanis-iframe.php' to prevent browser caching.
b) Neither the auto-refresh or on-demand refresh buttons worked, so they have been removed.  A kludge refresh method is instead offered until such time as the HAniS.js methods have been perfected.
c) There was a long-standing error in the 'gr3radar-hanis-select.php' regarding Total Storm Rainfall, and it has been corrected there as well as in 'inc-gr3hanis.php'.
d) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

I tried using jQuery '$("select").bind('click',function () {' in wxgr3radar-hanis-select.php, but each click on the dropdown caused a refresh of the images which was disconcerting to say the least. :-)
« Last Edit: July 31, 2015, 02:14:07 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #10 on: July 31, 2015, 02:16:11 PM »
No go. i'll play with it some more. I have a feeling it's a path thing to the images.
Tony




Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #11 on: July 31, 2015, 02:24:06 PM »
This is your iframed output:
Code: [Select]
<body style="width:650px" onload="HAniS.setup(
'filenames = ./GR32/ktyx_br1_9.jpg, ./GR32/ktyx_br1_8.jpg, ./GR32/ktyx_br1_7.jpg, ./GR32/ktyx_br1_6.jpg, ./GR32/ktyx_br1_5.jpg, ./GR32/ktyx_br1_4.jpg, ./GR32/ktyx_br1_3.jpg, ./GR32/ktyx_br1_2.jpg, ./GR32/ktyx_br1_1.jpg, ./GR32/ktyx_br1_0.jpg \n\
controls = startstop, speed, step, looprock, zoom \n\
controls_style = display:flex;flex-flow:row; \n\
buttons_style = flex:auto;margin:2px; \n\
bottom_controls = toggle \n\
bottom_controls_tooltip = Toggle frames on/off \n\
bottom_controls_style = background-color:gray;' ,
'handiv')">

  <div id="handiv" style="width:650px;background-color:#808080;" align="center" tabindex="0">
  <div align="center" style="display:flex;flex-flow:row;"><button style="flex:auto;margin:2px;undefined">Start</button><button style="flex:auto;margin:2px;undefined">-</button><button style="flex:auto;margin:2px;undefined">+</button><button style="flex:auto;margin:2px;undefined">&lt;</button><button style="flex:auto;margin:2px;undefined">&gt;</button><button style="flex:auto;margin:2px;undefined">Rock</button><button style="flex:auto;margin:2px;undefined">Zoom</button></div><div style="position:relative;border:0px;margin:0px;padding:0px;-webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; -webkit-tap-heightlight-color:transparent;"><canvas style="position:absolute;top:0;left:0;z-index:1;"></canvas><canvas style="position:absolute;top:0;left:0;z-index:2;"></canvas></div><div align="center" style="background-color:gray;"></div><div style="position: relative; border: 0px; margin: 0px; padding: 0px; -webkit-user-select: none; background-color: gray;" align="center" title="Toggle frames on/off"><canvas height="20"></canvas></div></div>
</body>
Selecting '/GR32/ktyx_br1_8.jpg' and placing it in the address bar of your site which yields 'http://www.cnyweather.com/GR32/ktyx_br1_8.jpg' gives me a message that the image is no longer available.  If indeed that's the correct directory the image should display with that url.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #12 on: July 31, 2015, 02:46:52 PM »
My GR3 radar images dont have the radar location in the url Jerry.


http://www.cnyweather.com/GR32/br1_8.jpg
Tony




Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #13 on: July 31, 2015, 03:02:15 PM »
My GR3 radar images dont have the radar location in the url Jerry.


http://www.cnyweather.com/GR32/br1_8.jpg
So modify line 46 in 'wxgr3hanis-iframe.php' to remove the location.  Change
Code: [Select]
$image = './'.$imageDir.'/'.$radarLoc.'_'.$radar.'_'.$i.'.jpg';
to
Code: [Select]
$image = [code]'./'.$imageDir.'/'.$radar.'_'.$i.'.jpg';
[/code]
Oops.  :oops: I just remembered that you're using Version 1.  Find the string
Code: [Select]
'./'.$imageDir.'/'.$radarLoc.'_'.$radar.'_'.$i.'.jpg'and change it to
Code: [Select]
'./'.$imageDir.'/'.$radar.'_'.$i.'.jpg'
« Last Edit: July 31, 2015, 03:11:25 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #14 on: July 31, 2015, 03:13:10 PM »
That fixed it Jerry. Now time to fix up the look.  TY!
Tony




Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #15 on: July 31, 2015, 03:20:58 PM »
That fixed it Jerry. Now time to fix up the look.  TY!
I see you're now off and running.  =D&gt; Now to back down your iframe width and height to more reasonable numbers.  Your iframe is centered, but it's kinda big. :-)

I would urge you to move to today's version, preserving your changes of course, so you and your users don't encounter stale images.  The 'STR' total storm rain bug bites you, i.e. there's no accompanying text and the dropdown's 'SHR' is incorrect.

And there's a second width to change at around line 37 in 'wxgr3hanis-iframe.php':
Code: [Select]
  <div id="handiv" style="width:620px;background-color:#808080;">
--sorry about that.
« Last Edit: July 31, 2015, 03:51:23 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: GRLevel3 Animation via HAniS
« Reply #16 on: July 31, 2015, 04:09:21 PM »
Thanks!

I'll have to look when I get home and see exactly what my image sizes are too.
Tony




Offline Farmtalk

  • Fitzweather
  • Forecaster
  • *****
  • Posts: 4745
    • WV Waterfalls
Re: GRLevel3 Animation via HAniS
« Reply #17 on: July 31, 2015, 06:03:17 PM »
Absolutely awesome script! Thank you!  8-)

The only question I have is, my template is a bit on the smaller side, and for the HCA pics, I am having troubles making it fit. Any suggestions?
Joe Fitzwater
Chief Meteorologist for WVNS-TV 59 in Beckley, WV

Work Page on Facebook -> www.facebook.com/meteojoe
Work Page on Twitter -> https://twitter.com/meteojoe
Waterfalls -> www.wvfalls.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #18 on: July 31, 2015, 06:23:35 PM »
Absolutely awesome script! Thank you!  8-)

The only question I have is, my template is a bit on the smaller side, and for the HCA pics, I am having troubles making it fit. Any suggestions?
Your <div id="showRadar"> is 628px wide rather than 600px wide.  Hunt down that value (628) and change it to 600 to see if that fixes your alignment problem.  Your images are only 600px wide.
« Last Edit: July 31, 2015, 06:25:37 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline tnwxman

  • Forecaster
  • *****
  • Posts: 423
  • KK4QXH
    • Weather for Lebanon, TN 37087
Re: GRLevel3 Animation via HAniS
« Reply #19 on: July 31, 2015, 06:38:04 PM »
Gerry,

Thanks for the great script. Working on it now. In the Nashville area we also have the Terminal Doppler Weather Radar TBNA. Can I incorporate all of the kohx and tbna selections into one drop down menu or do you recommend a second page. If so how would I call that one without getting kohx.

Thanks.

Bob
Bob
KK4QXH

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #20 on: July 31, 2015, 07:12:34 PM »
Gerry,

Thanks for the great script. Working on it now. In the Nashville area we also have the Terminal Doppler Weather Radar TBNA. Can I incorporate all of the kohx and tbna selections into one drop down menu or do you recommend a second page. If so how would I call that one without getting kohx.

Thanks.

Bob
If these products follow the same naming conventions it would be possible to incorporate all of your radar products into the HAniS package, but it would require patience and work on your part.  Steps would be:
1)  Using the existing radar types in 'gr3radar-hanis-select.php' as models you can create an additional
Code: [Select]
    <optgroup label="Terminal Doppler Radar">
...
Code: [Select]
    </optgroup> between which you add your new Terminal Doppler Weather Radar TBNA products.

2)  Add the products to the 'inc-gr3hanis.php' by copying the last 'else if'
Code: [Select]
    } elseif ($radar == 'dsd') {
      $radarText = 'Digital Storm Total Rainfall';
    }
and pasting it however many times you need to accommodate your additional radar types.

3)  Modify the entries one by one so each contains the appropriate $radar and $radarText.

4)  There might be some helpful explanatory graphics you could conditionally display beneath the radar animation as I've done with some of the Dual-Pole products
Code: [Select]
<?php if (($radar=='hca1')||($radar=='hhc')) { ?>
...
Code: [Select]
<?php } else if ($radar=='cc1') { ?>
etc.

5)  Test your work.


If these products use different naming conventions, then a separate page might be necessary.

Good Luck, and let us see how it turns out.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #21 on: August 01, 2015, 10:06:50 AM »
An updated easier to configure version is attached to the first post in this thread.

ChangeLog:
-------------------
Version 20150801
a) Discovered the setting in HAniS which disables browser caching and thereby activates 'Refresh' and 'AutoRefresh'.
   i)    Restored 'Refresh' and 'AutoRefresh' buttons to display
   ii)   Added AutoRefresh switch, $autoRefresh, to Settings
   iii)   Added AutoRefresh interval, $autoRefreshTime, to Settings
b) Added $imageWidth parameter to Settings to simplify customization
c) Added $useRadarLoc parameter to Settings in case your file names don't include the radar site
d) Removed Kludge Refresh method
e) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

I would urge anyone who has downloaded a prior version to replace it with this version.  You can see it here.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #22 on: August 01, 2015, 11:06:56 AM »
Jerry, I've got something messed up.  ](*,) The radar  image is not showing. Albany, NY, KENX, has been down for 3 hours. Should the old image still show?

I had it running until I made your last file changes. 

http://indiantrailweather.com/wxgr3hanis.php

Jeff
« Last Edit: August 01, 2015, 11:11:44 AM by Breezy »
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #23 on: August 01, 2015, 11:19:04 AM »
Carefully review your Settings in 'wxgr3hanis.php', Breezy.  You're calling for the default location 'koax'.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #24 on: August 01, 2015, 11:49:24 AM »
I got it !!!  :grin: Great script Jerry  \:D/  Much thanks for your help !!!  =D&gt;
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D