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

ToolTrooper and 1 Guest are viewing this topic.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #25 on: August 01, 2015, 01:21:27 PM »
I've added some new options to version 20150801b in the first post above.

Changelog:
-------------------
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
e) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 237
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #26 on: August 01, 2015, 02:27:40 PM »
Version 20150801b installed ... Geeez take a break  ...
« Last Edit: August 02, 2015, 08:00:14 AM by Breezy »

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #27 on: August 02, 2015, 09:00:05 PM »
Version 20150801b installed ... Geeez take a break  ...
Ok, Ok, Jeff.  :-) I think today's changes/enhancements will probably be the last unless a bug crops up.

The big reason for doing this is that Flash is dead on iOS and Android, and it's dying on PC's, while HAniS Animation runs on any platform.  It runs virtually everywhere.

I've cleaned up one bug in 'gr3hanis-radar-select.php' and also modified it as noted below.

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 the 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 would suffice because it isn't necessary to view the latest
available images ASAP.  Your default Auto Refresh Interval will display initially, even when
Auto Refresh is initially Disabled.
c) Modified Files:
   i)   wxgr3hanis.php
   ii)   gr3radar-hanis-select.php
   iii)   inc-gr3hanis.php
   iv)   wxgr3hanis-iframe.php
-------------------

Be sure to adjust the Settings to your preferences if you use this newest version.

You can see the latest version here and get it here.
« Last Edit: August 02, 2015, 09:04:04 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 237
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #28 on: August 03, 2015, 07:21:49 AM »
Completed Version 20150802. Thank goodness for "Compare It". Looking good. It will be tested this afternoon and tonight.  \:D/

Jeff

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #29 on: August 03, 2015, 09:06:01 AM »
Already a bug!  If $autoRefresh' is off, the Auto Refresh Interval selector shouldn't display!  This has been corrected in Version 20150803.

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
-------------------

I would recommend updating all of the PHP scripts from this version, preserving your preferences of course.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 237
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #30 on: August 03, 2015, 09:35:24 AM »
Quote
Already a bug!  If $autoRefresh' is off, the Auto Refresh Interval selector shouldn't display!  This has been corrected in Version 20150803.

I updated the file  gr3radar-hanis-select.php but I don't notice any changes.

Jeff

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #31 on: August 03, 2015, 10:57:44 AM »
Quote
Already a bug!  If $autoRefresh' is off, the Auto Refresh Interval selector shouldn't display!  This has been corrected in Version 20150803.

I updated the file  gr3radar-hanis-select.php but I don't notice any changes.

Jeff
You won't, Jeff, unless you set '$autoRefresh = false' in 'wxgr3hanis.php' Settings.  Then the auto-refresh related options all disappear.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 237
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #32 on: August 03, 2015, 11:06:16 AM »
Quote
You won't, Jeff, unless you set '$autoRefresh = false' in 'wxgr3hanis.php' Settings.  Then the auto-refresh related options all disappear.

Thanks.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #33 on: August 04, 2015, 09:56:23 AM »
Messing around with Auto Refresh Interval selector appearance and button color and button text color today.

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 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

Be sure to adjust the Settings to your preferences when you update to a newer version.

You can see the latest version with '$autoRefresh' on here and '$autoRefresh' off here.  The button colors and button text colors have been modified.

If you wish to restrict Auto Refresh use due to bandwidth considerations, you could save 'wxgr3hanis.php with '$autoRefresh = false' and save another version that isn't listed in your menu with '$autoRefresh = true' as 'wxgr3hanis-ar.php' or some such.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 237
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #34 on: August 04, 2015, 02:31:18 PM »
Another nice upgrade ... You really like this "HAniS" stuff ... Your grass must be getting long ...   :-k

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #35 on: August 04, 2015, 02:59:54 PM »
Another nice upgrade ... You really like this "HAniS" stuff ... Your grass must be getting long ...   :-k
Thanks, Jeff.  Fortunately, I belong to a homeowners association and my monthly dues cover lawn care. :-)
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 237
    • Indian Trail Weather
