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

0 Members and 1 Guest are viewing this topic.

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #150 on: November 06, 2017, 07:05:09 PM »
I stumbled upon this thread and I really like the radar display.

Unfortunately, I'm a bit below mediocre when it comes to implementation.

I've got the files copied to my website.

I don't know how to integrate it into Saratoga.

I'm OK with creating a flyout item for it.

I just don't know the code snippet(s) required to fire it off.

Can anybody  post a snippet to show me what goes where?

Appreciate it.
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6375
    • Valentine Nebraska's Real-Time Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #151 on: November 06, 2017, 10:41:57 PM »
I stumbled upon this thread and I really like the radar display.

Unfortunately, I'm a bit below mediocre when it comes to implementation.

I've got the files copied to my website.

I don't know how to integrate it into Saratoga.

I'm OK with creating a flyout item for it.

I just don't know the code snippet(s) required to fire it off.

Can anybody  post a snippet to show me what goes where?

Appreciate it.

I use this, I'll include the top 2 lines also.
 
Code: [Select]
</item>
<item caption="Radar/Satellite">
 

  <item caption="Local and US Radar" link="wxusradars-hanis3.php" title="NOAA Ridge Radar"/>
Randy

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #152 on: November 06, 2017, 10:49:51 PM »
I'm running the wxusradars-hanis3.php and its working. Version 5 (20170122)

Thanks Randy, however, I must have something setup wrong as I only see radar data for the last map frame. All other frames show only the map and no radar return data. I suspect there may be some kind of error causing this but I don't know enough about the code to troubleshoot it myself. I see this condition on any of the maps so it must be something pretty basic.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6375
    • Valentine Nebraska's Real-Time Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #153 on: November 06, 2017, 11:04:45 PM »
I can't help either. If you haven't already download the new scripts on previous page again. Go back and read instructions again. I know some errors were corrected and you may have one that isn't.
Randy

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #154 on: November 06, 2017, 11:50:31 PM »
I know this is an older thread but I've just noticed that my radars are only displaying returns on the last frame. I seem to remember this being mentioned as a problem quite some time ago but I don't remember what the resolution, if any, was for the issue. Can someone please help refresh my memory on this? I am running the latest version of the wxusradars-hanis.zip script (20170427).
You're not running all of the latest scripts, Don.  Here is your problem script.  You can get the scripts from my site: main saratoga template script, includes script, and the radar display script. (As usual, right-click and 'Save as...' a php file rather than a text file.) The ONLY place you need to modify the settings is in the main script.  The setting parameters in the other two scripts are to allow stand-alone debugging.

I would suggest saving all three of the latest scripts while updating HAniS to at least Version 3.9 which changes are incorporated into this version of the radar script.  Attached is the Version from July 17, 2017.
« Last Edit: November 07, 2017, 02:45:47 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #155 on: November 07, 2017, 12:33:29 AM »
I know this is an older thread but I've just noticed that my radars are only displaying returns on the last frame. I seem to remember this being mentioned as a problem quite some time ago but I don't remember what the resolution, if any, was for the issue. Can someone please help refresh my memory on this? I am running the latest version of the wxusradars-hanis.zip script (20170427).
You're not running all of the latest scripts, Don.  Here is your problem script.  You can get the scripts from my site: main saratoga template script, includes script, and the radar display script. (As usual, right-click and 'Save as...' a php file rather than a text file.) The ONLY place you need to modify the settings is in the main script.  The setting parameters in the other two scripts are to allow stand-alone debugging.

I would suggest saving all three of the latest scripts while updating HAniS to at least Version 3.9 which changes are incorporated into this version of the radar script.  Attached is Version 4.6

THANK YOU Jerry!!! It's just amazing how some current code makes things magically work again! I uploaded all of the files you mentioned and updated to HAniS 4.6. Guess I didn't have the right mix of code and couldn't figure out where to go next.

Again, thanks for the help - that's what I love about this forum. There is always someone ready to lend a hand to those of us who are challenged...
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #156 on: November 07, 2017, 07:52:23 AM »

I use this, I'll include the top 2 lines also.
 
Code: [Select]
</item>
<item caption="Radar/Satellite">
 

  <item caption="Local and US Radar" link="wxusradars-hanis3.php" title="NOAA Ridge Radar"/>

I appreciate it.  That's what I had in my flyout menu but it's not working: https://www.m82a1.us/wxusradars-hanis3.php

I'm guessing it's a setting in one of the files?  I believe I have the latest files uploaded.

 [ You are not allowed to view attachments ]
« Last Edit: November 07, 2017, 07:58:53 AM by mldenison »
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6375
    • Valentine Nebraska's Real-Time Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #157 on: November 07, 2017, 08:04:16 AM »
Go to Jerry's post above #154 and download all the files needed and install, you probably have something missing.
Randy

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #158 on: November 07, 2017, 08:47:26 AM »
Also, see this post in this thread...

Save this snippet
Code: [Select]
<?php phpinfo(); ?>as 'phptest.php' and place it on your site.  It will tell you the status of your site's php and php.ini file when you run it.
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 #159 on: November 07, 2017, 11:05:43 AM »
Jerry,

Well, this isn't nice. Updated from v5 (working) to v5a (now not working) and the new hanis (4.6?) using your links above. Comes up but blue 'loading images' bar stops at varying progress marks and the images do not appear. By putting back the previous hanis things work fine. http://tiggrweather.net/wxusradars-hanis3.php

