Extreme Block 1970
-
Saszalez
- Observer

- Posts: 17
- Joined: Thu Feb 24, 2022 1:51 pm
- Station model: Davis Vantage Pro 2
- Software: WeatherLink
Extreme Block 1970
Hello. I have installed the "Extremes Block", and when looking at the list, the first minimum value of any of the variables is 0, registered on January 1, 1970. There is no value for that date; it is always 0. How can it be corrected?
- Attachments
-
- Captura de pantalla 2022-03-28 a las 12.13.40.png (23.76 KiB) Viewed 5162 times
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Extreme Block 1970
You can remove this erroneous data ( via the meteotemplate control panel ) database -> edit data and database -> edit data extra sensors, remove any data of 01/01/1970 ( it should be only one ).
If you have several of these wrong data it could be faster to remove them via phpmyadmin ( accessibkle via your hosting provider's control panel )
If you have several of these wrong data it could be faster to remove them via phpmyadmin ( accessibkle via your hosting provider's control panel )
-
Saszalez
- Observer

- Posts: 17
- Joined: Thu Feb 24, 2022 1:51 pm
- Station model: Davis Vantage Pro 2
- Software: WeatherLink
Re: Extreme Block 1970
I have looked where you have told me, and there is no data. Therefore, I cannot delete anything.
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Extreme Block 1970
I see.
To pinpoint the problem you can try executing the following query ( in phpmyadmin ):
This is the same query that is executed to retrieve minimum average temperature:
To pinpoint the problem you can try executing the following query ( in phpmyadmin ):
Code: Select all
SELECT DayAvg, DATETIME
FROM (
SELECT DATETIME, AVG(T) AS DayAvg
FROM alldata
GROUP BY YEAR(DATETIME), MONTH(DATETIME), DAY(DATETIME)
ORDER BY DATETIME
) AS DailyMaxTable
ORDER BY DayAvg
LIMIT 10-
Saszalez
- Observer

- Posts: 17
- Joined: Thu Feb 24, 2022 1:51 pm
- Station model: Davis Vantage Pro 2
- Software: WeatherLink
Re: Extreme Block 1970
If I run the code I get the following:
- Attachments
-
- Captura de pantalla 2022-03-28 a las 23.25.41.png (37.19 KiB) Viewed 5143 times
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Extreme Block 1970
I'd say you have a record on 1970-01-01
This query ( in phpmyadmin ) should return exactly 1 result:
And this query should delete it:
P.S.
Is always a good idea to make a backup of the database before executing these ( potentially destructive ) queries
This query ( in phpmyadmin ) should return exactly 1 result:
Code: Select all
SELECT * FROM `alldata` WHERE DateTime <= '2020-01-01 00:00:00'Code: Select all
DELETE FROM `alldata` WHERE DateTime <= '2020-01-01 00:00:00'Is always a good idea to make a backup of the database before executing these ( potentially destructive ) queries