Modify the database for a new archive interval

87 views
Skip to first unread message

f4n...@gmail.com

unread,
Mar 3, 2022, 7:47:51 AM3/3/22
to weewx-user
There is a guide in the weewx wiki on how to consolidate the data in the database for a new (higher) interval:


Will this also work the other way around, from 5 to 1 or from 2 to 1 minute?

Or could i use a simpler code that just fills the new, empty minutes in between with duplicate data of the minutes around it? To not have any abrupt gaps in between.

I use the sqlite database

Tom Keffer

unread,
Mar 3, 2022, 7:51:41 AM3/3/22
to weewx-user
No, those guides will not work for going the other way. 

--
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/c5c4ea17-017c-4d5b-ad8d-6665fbb29f1an%40googlegroups.com.
Message has been deleted

f4n...@gmail.com

unread,
Mar 3, 2022, 8:32:19 AM3/3/22
to weewx-user
Is it somehow possible to go the other way with some database commands or are there any database tools for it? Does really everyone just go with a new database when changing the interval? I mean, wouldn't it be more neat to have the whole data in one place instead of multiple ones since interval change? So visitors of the html pages won't have to go through multiple "instances" to find data a few years back?

Tom Keffer

unread,
Mar 3, 2022, 8:36:35 AM3/3/22
to weewx-user
You can change to a different archive interval in a weewx database. It can handle different intervals inside the same database.

What you cannot do is change the unit system.



f4n...@gmail.com

unread,
Mar 3, 2022, 8:45:44 AM3/3/22
to weewx-user
So I can set the archive interval from 300 to 60 and it will continue with the new, shorter interval and use the same database?

Tom Keffer

unread,
Mar 3, 2022, 8:47:32 AM3/3/22
to weewx-user

Cameron D

unread,
Mar 4, 2022, 9:23:40 AM3/4/22
to weewx-user
I have modified the wiki following this discussion.

Tom Keffer

unread,
Mar 4, 2022, 9:51:50 AM3/4/22
to weewx-user
Thanks, Cameron.

--
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.
Reply all
Reply to author
Forward
0 new messages