Author Topic: WeatherCat Weather Data not current  (Read 1396 times)

Hugh Whalen

  • Gentle Breeze
  • **
  • Posts: 64
    • INBFLOWE2
  • Station Details: Vantage Pro 2 with UV and Solar sensors. 2017 27" iMac, 3.5 GHz i5, 16GB RAM, 512 GB SSD
WeatherCat Weather Data not current
« on: May 18, 2022, 08:55:36 PM »
I am using the Saratoga templates. When I click on Status I get the following. Any idea on what is going on here?

Hugh

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: WeatherCat Weather Data not current
« Reply #1 on: May 18, 2022, 09:32:56 PM »
It's hard to tell from just an image, but I think it's a mismatch between what WeatherCat uses for date format and what the template is expecting.

In Settings.php, there is the entry:

Code: [Select]
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
If your date looks like day/month/year in WCTtags.php?sce=dump, then =false; is the one to use.
otherwise, set it to =true;

It also assumes that the date delimiter is either a / - or . but the order is MDY or DMY.

I can't tell more without a link to a public URL to your weather website...

Hope this helps...
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Hugh Whalen

  • Gentle Breeze
  • **
  • Posts: 64
    • INBFLOWE2
  • Station Details: Vantage Pro 2 with UV and Solar sensors. 2017 27" iMac, 3.5 GHz i5, 16GB RAM, 512 GB SSD
Re: WeatherCat Weather Data not current
« Reply #2 on: May 19, 2022, 12:41:46 AM »
The URL is www.flowers-cove.ca

Thanks,

Hugh

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: WeatherCat Weather Data not current
« Reply #3 on: May 19, 2022, 03:11:04 AM »
Thanks, Hugh.

In your WCTtags.php?sce=view, I spy your Date as
Code: [Select]
da|05/18/22|// Date in the format of month/day/year:|:and that is what is in $WX['da'] which WCT-defs.php puts into the $date variable.
In your Settings.php, you have
Code: [Select]
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
which doesn't match the month/day/year format.. change that to
Code: [Select]
$SITE['WDdateMDY'] = true; // for weather software date format of month/day/year.  =false for day/month/year and that should fix the issue in wxstatus.php display of the age of the weather data.

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Hugh Whalen

  • Gentle Breeze
  • **
  • Posts: 64
    • INBFLOWE2
  • Station Details: Vantage Pro 2 with UV and Solar sensors. 2017 27" iMac, 3.5 GHz i5, 16GB RAM, 512 GB SSD
Re: WeatherCat Weather Data not current
« Reply #4 on: May 19, 2022, 01:40:07 PM »
That worked. Thank you very much!  ThU32:-)

Hugh

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1563
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: WeatherCat Weather Data not current
« Reply #5 on: May 19, 2022, 08:49:41 PM »
Thank you for keeping us straight on your template, Ken! You (along with several other folks providing external services) have been an asset to the WeatherCat community!

 [cheers1]
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook