Author Topic: Saratoga / Data Flowing, Main Page blank....  (Read 1335 times)

0 Members and 1 Guest are viewing this topic.

Offline parsoli

  • Why do I live where the wind hurts my face?
  • Senior Member
  • **
  • Posts: 64
    • WX-PARSOLI
Saratoga / Data Flowing, Main Page blank....
« on: July 04, 2017, 12:17:36 PM »
Hey gang,

Decided to try out Saratoga.  I've used many a site over the years and have relatively little trouble.  Using MB to pump data.  Uploads are happening fine, data is flowing in realtime, however on the main page, I only see the radar and satellite view and no realtime station data.  Even though STATUS says it's getting updated successfully and all txt files are showing data coming in every 10 seconds.

Any thoughts?  http://weather.parsoli.net

Thanks and enjoy your 4th!

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1825
    • Maumelle Weather
Re: Saratoga / Data Flowing, Main Page blank....
« Reply #1 on: July 04, 2017, 01:19:45 PM »
Hi,

Try re-uploading the ajax-dashboard.php file. It's there, but seems to be blank.
GR2AE, GR3, Cumulus

Offline parsoli

  • Why do I live where the wind hurts my face?
  • Senior Member
  • **
  • Posts: 64
    • WX-PARSOLI
Re: Saratoga / Data Flowing, Main Page blank....
« Reply #2 on: July 04, 2017, 01:30:24 PM »
Ok, done.  Restarted Apache and no luck.

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1825
    • Maumelle Weather
Re: Saratoga / Data Flowing, Main Page blank....
« Reply #3 on: July 04, 2017, 01:37:04 PM »
Do you have PHP installed on your server?
GR2AE, GR3, Cumulus

Offline parsoli

  • Why do I live where the wind hurts my face?
  • Senior Member
  • **
  • Posts: 64
    • WX-PARSOLI
Re: Saratoga / Data Flowing, Main Page blank....
« Reply #4 on: July 04, 2017, 01:41:50 PM »
That I do:

check-fetch-times.php Version 1.17 - 22-Apr-2017

Website PHP information

Webserver OS: Linux webserver 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64
PHP Version: 7.0.18-0ubuntu0.16.04.1
Document root: /var/www/public/weather.parsoli.net
allow_url_fopen = ON
allow_url_include = ON

Checking access to key websites for your template set

This script will check the load times and the ability to save cache files for the included support scripts with your template package.

  Included Settings.php time=0.003 secs.

Using lang=en as default for testing


--checking NWS Forecast URL --
Using first entry in Settings.php $SITE['NWSforecasts'] for test.
URL: https://api.weather.gov/points/41.8949,-88.4696/forecast
Cache: ./cache/forecast-ILC089-test-json.txt

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga / Data Flowing, Main Page blank....
« Reply #5 on: July 04, 2017, 01:44:39 PM »
Your PHP installation is not complete.  running check-fetch-times.php?show=info shows
Quote
Status of needed built-in PHP functions:
function simplexml_load_file is available
function iconv is available
function json_decode is available
function curl_init is NOT available
function curl_setopt is NOT available
function curl_exec is NOT available
function curl_error is NOT available
function curl_close is NOT available
Without curl, no forecasts, UV, Metar conditions (etc) can be acquired, and your page stops loading with a PHP fatal error (missing function curl_setopt.

Enable curl in your PHP and it will likely work.

Oh.. and make sure allow_url_include = off in your php.ini .. the template only requires allow_url_fopen = on to work.
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 parsoli

  • Why do I live where the wind hurts my face?
  • Senior Member
  • **
  • Posts: 64
    • WX-PARSOLI
Re: Saratoga / Data Flowing, Main Page blank....
« Reply #6 on: July 04, 2017, 01:53:14 PM »
Thanks!  That did the trick.  Went from Ubuntu 14 to 16 for this install and forgot the CURL.  Thanks again for the help...time to customize this puppy.

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga / Data Flowing, Main Page blank....
« Reply #7 on: July 04, 2017, 02:25:45 PM »
Great.  Be aware that the sun/moon data from the USNO (api.usno.navy.mil) is not currently working as their server is down/not-responsive.

So, the homepage (and wxastronomy.php) will be slower by 4 or 5 seconds to load as the get-USNO-sunmoon.php times out on the connection request.  And.. the sun/moon rise/fall times/dates will be missing.  Under 'normal' operation, that won't happen.
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