Author Topic: UPDATED: Script to Display US and Territories Radar Using HAniS  (Read 31250 times)

0 Members and 1 Guest are viewing this topic.

Offline TupeloWeather

  • Member
  • *
  • Posts: 34
  • Davis Vantage Pro 2
    • Up-To-The-Minute Weather for Tupelo, MS
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #50 on: August 20, 2015, 06:21:07 PM »
Thanks, gentlemen.  I have the page working now but found another slight issue.  If the button color ($btnColor) is changed to a hexadecimal # the first row of buttons on the page will load with the new color and then will not continue past that.  Is this easily fixable?

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #51 on: August 20, 2015, 06:27:54 PM »
Thanks, gentlemen.  I have the page working now but found another slight issue.  If the button color ($btnColor) is changed to a hexadecimal # the first row of buttons on the page will load with the new color and then will not continue past that.  Is this easily fixable?
Passing hex colors to the <iframe> doesn't work because the values stop at '#'.  Use color names as indicated in the text file or RGB values.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline TupeloWeather

  • Member
  • *
  • Posts: 34
  • Davis Vantage Pro 2
    • Up-To-The-Minute Weather for Tupelo, MS
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #52 on: August 20, 2015, 06:37:54 PM »
Thanks.  I had overlooked that - more than once.   :oops:

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #53 on: August 20, 2015, 10:58:28 PM »
OK - I give. How does zoom work? Don't think I missed it in the readme, but clicking the button does nothing. Or should I just go for another nap...?

http://tiggrweather.net/wxusradars-hanis3.php

Thanks.
John
W7JKG

Offline TupeloWeather

  • Member
  • *
  • Posts: 34
  • Davis Vantage Pro 2
    • Up-To-The-Minute Weather for Tupelo, MS
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #54 on: August 20, 2015, 11:01:19 PM »
After you click the Zoom button, click the map to zoom.  Click Unzoom to return to normal.

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #55 on: August 20, 2015, 11:04:54 PM »
Hmm - it works!  #-o

Think I'll take the nap anyway...

Tank U :!:
John
W7JKG

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #56 on: August 21, 2015, 09:32:22 AM »
I came across a css validation error with the newest version of inc-wxusradars-hanis3.php.  Value Error : text-align top is not a text-align value :  top

EDIT: The XHTML 1.0 Transitional validation also fails if $autoRefresh = false; & $autoRefreshOff = true; are opted for.
« Last Edit: August 21, 2015, 09:46:22 AM by tmabell »

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #57 on: August 21, 2015, 12:51:34 PM »
I came across a css validation error with the newest version of inc-wxusradars-hanis3.php.  Value Error : text-align top is not a text-align value :  top

EDIT: The XHTML 1.0 Transitional validation also fails if $autoRefresh = false; & $autoRefreshOff = true; are opted for.

I missed those issues, Tom.  Thanks!  I also tested a stand alone version, and it passes validation as well.

Revised Version 3b (20150821) attached.  Only 'wxusradars-hanis3.php', 'inc-wxusradars-hanis3.php' and 'wxusradars-hanis3.txt' are changed.

Edit 2015 August 23:  Wrong 'wxusradar-hanis-iframe.php' was included in the zip instead of 'wxusradar-hanis-iframe3.php'.  Corrected!


Edit 2015 August 25:  Version 3c of this script incorporates  a small change in 'wxusradar-iframe-hanis3.php' to use the Button Color on the toggle buttons.  Tom Whittaker added this to Hanis 2.6 released today.  If changing versions upload all of the scripts after preserving customizations in 'wxusradars-hanis3.php'.  Be sure to update '/HAniS/hanis_min.js' to the latest version.

Edit2 2015 August 25:  Two typos bollixed the selection of the radars, 'O's instead of '0's.  These have been fixed in Version 3c2 and Version 3c has been removed.

Edit 2015 August 26:  There was one additional typo  that needed correction.  This has been fixed in Version 3c3 and Version 3c2 has been removed.
« Last Edit: August 26, 2015, 10:47:33 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #58 on: August 21, 2015, 02:44:16 PM »
That fixed both issues!  You need to rest now & take a coffee break  =D&gt;

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #59 on: August 23, 2015, 04:33:35 PM »
The latest version zip file wxusradars-hanis3b-20140821.zip, has the file wxgr3hanis-iframe.php, not wxusradar-hanis-iframe3.php.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #60 on: August 23, 2015, 04:44:55 PM »
The latest version zip file wxusradars-hanis3b-20140821.zip, has the file wxgr3hanis-iframe.php, not wxusradar-hanis-iframe3.php.
Another big  :oops: - Sorry, and thanks for picking up on this!

