Thanks for your help, Tom.
I got following message:
pi@weewx:~ $ sudo wee_database --rebuild-daily
Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database
'archive_sqlite'
All daily summaries will be rebuilt.
Proceed (y/n)? y
Traceback (most recent call last):
File "/usr/share/weewx/weeutil/weeutil.py", line 1098, in get_object
mod = getattr(mod, part)
AttributeError: module 'weewx.manager' has no attribute
'WXDaySummaryManager'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/weewx/wee_database", line 974, in <module>
main()
File "/usr/share/weewx/wee_database", line 169, in main
rebuildDaily(config_dict, db_binding, options)
File "/usr/share/weewx/wee_database", line 264, in rebuildDaily
with weewx.manager.open_manager_with_config(config_dict, db_binding,
initialize=True) as dbmanager:
File "/usr/share/weewx/weewx/manager.py", line 692, in
open_manager_with_config
return open_manager(manager_dict, initialize)
File "/usr/share/weewx/weewx/manager.py", line 676, in open_manager
manager_cls = weeutil.weeutil.get_object(manager_dict['manager'])
File "/usr/share/weewx/weeutil/weeutil.py", line 1102, in get_object
"Module '%s' has no attribute '%s' when searching for '%s'" % (mod.
__name__, part, module_class))
AttributeError: Module 'weewx.manager' has no attribute
'WXDaySummaryManager' when searching for 'weewx.manager.WXDaySummaryManager'
Am Samstag, 11. Juli 2020 19:59:05 UTC+2 schrieb Tom Keffer:
>
> It's a subtle error, but you're mixing the old style way of specifying and
> managing a schema with the new way. Try changing the [DataBindings] section
> to look like this:
>
> [DataBindings]
>
> [[wx_binding]]
> # The database must match one of the sections in [Databases].
> # This is likely to be the only option you would want to change.
> database = archive_sqlite
> # The name of the table within the database
> table_name = archive
> # The manager handles aggregation of data for historical summaries
> manager = weewx.manager.WXDaySummaryManager
> # The schema defines the structure of the database.
> # It is *only* used when the database is created.
> #schema = schemas.wview_extended.schema
> schema = user.extensions.schema_extended
>
> Then try rebuilding the daily summaries.
>
> Sorry. We really should have a better error message.
>
> -tk
>
>
> In
>
> On Sat, Jul 11, 2020 at 5:57 AM Andre <[email protected] <javascript:>>
> wrote:
>
>> This is the /usr/share/weewx/user/extensions.py
>>
>> #
>> # Copyright (c) 2009-2015 Tom Keffer <[email protected] <javascript:>>
>> #
>> # See the file LICENSE.txt for your full rights.
>> #
>>
>>
>> """User extensions module
>>
>>
>> This module is imported from the main executable, so anything put here
>> will be
>> executed before anything else happens. This makes it a good place to put
>> user
>> extensions.
>> """
>>
>>
>> import locale
>> # This will use the locale specified by the environment variable 'LANG'
>> # Other options are possible. See:
>> # http://docs.python.org/2/library/locale.html#locale.setlocale
>> locale.setlocale(locale.LC_ALL, '')
>>
>>
>> import schemas.wview
>> schema_extended = schemas.wview.schema + [('appTemp', 'REAL'), ('windrun'
>> , 'REAL')]
>>
>>
>>
>>
>>
>>
>> Am Samstag, 11. Juli 2020 14:16:43 UTC+2 schrieb Tom Keffer:
>>>
>>> It looks like you are using a custom schema. May we see it? It should be
>>> in /usr/share/weewx/user/extensions.py
>>>
>>> -tk
>>>
>>> On Fri, Jul 10, 2020 at 10:57 PM Andre <[email protected]> wrote:
>>>
>>>> Thanks for reply, Tom.
>>>>
>>>> Here is my
>>>> [DataBindings]
>>>>
>>>> [[wx_binding]]
>>>> # The database must match one of the sections in [Databases].
>>>> # This is likely to be the only option you would want to
>>>> change.
>>>> database = archive_sqlite
>>>> # The name of the table within the database
>>>> table_name = archive
>>>> # The manager handles aggregation of data for historical
>>>> summaries
>>>> manager = weewx.manager.DaySummaryManager
>>>> # The schema defines the structure of the database.
>>>> # It is *only* used when the database is created.
>>>> #schema = schemas.wview_extended.schema
>>>> schema = user.extensions.schema_extended
>>>>
>>>>
>>>> Am Samstag, 11. Juli 2020 03:26:02 UTC+2 schrieb Tom Keffer:
>>>>>
>>>>> You did not include a log, but on the basis of similar problems, I
>>>>> would bet that you used the wrong combination of schema and 'manager' in
>>>>> your configuration file, weewx.conf.
>>>>>
>>>>> Please post the section [DataBindings] in weewx.conf
>>>>>
>>>>> -tk
>>>>>
>>>>> On Fri, Jul 10, 2020 at 7:26 AM Andre <[email protected]> wrote:
>>>>>
>>>>>> Hardware: Davis Vantage Vue
>>>>>> Raspberry Pi 4: Install with DEB package
>>>>>> WeeWX: 4.1.1
>>>>>> Skin: Belchertown 1.2b6
>>>>>>
>>>>>> Actually, I just wanted to quickly correct a too high value of the
>>>>>> rain rate. So I did:
>>>>>>
>>>>>> 1. wee_database --drop-daily
>>>>>> 2. wee_database --rebuild-daily
>>>>>> 3. wee_database --update
>>>>>>
>>>>>> After that the too high rain rate value was corrected, but the
>>>>>> "snapshot" area in the Belchertown skin did not work anymore.
>>>>>> [image: weewx01.png]
>>>>>>
>>>>>> So I uninstalled and reinstalled the Belchertown skin. After that
>>>>>> everything worked as desired, but now the wind values were missing. Also
>>>>>> the NOAA files were completely missing the wind data.
>>>>>>
>>>>>> I deleted all NOAA files and hoped that the wind data would be
>>>>>> generated. Unfortunately without success.
>>>>>> http://www.wetter-norderstedt.de/NOAA/NOAA-2020-07.txt
>>>>>>
>>>>>> Can someone help me to solve the problem?
>>>>>>
>>>>>> Best regards, Andre
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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 [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/weewx-user/eecad34a-41b2-4087-9221-460fffce4ee9o%40googlegroups.com
>>>>>>
>>>>>> <https://groups.google.com/d/msgid/weewx-user/eecad34a-41b2-4087-9221-460fffce4ee9o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> 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 [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-user/d559ad6e-6e58-48aa-9efb-81cea691da02o%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/weewx-user/d559ad6e-6e58-48aa-9efb-81cea691da02o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/4feb1c39-961a-4ee5-a34d-151524e92bbco%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/4feb1c39-961a-4ee5-a34d-151524e92bbco%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/a1ef01f9-0130-4a32-91b4-a6eff83e757do%40googlegroups.com.