Author Topic: Delayed Loading  (Read 248 times)

0 Members and 1 Guest are viewing this topic.

Offline Wingfat

  • Member
  • *
  • Posts: 44
  • First Born Atomic Generation
Delayed Loading
« on: April 24, 2020, 10:59:47 AM »
hi..


I'm looking for some help troubleshooting Parkviewx.com. The top 2 graphics load and then there is a considerable delay before the rest of the site loads. I have also noticed that my satellite loops show no actual graphics.. These might be related since everything else is fine. Since hurricane season will be here shortly.. I figured I'd better try to fix this. Any help would be appreciated. A big thank you to Ken who helped me move my site to a new hosting service awhile back.
« Last Edit: April 24, 2020, 11:03:51 AM by Wingfat »
No Longer operational
Davis Vantage Pro v2
Wireless Anemometer Transmitter
Meteobridge NANO-SD
Formally Parkviewx.com

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9015
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Delayed Loading
« Reply #1 on: April 24, 2020, 11:25:18 AM »
Ahh... several issues.  Some older scripts are causing the stalling at load.  Running check-fetch-times.php?show=versions shows multiple scripts in particular need updating:

advforecast2.php    Need update to V5.13 - 2019-08-08
get-metar-conditions-inc.php   Need update to V1.18 - 2019-11-07
nws-alerts.php   Need update to V1.43 - 2019-05-14
and especially:
get-USNO-sunmoon.php   Need update to V3.03 - 2019-11-24

The latter is due to aa.usno.navy.mil is 'offline' through May due to a site redesign.  It's causing the majority of the delay in page load
Quote
<!-- get-USNO-sunmoon.php - Version 3.02 - 23-Nov-2018 -->
<!-- refetch seconds=1 -->
<!-- loading ./cache/USNO-moondata.txt from https://api.usno.navy.mil/rstt/oneday?date=04/24/2020&coords=26.565629,-80.162173&tz=-4 -->
<!-- curl fetching 'https://api.usno.navy.mil/rstt/oneday?date=04/24/2020&coords=26.565629,-80.162173&tz=-4' -->
<!-- curl Error: Connection timed out after 30000 milliseconds -->

You can get all the updates by using the update tool since 04-Feb-2019 with the  Base-USA, MB-plugin

Looking at Settings.php, I think you have
Code: [Select]
$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  "FLC099|Lake Worth|http://forecast.weather.gov/MapClick.php?CityName=Lake Worth&state=FL&site=MTR&textField1=26.565629&textField2=-80.162173&e=1&TextType=2",
"FLC086|Miami Dade|http://forecast.weather.gov/MapClick.php?CityName=Miami&state=FL&site=MTR&textField1=25.5516&textField2=-80.6322&e=0&TextType=2",
"FLC011|Fort Lauderdale|http://forecast.weather.gov/MapClick.php?CityName=Fort Lauderdale&state=FL&site=MTR&textField1=26.122&textField2=-80.1373&e=0&TextType=2",
);
and
Code: [Select]
$SITE['noaazone']         = 'FLC099'; // used for NOAA advisories and advforecast2.php zone forecasts
and
Code: [Select]
$SITE['NWSalertsCodes'] = array(
  "Palm Beach County|FLC068|FLC067",
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
  "Fort Lauderdale|FLC011|FLC086",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);

I think you misunderstand what should be in the $SITE['NWSforecasts'] array.. you have FLCnnn codes (County codes) and they should be FLZnnn (Forecast Zone codes).  Likewise, in the $SITE['noaazone'] , should be a Zone code.
and in $SITE['NWSalertsCodes'], it's ok to have County codes, but you should have at least one Zone code in each line.

Hope this helps...

« Last Edit: April 24, 2020, 11:27:39 AM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Wingfat

  • Member
  • *
  • Posts: 44
  • First Born Atomic Generation
Re: Delayed Loading
« Reply #2 on: April 24, 2020, 04:21:38 PM »
Thank you so much..... That did the trick!


I just need to figure out why my satellite loops done run.


Stay safe


jeff


N.B.


Solved the problem... the Hanis folder was missing the proper permissions.  I'm ready for Hurricaine season!



« Last Edit: April 24, 2020, 06:56:23 PM by Wingfat »
No Longer operational
Davis Vantage Pro v2
Wireless Anemometer Transmitter
Meteobridge NANO-SD
Formally Parkviewx.com

 

anything