Author Topic: Home page problem with PHP script  (Read 933 times)

0 Members and 1 Guest are viewing this topic.

Offline kc1fx

  • Member
  • *
  • Posts: 15
    • Local Weather
Home page problem with PHP script
« on: April 26, 2019, 12:59:26 PM »
My testing website is kc1fx-weather.info/index.php .What I am seeing is that the Right hand "Visible Satellite image is stuck on 18 Feb .... I do not know how or where to make the change necessary to fix. I just started this transition. My original live site is kc1fx-weather.info .Any assistance appreciated.

Thank you
Gary [ You are not allowed to view attachments ]

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Home page problem with PHP script
« Reply #1 on: April 26, 2019, 02:48:08 PM »
The WU satellite animation is found in your 'index.php'.

Try substituting 'https://cdn.star.nesdis.noaa.gov/GOES16/ABI/GIFS/GOES16-NE-GEOCOLOR-600x600.gif' for the existing satellite animation.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline kc1fx

  • Member
  • *
  • Posts: 15
    • Local Weather
Re: Home page problem with PHP script
« Reply #2 on: April 26, 2019, 04:01:21 PM »
Yes, that works. Thanks....Lots of clouds heading my way.

Gary

Offline kc1fx

  • Member
  • *
  • Posts: 15
    • Local Weather
Re: Home page problem with PHP script
« Reply #3 on: May 05, 2019, 07:55:33 AM »
Hello Jerry:

Looks like we both lost the satellite image.  :-( I noticed mine down yesterday and checked yours this AM.

Gary

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Home page problem with PHP script
« Reply #4 on: May 05, 2019, 08:21:38 AM »
In light of NESDIS's GOES16 problems I've resorted to an alternate source for the satellite image animation on my dashboard, the University of Wisconsin's Space Science and Engineering Center.  It uses HAniS animation rather than accessing a pre-made GIF animation.

I've attached the animation script which uses a '$gWW = true;' switch to suitably modify the HAniS animation's display parameters.  Here, in context, are the modifications to my 'index.php':
Code: [Select]
  <table width="99%" style="border: none">
  <tr><td align="center">
    <a class="hvr-glow hvr-grow" onclick="x=window.open('wxradar.php?mode=4&amp;animated=1&amp;advisories=0&amp;track=0&amp;lightning=0#WUtop')" target="_blank" title="Larger View in New Tab"><img src="https://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_rd_anim.gif" alt="Regional Radar" width="320" height="240" style="margin: 0px; padding: 0px; border: none; cursor:pointer" /></a>
  </td>
  <td align="center" style="padding:0px">
    <a class="hvr-glow hvr-grow" title="Operational US Satellite Loops in New Tab"><iframe id="satLoops" width="332" height="249" align="left" src="wxsseccomposite-iframe-gww.php" style="margin: 0px; margin-top:8px; padding: 0px; border: none; cursor:pointer"></iframe></a>
  </td>
  </tr>
  <tr><td colspan="2" class="subHeader" align="center" style="font-size:75%; float:none">Radar image courtesy of <a href="https://www.weatherunderground.com" target="_blank" title="Opens in New Tab">Weather Underground</a> &amp; satellite images courtesy of <a href="https://www.ssec.wisc.edu/" target="_blank" title="Opens in New Tab">UW-SSEC</a>.</td></tr>
  </table>
I've included the full table for context in my ajaxdashboard695's display.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline kc1fx

  • Member
  • *
  • Posts: 15
    • Local Weather
Re: Home page problem with PHP script
« Reply #5 on: May 05, 2019, 08:58:22 AM »
Thank you.  [tup]

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Home page problem with PHP script
« Reply #6 on: July 18, 2019, 06:11:15 PM »
This HAniS-based script is a drop-in for the satellite animation in the Saratoga template's index.php.  It uses the smallest possible images, 300x300 in the case of the Upper Mississippi Valley (umv) which load faster.  It also defaults to 12 images which represent the past hour.

Because the NOAA/NESDIS-applied date-time stamps are visible in these images I've also eliminated this now redundant display in the script.

I haven't thoroughly tested all sectors, but they should all display in the assigned <iframe> albeit somewhat distorted in some cases.

For some reason even the smaller files which are fewer in number don't always display upon initial loading of my home page.  Refreshes do the trick, though.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline kc1fx

  • Member
  • *
  • Posts: 15
    • Local Weather
Re: Home page problem with PHP script
« Reply #7 on: July 18, 2019, 07:44:17 PM »
Thank you for your info. Your home page is VERY informative. Looks nice.

Gary

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Home page problem with PHP script
« Reply #8 on: July 18, 2019, 11:38:28 PM »
Thanks, Gary.  It's my heavily modified version of Scott Thomson's Alternate Dashboard.  There's a link at the bottom of my dashboard to the section of Ken True's Saratoga Weather scripts page where he's now kindly hosting the original source scripts in place of the no longer available BurnsvilleWeatherLIVE site.  Ken gathered up most if not all of the scripts needed for this dashboard in his latest release.  Frankly, I and many others would be lost without Ken!
Regards, Jerry Wilkins
gwwilk@gmail.com

 

anything