wee_database backfill only a range of dates

51 views
Skip to first unread message

Constantine Samaklis

unread,
Mar 18, 2017, 11:14:11 PM3/18/17
to weewx-user
I am looking for a way to backfill a range of dates into my summary tables. When I look at the weewx website, the documentation states that you can do this with wee_database but it seems that the latest version of the utility only allows for a backfill where data is not present already in the aggregation tables.

I need to correct only a couple of days of bad data in my archive_day_rain table.

Is there a way to do this currently with wee_database or do I need to get an older version of the script? (would that even be available or safe?)

Thanks

gjr80

unread,
Mar 18, 2017, 11:29:06 PM3/18/17
to weewx-user
Hi,


On Sunday, 19 March 2017 13:14:11 UTC+10, Constantine Samaklis wrote:
I am looking for a way to backfill a range of dates into my summary tables. When I look at the weewx website, the documentation states that you can do this with wee_database but it seems that the latest version of the utility only allows for a backfill where data is not present already in the aggregation tables.

What makes you say this? One of the features of the 3.7.0 wee_database was that users could now rebuild a limited period of their daily summaries using the --rebuild-daily command line option through use of the --date or --from and --to command line options. The paradigm of dropping the daily summaries then rebuilding (old term backfilling) them has been discarded and you can just rebuild them without dropping first. It should not matter what is or is not in the daily summary tables, if it does then I would say that is a bug.
 
Is there a way to do this currently with wee_database or do I need to get an older version of the script? (would that even be available or safe?)

You won't have much luck with old versions of wee_database, before 3.7.0 wee_database could not backfill selected days only all or nothing.

Gary

Andrew Milner

unread,
Mar 19, 2017, 12:40:32 AM3/19/17
to weewx-user
Constantine - doesn't this (for current version [3.7] of weewx) do exactly what you require?


where in the documentation on the weewx website did you read otherwise?

Constantine Samaklis

unread,
Mar 19, 2017, 7:53:02 AM3/19/17
to weewx-user
It turns out I had a backup dir of an older version and I was looking at that version of the script. Probably a good reminder of not to look at things late at night. :-)

Thank you for the replies.

--
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/mZlwE4lRoaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages