Retroactively calculate database fields

73 views
Skip to first unread message

Manfred Maier

unread,
Jun 21, 2020, 4:22:43 PM6/21/20
to weewx-user
Hi,
I've added new fields to the database (e.g. sunshineTime) and I'm populating them with an adapted version of the radiationhours.py extension. 

Is there a way to also populate those fields for data records of past times?
I've tried "wee_database --calc-missing", but had no success.

Ideas and hints highly appreciated!

Thanks!
Manfred 

Manfred Maier

unread,
Jun 23, 2020, 4:16:09 PM6/23/20
to weewx-user
Pushing once.
Is there a way to perform the calculations of 3rd party extensions for historic timestamps in the database?

vince

unread,
Jun 23, 2020, 5:31:20 PM6/23/20
to weewx-user
On Tuesday, June 23, 2020 at 1:16:09 PM UTC-7, Manfred Maier wrote:
Pushing once.
Is there a way to perform the calculations of 3rd party extensions for historic timestamps in the database?


Probably not without writing something equally custom.

The algorithms are (hopefully) well enough known to let a determined developer cook up some utility to do so.

Reply all
Reply to author
Forward
0 new messages