Wind Data Missing

124 views
Skip to first unread message

Andre

unread,
Jul 10, 2020, 10:26:46 AM7/10/20
to weewx-user
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. 
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.

Can someone help me to solve the problem?

Best regards, Andre



Tom Keffer

unread,
Jul 10, 2020, 9:26:02 PM7/10/20
to weewx-user
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

--
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/eecad34a-41b2-4087-9221-460fffce4ee9o%40googlegroups.com.

Andre

unread,
Jul 11, 2020, 1:57:07 AM7/11/20
to weewx-user
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 <agoet...@gmail.com> 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. 
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.

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 weewx...@googlegroups.com.
syslog.txt

Tom Keffer

unread,
Jul 11, 2020, 8:16:43 AM7/11/20
to weewx-user
It looks like you are using a custom schema. May we see it? It should be in /usr/share/weewx/user/extensions.py

-tk

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/d559ad6e-6e58-48aa-9efb-81cea691da02o%40googlegroups.com.

Andre

unread,
Jul 11, 2020, 8:57:29 AM7/11/20
to weewx-user
This is the /usr/share/weewx/user/extensions.py

#
#    Copyright (c) 2009-2015 Tom Keffer <tke...@gmail.com>
#
#    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')]

Tom Keffer

unread,
Jul 11, 2020, 1:59:05 PM7/11/20
to weewx-user
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 

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/4feb1c39-961a-4ee5-a34d-151524e92bbco%40googlegroups.com.

Andre

unread,
Jul 11, 2020, 2:18:49 PM7/11/20
to weewx-user
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'

Tom Keffer

unread,
Jul 11, 2020, 2:21:19 PM7/11/20
to weewx-user
My apologies. The option should be

        manager = weewx.wxmanager.WXDaySummaryManager

-tk

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/a1ef01f9-0130-4a32-91b4-a6eff83e757do%40googlegroups.com.

Andre

unread,
Jul 11, 2020, 2:40:21 PM7/11/20
to weewx-user
Thank you very much, dear Tom.
Now it works as expected.
I learned more about weewx again.

Best regards, Andre
Reply all
Reply to author
Forward
0 new messages