Corrected zip attached above.
« Last Edit: August 23, 2015, 04:48:32 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #61 on: August 23, 2015, 04:53:41 PM »
No problem. Wish I would have noticed sooner. At least I figured out why the script wasn't working, on my site.

Online mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #62 on: August 25, 2015, 09:49:47 AM »
Thanks Jerry - working well for me.

Cheers

 :grin:

MikeyM

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #63 on: August 25, 2015, 02:32:18 PM »
Tom Whittaker has updated HAniS to Version 2.6 which adds the ability to change the color of the toggle buttons.  Version 3c incorporates this and is available above.
« Last Edit: August 25, 2015, 02:35:15 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #64 on: August 25, 2015, 08:11:15 PM »
I found  a small problem with the script. When you click the base velocity or storm relative velocity in the dropdown menu, the correct radar shows. However, the dropdown for both reads base reflectivity. Then the only way to go back to base reflectivity is choose composite reflectivity or either of the precipitations in the dropdown menu.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #65 on: August 25, 2015, 10:52:59 PM »
I found  a small problem with the script. When you click the base velocity or storm relative velocity in the dropdown menu, the correct radar shows. However, the dropdown for both reads base reflectivity. Then the only way to go back to base reflectivity is choose composite reflectivity or either of the precipitations in the dropdown menu.
Thanks, jerbo!  There were two typos, 'O's instead of '0's, in 'inc-wxusradars-hanis3.php' that were messing with 'selected="selected"'.  These have been fixed in Version 3c2 20150825 above.  Version 3c has been removed.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #66 on: August 26, 2015, 09:51:23 AM »
Thanks, the script works great, although the Base Reflectivity also has an O instead of 0.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #67 on: August 26, 2015, 10:40:12 AM »
Well, I'm nothing if not consistently unable to see the difference between a 'O' and a'0' in Dreamweaver.  Good eyes, and thanks.  Updated Version 3c3 has replaced Version 3c2 above.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #68 on: August 26, 2015, 12:51:10 PM »
I can only see the difference in notepad++ or notepad.

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #69 on: August 28, 2015, 02:40:14 PM »
Working great here ... Thanks. Jerry   :grin:

Jeff
Jeff

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

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 558
    • Up Country Maui Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #70 on: August 29, 2015, 02:36:49 PM »
Hi All,

I have been following this project and made the plunge and got it up and running.  Looking pretty good so far.  See http://www.dwayneyamato.com/wx/wxusradars-hanis3.php.

Thanks Jerry for all the effort that you put into this project.

We are bracing for a couple of storms that is heading towards our State, starting this coming week.  Hoping for the best, preparing for the worst.

Regards,

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #71 on: August 29, 2015, 08:19:36 PM »
Good luck Stan ...  :!:

Jeff
Jeff

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

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 558
    • Up Country Maui Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #72 on: September 03, 2015, 01:19:12 AM »
Hi All,

Looks like we have been very lucky in dodging the bullet several times so far.

Regards,

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #73 on: September 15, 2015, 05:57:51 PM »
This script fell over on me this morning because 'file_get_contents()' was broken for me on my site.  Others have as yet to experience the problem, but the fix was to use a 'user agent', HTML1.1, and the de-chunker routine in Ken True's 'QJ_fetchUrlWithoutHanging()'.  A more detailed discussion can be found here.  The script now works.

The only changed file is 'wxusradar-hanis-iframe3.php' which you can acquire by right-clicking on the source here, selecting 'Save as...', and saving without the '.txt' extension.  While it's not needed for most installations right now, there will come a time when it is.

'?sce=view' is working sporadically for me at the moment.  I've attached the file as a '.txt' file.
« Last Edit: September 15, 2015, 06:38:37 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #74 on: September 15, 2015, 06:14:55 PM »
Works here (before and after this update)..

Thanks, Jerry.
John
W7JKG

 

anything