Re: GRLevel3 Animation via HAniS
« Reply #36 on: August 04, 2015, 03:05:51 PM »
I thought that was the reason for so many great scripts. They probably snowplow your driveway too ... Life is sweet ...

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1045
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather
Re: GRLevel3 Animation via HAniS
« Reply #37 on: August 04, 2015, 11:42:34 PM »
OK, Jerry - I give (gettin' too old for this).

Blank window. Suspect a problem with the image and iframe sizes, but can't seem to get it right (yes - 860 is correct for mu image size). However, if I select one of the weird ones like CC it does show up at the bottom. Running the version you put out today.

http://tiggrweather.net/wxgr3hanis.php

Thanks!
John
W7JKG
BUY FROM AMAZON HERE... Thank You! :-)

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #38 on: August 05, 2015, 12:03:43 AM »
OK, Jerry - I give (gettin' too old for this).

Blank window. Suspect a problem with the image and iframe sizes, but can't seem to get it right (yes - 860 is correct for mu image size). However, if I select one of the weird ones like CC it does show up at the bottom. Running the version you put out today.

http://tiggrweather.net/wxgr3hanis.php

Thanks!
I'm afraid there's no 'wxgr3hanis-iframe.php' on your site:  http://tiggrweather.net/wxgr3hanis-iframe.php comes up empty whereas on my site http://gwwilkins.org/wxgr3hanis-iframe.php displays the buttons.

Scratch that.  The script can't find './HAniS/hanis_min.js' for some reason.
« Last Edit: August 05, 2015, 12:19:36 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1045
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather
Re: GRLevel3 Animation via HAniS
« Reply #39 on: August 05, 2015, 02:13:14 AM »
Interesting I did not see that error.

However, amazin' what can happen when one learns remembers how to properly upload a directory of scripts to the server.  #-o  Now to work on the proper sizes.

Tank U! 
John
W7JKG
BUY FROM AMAZON HERE... Thank You! :-)

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #40 on: August 05, 2015, 07:40:42 AM »
Interesting I did not see that error.

However, amazin' what can happen when one learns remembers how to properly upload a directory of scripts to the server.  #-o  Now to work on the proper sizes.

Tank U!
You're welcome, John.  The problem only showed up when I 'inspected' your empty iframe in Chrome (<Ctrl><Shift>I) and viewed the 'Console'.

You're looking good now! 8-)
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1045
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather
Re: GRLevel3 Animation via HAniS
« Reply #41 on: August 05, 2015, 12:31:43 PM »
You're welcome, John.  The problem only showed up when I 'inspected' your empty iframe in Chrome (<Ctrl><Shift>I) and viewed the 'Console'.
Ahh, that explains it. Tried Chrome and wound up dumping it.

You're looking good now! 8-)

Yep, thanks to you. One more Flash item out of the way. Care to bring any others up to the HTML5 world?   :roll:
John
W7JKG
BUY FROM AMAZON HERE... Thank You! :-)

Offline RickNY

  • Senior Member
  • **
  • Posts: 80
    • College Hills Weather - Farmingville, NY
Re: GRLevel3 Animation via HAniS
« Reply #42 on: August 06, 2015, 12:39:10 PM »
Thanks, Jerry... This is great.. I've been waiting for an HTML5 version of this.

Two things I noted:

a) DualPole-QuickReference-MediaGuide.pdf doesn't appear to be in the distribution.  I found it at http://www.wdtb.noaa.gov/courses/dualpol/documents/QuickReference-MediaGuide.pdf and added it to my images folder.

b) The selector above the radar status is a little awkward, especially if there is a long status message.  I found it better to have the status message at the top of the page, followed by the selector..  Anyone else that wanted to know how to do it - remove <?php include("radar-status.php"); ?> from inc-gr3hanis.php and put it in wxgr3hanis.php above the two include lines already there, around Line 77.

http://www.indigopc.com/wxgr3hanis.php

Thanks,
Rick


Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #43 on: August 06, 2015, 01:03:19 PM »
Thanks, Jerry... This is great.. I've been waiting for an HTML5 version of this.