FYI but thoughts appreciated.
John
W7JKG

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6375
    • Valentine Nebraska's Real-Time Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #160 on: November 07, 2017, 11:12:37 AM »
Interesting. I never did the latest update because mine was working also.
Randy

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #161 on: November 07, 2017, 11:22:24 AM »
Interesting. I never did the latest update because mine was working also.
After all this time one would think I had learned to leave things alone!
John
W7JKG

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #162 on: November 07, 2017, 11:28:27 AM »
Go to Jerry's post above #154 and download all the files needed and install, you probably have something missing.

That did the trick.

I got the freezing as others have gotten (above) and fixed that with the earlier hanis js files.

I appreciate the help!
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #163 on: November 07, 2017, 11:44:57 AM »
Also, see this post in this thread...

Save this snippet
Code: [Select]
<?php phpinfo(); ?>as 'phptest.php' and place it on your site.  It will tell you the status of your site's php and php.ini file when you run it.

And thanks for this.  It alleviated a call to GoDaddy about the fopen setting!
« Last Edit: November 07, 2017, 02:59:45 PM by mldenison »
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #164 on: November 07, 2017, 02:46:06 PM »
I left for the funeral of a nurse-colleague of many years at 10 AM, and just now returned, so I've been out of the loop.

I will replace the latest HAniS version with the one I'm using from July 7, 2017.  I don't know the version number and Tom Whitaker's HAniS site doesn't list the dates of the versions.

Sorry about putting up a version untested by me. :oops:
« Last Edit: November 07, 2017, 02:51:18 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #165 on: November 07, 2017, 02:56:13 PM »
One other thing I should mention.  You can set up this script to run 'stand alone' by setting in the main script Settings
Code: [Select]
$standAlone = false; // false if we run in the template environment
to
Code: [Select]
$standAlone = true; // false if we run in the template environment
.  It's called 'wxusradars-hanis3-SA.php' on my site.  Ergo, no template is then needed to run the scripts.
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 #166 on: November 07, 2017, 03:23:44 PM »
Sorry about putting up a version untested by me. :oops:
Not a problem in my book, Jerry, and no disrespect intended, but since whatever version I reverted to is running without problem I'll just stay with it. "If it ain't broke...".
John
W7JKG

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #167 on: November 08, 2017, 01:02:16 AM »
I left for the funeral of a nurse-colleague of many years at 10 AM, and just now returned, so I've been out of the loop.

I will replace the latest HAniS version with the one I'm using from July 7, 2017.  I don't know the version number and Tom Whitaker's HAniS site doesn't list the dates of the versions.

Sorry about putting up a version untested by me. :oops:

Jerry,

My version is now hanging. Where do I find the July 7, 2017 version of the HAniS code? I'm running the July 17, 2017 version at the moment.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #168 on: November 08, 2017, 07:46:13 AM »
Jerry,

My version is now hanging. Where do I find the July 7, 2017 version of the HAniS code? I'm running the July 17, 2017 version at the moment.
That's the version I'm running, 20170717 (YMD because that's the only way to get a useful sort of a series of files that incorporate dates).

Not only is this script hanging on your site, but it's crashing my browser, Chrome, right now.  Something else appears to be going on here.  I would re-upload all three of the scripts along with the HAniS directory.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #169 on: December 01, 2017, 11:39:26 PM »
Mine isn't working:  https://stillwaterweather.com/wx/wxusradars-hanis3.php 

Using version 5 and checked phptest.
« Last Edit: December 01, 2017, 11:51:10 PM by Bunty »

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #170 on: December 02, 2017, 12:03:07 AM »
mine seems to work.. http://gosportwx.com/wxusradars-hanis3.php although every now and then I keep getting undefined offsets on line 158 of radar-status.php
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #171 on: December 02, 2017, 12:16:32 AM »
Mine still working. See http://www.wxforum.net/index.php?topic=27077.msg335874#msg335874 re: my backing down the hanis file one version.
« Last Edit: December 02, 2017, 12:18:21 AM by jgillett »
John
W7JKG

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #172 on: December 02, 2017, 04:36:32 AM »
Mine isn't working:  https://stillwaterweather.com/wx/wxusradars-hanis3.php 

Using version 5 and checked phptest.

Oops, sorry. My initial install must have gone bad.  I reinstalled it and all is fine now!

A look at my stand alone version:  https://stillwaterweather.com/usradars
« Last Edit: December 02, 2017, 05:39:15 AM by Bunty »

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #173 on: December 03, 2017, 02:15:30 PM »
I got the radar script up and running,  but the zoom button doesn't seem to do anything.  Did i miss something?

https://www.northbendweather.com/wxradar.php
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPDATED: Script to Display US and Territories Radar Using HAniS
« Reply #174 on: December 03, 2017, 02:23:40 PM »
I got the radar script up and running,  but the zoom button doesn't seem to do anything.  Did i miss something?

https://www.northbendweather.com/wxradar.php
Zooming in HAniS is a two-step process.  Click 'Zoom' and then click on the map where you want to see it enlarged.  Repeat clicking on the map as necessary/desired.
« Last Edit: December 03, 2017, 02:30:03 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com