Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: Hugh Whalen on May 18, 2022, 08:55:36 PM

Title: WeatherCat Weather Data not current
Post by: Hugh Whalen 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
Title: Re: WeatherCat Weather Data not current
Post by: saratogaWX 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...
Title: Re: WeatherCat Weather Data not current
Post by: Hugh Whalen on May 19, 2022, 12:41:46 AM
The URL is www.flowers-cove.ca

Thanks,

Hugh
Title: Re: WeatherCat Weather Data not current
Post by: saratogaWX 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.

Title: Re: WeatherCat Weather Data not current
Post by: Hugh Whalen on May 19, 2022, 01:40:07 PM
That worked. Thank you very much!  ThU32:-)

Hugh
Title: Re: WeatherCat Weather Data not current
Post by: Steve 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]