Author Topic: Station Graphs not loading  (Read 527 times)

0 Members and 1 Guest are viewing this topic.

Offline SierraFoothills

  • Member
  • *
  • Posts: 34
    • Rail Road Flat Weather
Station Graphs not loading
« on: August 03, 2021, 10:12:50 PM »
Is there an obvious reason wxgraphs.php is not loading?

https://www.railroadflat.org/weather/wxgraphs.php

https://www.railroadflat.org/weather/check-fetch-times.php?show=versions

I recently updated the site and it was working.

Thanks
Mike


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Station Graphs not loading
« Reply #1 on: August 04, 2021, 08:18:43 PM »
Looking at https://www.railroadflat.org/weather/check-fetch-times.php?show=info shows:
Quote
Settings-weather.php $SITE['graphImageDir']='./davcon' exists; but does not have contents (curr24hourgraph.gif tested). Set WD software to upload contents for proper template operation.

Looking at Settings-weather.php shows
Code: [Select]
$SITE['graphImageDir']  = './davcon';  // directory location for graph images with trailing / and that needs a trailing / to be
Code: [Select]
$SITE['graphImageDir']  = './davcon/';  // directory location for graph images with trailing /  (and that assumes the WD graphs are uploaded to the ./davcon/ directory)

However, I see that https://www.railroadflat.org/weather/curr24hourgraph.gif does exist, so change Settings-weather.php to
Code: [Select]
$SITE['graphImageDir']  = './';  // directory location for graph images with trailing / and the history images should work.
« Last Edit: August 04, 2021, 08:21:11 PM 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 SierraFoothills

  • Member
  • *
  • Posts: 34
    • Rail Road Flat Weather
Re: Station Graphs not loading
« Reply #2 on: August 04, 2021, 10:19:42 PM »
Quote
However, I see that https://www.railroadflat.org/weather/curr24hourgraph.gif does exist, so change Settings-weather.php to
Code: [Select]
$SITE['graphImageDir']  = './';  // directory location for graph images with trailing / and the history images should work.

That did it. Thank you Ken.
Mike
https://www.railroadflat.org/weather/wxgraphs.php

 

anything