Author Topic: Script to Display US Radar Animations using HAniS - CLOSED  (Read 4000 times)

0 Members and 1 Guest are viewing this topic.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6449
    • Valentine Nebraska's Real-Time Weather
Re: Script to Display US Radar Animations using HAniS
« Reply #25 on: August 09, 2015, 09:29:37 PM »
I remembered.  :-)
I started like that '$autoRefreshOff = false' but didn't work so tried true, I'm trying it again.
Its working on your site.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2625
    • SouthEast Lincoln, NE Weather
Re: Script to Display US Radar Animations using HAniS
« Reply #26 on: August 09, 2015, 09:41:20 PM »
I started like that '$autoRefreshOff = false' but didn't work so tried true, I'm trying it again.
Its working on your site.
It's working now on your site, too. =D>
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6449
    • Valentine Nebraska's Real-Time Weather
Re: Script to Display US Radar Animations using HAniS
« Reply #27 on: August 09, 2015, 11:01:00 PM »
Hi Jerry, I'm not getting any auto refreshes. Tried IE and chrome . I'm not seeing refresh in auto on your site anymore either. I did see the whole page refresh like a meta refresh once earlier. IE's not refreshing either.

I turned off auto refresh and added a meta tag. Its working and updating radar images just fine, I'll keep it running about an hour and make sure it doesn't start caching radar image. I really prefer some kind of auto refresh for following storms.

<meta http-equiv="refresh" content="240" />
<meta http-equiv="expires" content="0" />

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2625
    • SouthEast Lincoln, NE Weather
Re: Script to Display US Radar Animations using HAniS
« Reply #28 on: August 09, 2015, 11:23:28 PM »
PM sent, Randy.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2625
    • SouthEast Lincoln, NE Weather
Re: Script to Display US Radar Animations using HAniS
« Reply #29 on: August 10, 2015, 12:32:49 AM »
This version of 'inc-wxusradars-hanis.php' uses 'setTimeout()' rather than the unreliable 'setInterval()' as a timer.  I've set the multiplier in TWO places in close proximity to each other from
Code: [Select]
setTimeout('reloadIframe()',<?php echo $autoRefreshTime?>*60000);
to
Code: [Select]
setTimeout('reloadIframe()',<?php echo $autoRefreshTime?>*2000);
so confirming that the script works as intended should be much easier.  If for example you have '2 Minutes' selected you'll see a refresh in 2*2000ms or 4 seconds.  Once you've confirmed the script works as intended you can change
Code: [Select]
BOTH *2000 instances back to *60000 restoring a full minute each minute's refresh selected.

This works for me.  If it works for you, Randy, I'll upload another Version tomorrow.  I'm off to bed.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6449
    • Valentine Nebraska's Real-Time Weather
Re: Script to Display US Radar Animations using HAniS
« Reply #30 on: August 10, 2015, 12:09:35 PM »
No go for me. PM back with my solution.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2625
    • SouthEast Lincoln, NE Weather
Re: Script to Display US Radar Animations using HAniS
« Reply #31 on: August 12, 2015, 02:15:40 PM »
This thread is now closed.  The new thread is here.
Regards, Jerry Wilkins
gwwilk@gmail.com

 

anything