Author Topic: Standard Saratoga trends page using WD [Resolved]  (Read 993 times)

0 Members and 1 Guest are viewing this topic.

Offline Vasco

  • Forecaster
  • *****
  • Posts: 386
    • PWS
Standard Saratoga trends page using WD [Resolved]
« on: July 11, 2023, 04:50:14 PM »
Recent traffic about an enhanced wxtrends page inspired me to look at my standard page - probably for the first time  :-(

At first glance I cannot reconcile any of the "hot/cold days this month" with reality. . . so what am I looking at?

Highs and lows look OK.

« Last Edit: July 12, 2023, 10:25:41 AM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9405
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Standard Saratoga trends page
« Reply #1 on: July 11, 2023, 07:41:52 PM »
Those values are (for you) directly from Weather-Display values .. no additional processing is done with the WD-plugin.  It all comes from testtags.php processed by WD.

I suggest you have WD recalculate those to get it more consonant with the WD noaa reports.
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 Vasco

  • Forecaster
  • *****
  • Posts: 386
    • PWS
Re: Standard Saratoga trends page
« Reply #2 on: July 11, 2023, 07:45:39 PM »
So these WD tags do not give the right values?
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline Murry Conarroe

  • Contributor
  • ***
  • Posts: 143
    • Wildwood Weather
Re: Standard Saratoga trends page
« Reply #3 on: July 11, 2023, 08:25:52 PM »
The coldest / warmest tags are for the times from 6pm to 6am or 6am to 6pm.
And if my memory is correct they are "running averages" for their respective periods.
Not necessarily the average for the entire 12 hours.
Murry

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9405
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Standard Saratoga trends page
« Reply #4 on: July 11, 2023, 08:31:16 PM »
Correct.

These are the tags (from the testtags.txt template)
Code: [Select]
$mrecordhightemp = '%mrecordhightemp%';
$mrecordhightempday = '%mrecordhightempday%';
$mrecordhightempmonth = '%mrecordhightempmonth%';
$mrecordhightempyear = '%mrecordhightempyear%';

$mrecordlowtemp = '%mrecordlowtemp%';
$mrecordlowtempday = '%mrecordlowtempday%';
$mrecordlowtempmonth = '%mrecordlowtempmonth%';
$mrecordlowtempyear = '%mrecordlowtempyear%';

$mwarmestdayonrecord = '%mwarmestdayonrecord%';
$mwarmestnightonrecord = '%mwarmestnightonrecord%';

$mcoldestdayonrecord = '%mcoldestdayonrecord%';
$mcoldestnightonrecord = '%mcoldestnightonrecord%';
Check those values in testtags.php?sce=view to see the raw data.
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 Vasco

  • Forecaster
  • *****
  • Posts: 386
    • PWS
Re: Standard Saratoga trends page
« Reply #5 on: July 12, 2023, 09:45:55 AM »
The coldest / warmest tags are for the times from 6pm to 6am or 6am to 6pm.

Thanks, Murry. I looked up tagslist.txt and confirmed this:

Code: [Select]
for current month to date:
---------------------------
%mcoldestnightonrecord%......Coldest night on record (6pm to 6am)
%mcoldestdayonrecord%........Coldest day on record (6am to 6pm)

%mwarmestnightonrecord%......Warmest night on record (6pm to 6am)
%mwarmestdayonrecord%........Warmest day on record (6am to 6pm)

Check those values in testtags.php?sce=view to see the raw data.

Thanks, Ken. Raw data is as shown:

Code: [Select]
$mcoldestdayonrecord = '13.6C  on: 04 Jul 2023';
$mcoldestnightonrecord = '10.8C  on: 03 Jul 2023';

$mwarmestdayonrecord = '21.0C  on: 08 Jul 2023';
$mwarmestnightonrecord = '16.9C  on: 09 Jul 2023';

Looks like I'll have to try to fit in an explanation  :-)
« Last Edit: July 12, 2023, 12:29:44 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline Vasco

  • Forecaster
  • *****
  • Posts: 386
    • PWS
Re: Standard Saratoga trends page using WD [Resolved]
« Reply #6 on: July 12, 2023, 12:28:08 PM »
Explanation added (a bit clumsily, but it works. . .)  :-)

I had to delete a couple of rain history lines because "Trends" don't work in my copy of WD: $raintodatemonthago and $raintodateyearago are always zero  :?

Also deleted all the spaces between a temp and its uom.
« Last Edit: July 13, 2023, 02:08:00 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

 

anything