cloudy

Author Topic: record-tags shows wrong values  (Read 380 times)

0 Members and 1 Guest are viewing this topic.

Offline weatherc

  • Posts: 1,639
  • Salo, Finland
    • Weatherstation Salo,FI
record-tags shows wrong values
« on: February 01, 2010, 03:43:02 PM »
Hi,

Struggling with a problem, i have table where its meant to show alltime monthly highs and lows using the customtags like
$recordhightempjan = "%recordhightempjan%";
$recordlowtempjan = "%recordlowtempjan%";
output from those two are:
$recordhightempjan = "-0.9";
$recordlowtempjan = "-23.1";
But ex. January shows only data from this year, has done it so since beginning of the year...And when month changed started February-tags to show only data from today (01.02)
The averagetag works fine and seems correct.

Table in action here: http://www.nordicweather.net/index.php?sivu=12&lang=en (second table, that small one)
Using WD .37P b16

Ideas?

Henkka
« Last Edit: February 01, 2010, 03:47:48 PM by weatherc »

Offline weatherc

  • Posts: 1,639
  • Salo, Finland
    • Weatherstation Salo,FI
Re: record-tags shows wrong values
« Reply #1 on: February 09, 2010, 08:29:43 PM »
Bump...

For me starts the recordtags showing this years records after the month has started, not the alltimercords...

henkka

Offline TrevP

  • Posts: 646
  • Peterborough, UK
    • Peterborough Weather Watch
Re: record-tags shows wrong values
« Reply #2 on: February 09, 2010, 10:14:13 PM »
This is exactly the same problem that I raised a couple of years ago (using the equivelent xml  %tags) and re raised it a couple of days ago as it was never rectified

http://www.weather-watch.com/smf/index.php/topic,44497.0.html

TrevP
« Last Edit: February 09, 2010, 10:19:24 PM by TrevP »
http://www.peterboroughweatherwatch.com

...Go easy......Step light...ly,.......Stay free
Strummer/Jones

Online Weather Display

  • Posts: 64,543
Re: record-tags shows wrong values
« Reply #3 on: February 09, 2010, 10:22:46 PM »
I am not clear on what the exact problem is

I am thinking that what you are trying to say that is come Feb, %recordhightempjan% gets reset
yes/no?

Offline TrevP

  • Posts: 646
  • Peterborough, UK
    • Peterborough Weather Watch
Re: record-tags shows wrong values
« Reply #4 on: February 09, 2010, 10:36:40 PM »
I am not clear on what the exact problem is

I am thinking that what you are trying to say that is come Feb, %recordhightempjan% gets reset
yes/no?

The problem is:  The highest/lowest values for any month of the year,  replace the exisitng all time high/all time low for the month even though the month value is not the all time high/low.  (this happened each month since i first reported it back in 2008, in the thread I have referred to)

TrevP
http://www.peterboroughweatherwatch.com

...Go easy......Step light...ly,.......Stay free
Strummer/Jones

Online Weather Display

  • Posts: 64,543
Re: record-tags shows wrong values
« Reply #5 on: February 09, 2010, 10:43:20 PM »
I have replied to your other thread

Offline weatherc

  • Posts: 1,639
  • Salo, Finland
    • Weatherstation Salo,FI
Re: record-tags shows wrong values
« Reply #6 on: February 09, 2010, 10:56:47 PM »
Quote
I am thinking that what you are trying to say that is come Feb, %recordhightempjan% gets reset
yes/no?

What i try say is, when it come January, when i saw it for first time, January's max/mins started showing this years max/min's, not the alltime-values. Same thing now with February, in January they seemed ok, but when February beginned, they started to show this months values. Now in February January's values are still from this year, not alltime, with theese tags:

$recordhightempjan = "%recordhightempjan%";
$recordlowtempjan = "%recordlowtempjan%";

EDIT: Using the newest zip from the another thread don't fixed the %recordhightempjan% if they are updated continous. Runned 2 updates (5min rate) and still the wrong values.

Henkka
« Last Edit: February 09, 2010, 11:13:46 PM by weatherc »

Offline TrevP

  • Posts: 646
  • Peterborough, UK
    • Peterborough Weather Watch
Re: record-tags shows wrong values
« Reply #7 on: February 10, 2010, 06:41:57 AM »
What i try say is, when it come January, when i saw it for first time, January's max/mins started showing this years max/min's, not the alltime-values. Same thing now with February, in January they seemed ok, but when February beginned, they started to show this months values. Now in February January's values are still from this year, not alltime, with theese tags:

$recordhightempjan = "%recordhightempjan%";
$recordlowtempjan = "%recordlowtempjan%";

EDIT: Using the newest zip from the another thread don't fixed the %recordhightempjan% if they are updated continous. Runned 2 updates (5min rate) and still the wrong values.

Henkka

Henkaa,

I think you will have to amend the values for Jan and Feb that are stored in your wdisplay.ini file to get the right extreme values back....

Stored here
[Record monthly high temp]
jan year=2010
jan=88
jan day=18
feb year=2010
feb=98
feb day=5
.........
[Record monthly low temp]
jan year=2010
jan=-44
jan day=4
feb year=2010
feb=-17
feb day=1

...... and if Brian's fix works then these values should only be overwritten if/when all time extremes are broken, rather than this years monthly extremes.

TrevP
http://www.peterboroughweatherwatch.com

...Go easy......Step light...ly,.......Stay free
Strummer/Jones