295kph windGust reading cannot find in database cannot fix

61 views
Skip to first unread message

Greg from Oz

unread,
Jul 6, 2023, 8:58:04 PM7/6/23
to weewx-user
I have a windGust reading spike of 295kph and I cannot find it in the database.
295 km/h from N/A (N/A) at 06/07/23 23:00:00

select dateTime, windGust   from archive where (windGust  > 100);
Returned nothing.

I deleted the record for that date and time in the mysql database:
delete from archive where dateTime = 1686142800;

I dropped the daily records and rebuilt them.
wee_database /opt/weewx/weewx-data/weewx.conf --drop-daily
wee_database /opt/weewx/weewx-data/weewx.conf --rebuild-daily

I deleted the daywind.png file as well

It is still there:

Screenshot from 2023-07-07 10-53-10.png

This has me stumped......

I have been able to fix up wrong rain readings before and that worked but this wind record is not working the same way.

Any ideas?



Tom Keffer

unread,
Jul 6, 2023, 10:02:47 PM7/6/23
to weewx...@googlegroups.com
If you did all those things, the only thing I can think of is that you may not be working on the database you think you're working on. 


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/815dbad8-10cb-4843-b98c-bdab8ac34227n%40googlegroups.com.

Greg Reive

unread,
Jul 6, 2023, 10:05:29 PM7/6/23
to weewx...@googlegroups.com
I only have the one database.
It is very strange that I can't even find the high wind record.
I will keep looking.

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/OcVhlHxEvHI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEBDvt6OqFWPpZ0uxO-_T19_Lut00dCTM8zyVsRd30yR-Q%40mail.gmail.com.

Greg Reive

unread,
Jul 6, 2023, 10:13:55 PM7/6/23
to weewx...@googlegroups.com
select * from archive_day_windGust where dateTime = 1688565600;
+------------+------+------------+----------------+------------+-------------------+-------+--------------------+---------+
| dateTime   |     min  | mintime    |            max            | maxtime    |              sum               | count |         wsum               | sumtime |
+------------+------+------------+----------------+------------+-------------------+-------+--------------------+---------+
| 1688565600 |    0 | 1688566200 | 81.90000006552 | 1688648400 | 635.3000005082397 |   288 | 190590.00015247212 |   86400 |
+------------+------+------------+----------------+------------+-------------------+-------+--------------------+---------+

date -d@1688565600
Thu 06 Jul 2023 00:00:00 AEST

Maxtime: date -d@1688648400
Thu 06 Jul 2023 23:00:00 AEST

The max is 81.9 and not 295?


--
¯\_(ツ)_/¯

Greg from Oz

unread,
Jul 6, 2023, 10:46:06 PM7/6/23
to weewx-user
OK found it.
I did this:
select * from archive where windGust > 81.9;

Then I deleted the record:
delete from archive where dateTime = 1688648400;

Dropped the daily and rebuilt and now no more 295kph wind!

I think the first time I deleted the record for 23:00 of today's weather (collateral damage)

All good now.........Still don't know why I couldn't find 295. Why is it 81.9?
Anyway it is looking a lot better now.

Karen K

unread,
Jul 7, 2023, 12:50:53 AM7/7/23
to weewx-user
Greg from Oz schrieb am Freitag, 7. Juli 2023 um 04:46:06 UTC+2:
All good now.........Still don't know why I couldn't find 295. Why is it 81.9?


I guess the database is in US units. This is the default. 

Greg Reive

unread,
Jul 7, 2023, 1:18:38 AM7/7/23
to weewx...@googlegroups.com
Actually 81.9 is metres per second which works out to be 294.84 KPH
Now I know what to look for next time.
Yes I thought it was US in the database as well but I selected METRICWX from the beginning so it must store metric in the database.

Thanks


--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/OcVhlHxEvHI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.


--
¯\_(ツ)_/¯

Reply all
Reply to author
Forward
0 new messages