Author Topic: Saratoga Scripts Date Error  (Read 1605 times)

0 Members and 1 Guest are viewing this topic.

Offline dnavarrojr

  • Member
  • *
  • Posts: 43
    • Weather Center
Saratoga Scripts Date Error
« on: November 01, 2013, 09:24:56 AM »
I have installed the Saratoga Scripts v3 on my test site in a test folder and the displayed date is incorrect:

http://weather.wibwradio.com/saratoga/index.php

I have the time zone set as:

$SITE['tz']          = 'America/Chicago'; //NOTE: this *MUST* be set correctly to

Did I miss a step in setting it up?

ps. My server is correctly set to "America/Chicago" as well and shows the correct date/time in WHM.
« Last Edit: November 01, 2013, 09:33:19 AM by dnavarrojr »
Dave Navarro, Jr. - The Weather Center
https://weathercenter.us

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: Saratoga Scripts Date Error
« Reply #1 on: November 01, 2013, 09:39:28 AM »
Its appears your WD info is stale.

http://weather.wibwradio.com/saratoga/testtags.php?sce=view

Are your directory paths correct, is WD uploading to correct directory?

Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline dnavarrojr

  • Member
  • *
  • Posts: 43
    • Weather Center
Re: Saratoga Scripts Date Error
« Reply #2 on: November 01, 2013, 10:12:51 AM »
Its appears your WD info is stale.

http://weather.wibwradio.com/saratoga/testtags.php?sce=view

Are your directory paths correct, is WD uploading to correct directory?

I'm not seeing a setting for that in Settings.php or Settings-weather.php
Dave Navarro, Jr. - The Weather Center
https://weathercenter.us

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Scripts Date Error
« Reply #3 on: November 01, 2013, 10:18:55 AM »
The locations for testtags.php and clientraw.txt are specified in Settings-weather.php

Use relative file addressing in the settings. (Like '../testtags.php' if WD is uploading to the directory above the directory the template set resides in).

Best regards,
Ken
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 dnavarrojr

  • Member
  • *
  • Posts: 43
    • Weather Center
Re: Saratoga Scripts Date Error
« Reply #4 on: November 01, 2013, 10:21:44 AM »
This is what I have:

$SITE['WXtags']         = './testtags.php';  // for weather variables .. we're using the old name instead of WDtags.php
$SITE['clientrawfile']  = './clientraw.txt';  // directory and name of Weather-Display realtime.txt file

And the clientraw.txt file is zero bytes.
« Last Edit: November 01, 2013, 10:23:45 AM by dnavarrojr »
Dave Navarro, Jr. - The Weather Center
https://weathercenter.us

Offline dnavarrojr

  • Member
  • *
  • Posts: 43
    • Weather Center
Re: Saratoga Scripts Date Error
« Reply #5 on: November 01, 2013, 10:28:50 AM »
I am going to guess it's not working because I don't have a weather station to update the data.
Dave Navarro, Jr. - The Weather Center
https://weathercenter.us

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Scripts Date Error
« Reply #6 on: November 01, 2013, 02:01:15 PM »
Yep, that would do it :)

The template set includes a sample testtags.php so the site will display even before you start uploading your own data -- that 'sample' data is from my station in 2011.  You will need a weather station (and weather software) in order to display current weather data.  Meanwhile, the support scripts that rely on external websites for forecast/advisory data will work just fine without a weather station present.

Best regards,
Ken
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 dnavarrojr

  • Member
  • *
  • Posts: 43
    • Weather Center
Re: Saratoga Scripts Date Error
« Reply #7 on: November 03, 2013, 01:31:27 PM »
Thanks, I mostly was interested in the support scripts.

I'd like to add better maps and other data to our site.
Dave Navarro, Jr. - The Weather Center
https://weathercenter.us

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Scripts Date Error
« Reply #8 on: November 03, 2013, 05:15:31 PM »
No problem.. the support scripts (most of them, anyway) run with or without the template set, and are available separately from my site, so feel free to pick and choose :)

Best regards,
Ken
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

 

anything