wee_database --update Error

54 views
Skip to first unread message

Joachim Puttkammer

unread,
Dec 25, 2022, 12:44:01 PM12/25/22
to weewx-user
Raspi4, Debian Buster, weewx 4.9.1, two instancen
Hello,
the command ended with an error:

sudo wee_database --config=/etc/weewx/dav.conf --update --dry-run
Using configuration file /etc/weewx/dav.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Preparing interval weighting fix...
Daily summary tables are at version 4.0
Interval weighting fix is not required.
Preparing maximum windSpeed fix...
This is a dry run: maximum windSpeed will be calculated but not saved.
Traceback (most recent call last):
  File "/usr/share/weewx/wee_database", line 1168, in <module>
    main()
  File "/usr/share/weewx/wee_database", line 232, in main
    update(config_dict, db_binding, options)
  File "/usr/share/weewx/wee_database", line 765, in update
    _fix_wind(config_dict, db_binding, options)
  File "/usr/share/weewx/wee_database", line 887, in _fix_wind
    wind_obj.run()
  File "/usr/share/weewx/weecfg/database.py", line 199, in run
    self.do_fix()
  File "/usr/share/weewx/weecfg/database.py", line 235, in do_fix
    for day_span in self.genSummaryDaySpans(tr_start_ts, tr_stop_ts, 'windSpeed'):
  File "/usr/share/weewx/weecfg/database.py", line 102, in genSummaryDaySpans
    yield weeutil.weeutil.archiveDaySpan(_row[0], grace=0)
TypeError: archiveDaySpan() got an unexpected keyword argument 'grace'

What to do?

Merry Christmas
Joachim

Tom Keffer

unread,
Dec 25, 2022, 1:35:11 PM12/25/22
to weewx...@googlegroups.com
My fault. The signature of archiveDaySpan() changed and I forgot to fix weecfg/database.py so it uses the new signature.

Replace /usr/share/weewx/weecfg/database.py with this version.

--
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/9507a9ee-4027-4e30-9a22-3c02b3218337n%40googlegroups.com.

Joachim Puttkammer

unread,
Dec 26, 2022, 8:45:22 AM12/26/22
to weewx-user
> Replace /usr/share/weewx/weecfg/database.py with this version.
it works without any error. thanks
Reply all
Reply to author
Forward
0 new messages