Two things I noted:

a) DualPole-QuickReference-MediaGuide.pdf doesn't appear to be in the distribution.  I found it at http://www.wdtb.noaa.gov/courses/dualpol/documents/QuickReference-MediaGuide.pdf and added it to my images folder.
This was posted immediately following the script because the total file size with both was over the limit.  Glad you found it, and thanks for posting the link!
Quote
b) The selector above the radar status is a little awkward, especially if there is a long status message.  I found it better to have the status message at the top of the page, followed by the selector..  Anyone else that wanted to know how to do it - remove <?php include("radar-status.php"); ?> from inc-gr3hanis.php and put it in wxgr3hanis.php above the two include lines already there, around Line 77.

http://www.indigopc.com/wxgr3hanis.php

Thanks,
Rick
Good to see you're modifying the scripts to suit your preferences.  I'm glad it's working for you.  You may be interested in a HAniS version of the US Ridge Radars I posted here.  It does away with Flash for the animation.  It doesn't display all of the radar variations that the 'wxgr3hanis.php' scripts can, but it will display all US radars.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1045
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather
Re: GRLevel3 Animation via HAniS
« Reply #44 on: August 10, 2015, 02:25:54 AM »
Oops - just noticed this tonight, Jerry.

Script set to come up with CR, and it does that just fine. If I select a different radar type it does put that new type in place, but right below that is the CR type again.

Spent the last few hours going through the scripts but can't find it. Help?

http://tiggrweather.net/wxgr3hanis.php

Thanks.
John
W7JKG
BUY FROM AMAZON HERE... Thank You! :-)

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1742
    • SouthEast Lincoln, NE Weather
Re: GRLevel3 Animation via HAniS
« Reply #45 on: August 10, 2015, 07:43:06 AM »
Oops - just noticed this tonight, Jerry.

Script set to come up with CR, and it does that just fine. If I select a different radar type it does put that new type in place, but right below that is the CR type again.

Spent the last few hours going through the scripts but can't find it. Help?

http://tiggrweather.net/wxgr3hanis.php

Thanks.
I see the problem, John, and it's puzzling.  First try fixing this to see if it's related.  When I view the page source it only shows one <iframe>, but when I use Chrome's right-click/Inspect element on one of the <iframes> both show up.

Try reloading to your server the supporting files from my source, 'gr3radar-hanis-select.php', 'inc-gr3hanis.php', and 'wxgr3hanis-iframe.php'.  If that fails, then reconfigure from my source 'wxgr3hanis.php' as desired and reload it to your server as well.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline fourwatt

  • Member
  • *
  • Posts: 14
    • Kenai Weather Live
Re: GRLevel3 Animation via HAniS
« Reply #46 on: August 10, 2015, 11:38:18 AM »
Awesome script Jerry,

Have it working here and added in the ability to select different sites.

Thanks again for another great script.

Ken

Link here http://www.kenaiweather.com/wxgr3hanis.php

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1045
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather
Re: GRLevel3 Animation via HAniS
« Reply #47 on: August 10, 2015, 01:02:08 PM »
Will let you know, Jerry.

Thanks.
John
W7JKG
BUY FROM AMAZON HERE... Thank You! :-)

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1045
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather
Re: GRLevel3 Animation via HAniS
« Reply #48 on: August 10, 2015, 01:16:20 PM »
You want puzzling? When I remove that </div> ALL other pages (because that's in the footer.php) on the site throw this...

Line 2009, Column 9: end tag for "div" omitted, but OMITTAG NO was specified

So there's one somewhere else that's causing that problem. Continuing with your plan...
John
W7JKG
BUY FROM AMAZON HERE... Thank You! :-)

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1045
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather
Re: GRLevel3 Animation via HAniS
« Reply #49 on: August 10, 2015, 02:28:02 PM »
Followed your instructions to the letter on the rest of the files. Still fails.

Other thoughts?

Thanks!
John
W7JKG
BUY FROM AMAZON HERE... Thank You! :-)