Author Topic: Min/Max Temp times don't change  (Read 170 times)

0 Members and 1 Guest are viewing this topic.

Offline mikey1299

  • Member
  • *
  • Posts: 2
Min/Max Temp times don't change
« on: May 05, 2022, 10:10:57 AM »
I am using WeatherCat to feed my website and the WCT_realtime.txt and WCTtags.php have updated data for yesterday and today's times of the min/max but they do no ever change in the display. Any suggestion on where to look or how to fix this?  Thanks.

 [ You are not allowed to view attachments ]

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Min/Max Temp times don't change
« Reply #1 on: May 05, 2022, 12:05:54 PM »
What is the URL to your website.. I'll take a look.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mikey1299

  • Member
  • *
  • Posts: 2
Re: Min/Max Temp times don't change
« Reply #2 on: May 05, 2022, 04:04:35 PM »
mrstiller.com

Looks like if I do a hard refresh it will sometimes change but no when it is doing the 60 second auto refresh. Other values will change then.

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Min/Max Temp times don't change
« Reply #3 on: May 05, 2022, 07:18:08 PM »
The values for the times in the Yesterday/Today min/max temperatures are all from WCTtags.php and reflect data in WeatherCat.

from your WCTtags.php?sce=dump shows
Code: [Select]
$WX['STAT:TEMPERATURE:MAX:TODAY'] = '62.0'; // Highest temperature today
$WX['STAT:TEMPERATURE:MAX:TODAY:TIME'] = '17:06:00'; // Time of highest temperature today
$WX['STAT:TEMPERATURE:MAX:YESTERDAY'] = '60.9'; // Highest temperature yesterday
$WX['STAT:TEMPERATURE:MAX:YESTERDAY:TIME'] = '17:18:00'; // Time of highest temperature yesterday

$WX['STAT:TEMPERATURE:MIN:TODAY'] = '39.2'; // Lowest temperature today
$WX['STAT:TEMPERATURE:MIN:TODAY:TIME'] = '06:00:00'; // Time of lowest temperature today
$WX['STAT:TEMPERATURE:MIN:YESTERDAY'] = '35.2'; // Lowest temperature yesterday
$WX['STAT:TEMPERATURE:MIN:YESTERDAY:TIME'] = '06:13:00'; // Time of lowest temperature yesterday

For the 24hr difference number display, it uses
Code: [Select]
$WX['STAT:TEMPERATURE:CURRENT'] = '59.6'; // Current Temperature

$WX['STAT:TEMPERATURE:24HRSAGO'] = '59.9'; // Current Temperature value 24 hours ago.

Only the Today min and max temperatures are updated by AJAX (ajaxWCTwx.js) from the WCT_realtime.txt file, otherwise all the data is from the uploaded WCTtags.php file.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP