Hi,
This is my [StdArchive] section of my klp.conf file.
##############################################################################
# This section is for configuring the archive service.
[StdArchive]
# If the station hardware supports data logging then the archive
interval
# will be downloaded from the station. Otherwise, specify it (in
seconds).
archive_interval = 300
# If possible, new archive records are downloaded from the station
# hardware. If the hardware does not support this, then new archive
# records will be generated in software.
# Set the following to "software" to force software record generation.
record_generation = software
# Whether to include LOOP data in hi/low statistics
loop_hilo = True
# The data binding used to save archive records
data_binding = kl_binding
# Whether to log successful archive operations
log_success = True
# Whether to log unsuccessful archive operations
log_failure = True
##############################################################################
[email protected] schrieb am Donnerstag, 20. Mai 2021 um 23:31:07
UTC+2:
> your [StdArchive] section in weewx.conf should look like this
>
> [StdArchive]
>
> # If the station hardware supports data logging then the archive
> interval
> # will be downloaded from the station. Otherwise, specify it (in
> seconds).
> archive_interval = 60
>
> # If possible, new archive records are downloaded from the station
> # hardware. If the hardware does not support this, then new archive
> # records will be generated in software.
> # Set the following to "software" to force software record generation.
> record_generation = hardware
>
> # Whether to include LOOP data in hi/low statistics
> loop_hilo = True
>
> # The data binding used to save archive records
> data_binding = kl_binding
>
> if there is still "data_binding = wx_binding", then that's the cause of
> the error
> On 20.05.2021 22:34, gjr80 wrote:
>
> Hi,
>
> What binding have you specified under [StdArchive]? You should also be
> looking at the startup log for the weewx-klp instance to see what bindings
> are being used. I am guessing this is reproducible? I would set debug = 1
> in the WeeWX config file used by weewx-klp and restart weewx-klp. The
> startup log will indicate what bindings are being used. When the error
> occurs we should be able to work out the context in which the binding is
> being used, that may give a clue. WeeWX defaults to using wx_binding if no
> binding is specified for some operations, so that is possibly the source of
> wx_binding.
>
> WeeWX should work if wx_binding is not specified (provided another binding
> is specified), if it doesn’t it’s a bug that should be fixed.
>
> Gary
> On Thursday, 20 May 2021 at 22:06:50 UTC+10 weerman wrote:
>
>> Hi all,
>>
>> I'm trying to run both klimalogg pro and Fine Offset WH 1080 on my rbp 2.
>> It has worked before, but four weeks ago my rp2 froze so i had to set it up
>> again including weewx.
>>
>> Since then i got this error from my klp installation.
>>
>> *May 20 13:52:04 raspberrypi weewx-fineoffset[30390] INFO weewx.restx:
>> StationRegistry: Published record 2021-05-20 13:41:59 CEST (1621510919)*
>> *May 20 13:52:04 raspberrypi weewx-fineoffset[30390] INFO weewx.engine:
>> Starting main packet loop.*
>> *May 20 13:52:05 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.drivers.fousb: station status {'unknown': 0, 'rain_overflow': 0,
>> 'lost_connection': 0} (0)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] ERROR user.kl: unable to
>> terminate RF thread after 60 seconds*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: Caught
>> unrecoverable exception:*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> Unknown data binding ''wx_binding''*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> Traceback (most recent call last):*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/home/weewx/bin/weewx/manager.py", line 686, in
>> get_manager_dict_from_config*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> manager_dict = dict(config_dict['DataBindings'][data_binding])*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/usr/lib/python3/dist-packages/configobj.py", line 554, in
>> __getitem__*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> val = dict.__getitem__(self, key)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> KeyError: 'wx_binding'*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: *****
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> During handling of the above exception, another exception occurred:*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: *****
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> Traceback (most recent call last):*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/home/weewx/bin/weewxd", line 151, in main*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> engine = weewx.engine.StdEngine(config_dict)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/home/weewx/bin/weewx/engine.py", line 93, in __init__*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> self.loadServices(config_dict)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/home/weewx/bin/weewx/engine.py", line 161, in loadServices*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> obj = weeutil.weeutil.get_object(svc)(self, config_dict)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/home/weewx/bin/weewx/wxservices.py", line 91, in __init__*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> self.db_manager =
>> engine.db_binder.get_manager(data_binding=data_binding, initialize=True)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/home/weewx/bin/weewx/manager.py", line 583, in get_manager*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> default_binding_dict=defaults)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> File "/home/weewx/bin/weewx/manager.py", line 688, in
>> get_manager_dict_from_config*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> raise weewx.UnknownBinding("Unknown data binding '%s'" % e)*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> weewx.UnknownBinding: Unknown data binding ''wx_binding''*
>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: ****
>> Exiting.*
>> *May 20 13:56:06 raspberrypi weewx-fineoffset[30390] INFO weewx.manager:
>> Added record 2021-05-20 13:55:00 CEST (1621511700) to database 'weewx.sdb'*
>> *May 20 13:56:06 raspberrypi weewx-fineoffset[30390] INFO weewx.manager:
>> Added record 2021-05-20 13:55:00 CEST (1621511700) to daily summary in
>> 'weewx.sdb'*
>> *May 20 13:56:14 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 6.44
>> seconds*
>> *May 20 13:56:15 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.50
>> seconds*
>> *May 20 13:56:15 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.reportengine: Copied 5 files to /home/weewx/public_html*
>> *May 20 13:56:17 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.cheetahgenerator: Generated 7 files for report SmartphoneReport in
>> 1.79 seconds*
>> *May 20 13:56:17 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.imagegenerator: Generated 6 images for report SmartphoneReport in
>> 0.52 seconds*
>> *May 20 13:56:17 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.reportengine: Copied 6 files to /home/weewx/public_html/smartphone*
>> *May 20 13:56:18 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.cheetahgenerator: Generated 1 files for report MobileReport in 0.17
>> seconds*
>> *May 20 13:56:18 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.imagegenerator: Generated 4 images for report MobileReport in 0.38
>> seconds*
>> *May 20 13:56:18 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.reportengine: Copied 2 files to /home/weewx/public_html/mobile*
>> *May 20 13:56:26 raspberrypi weewx-fineoffset[30390] INFO
>> weewx.reportengine: ftpgenerator: Ftp'd 35 files in 8.29 seconds*
>>
>> As far as i understand the error, something seems to be wrong in the
>> binding section, it should be "kl_binding" for the klima logg pro and it
>> says so in the klp config file
>> as you can see here:
>>
>>
>> *##############################################################################*
>>
>> *# This section binds a data store to a database.*
>>
>> *[DataBindings]*
>>
>> * [[kl_binding]]*
>> * schema = user.kl.schema*
>> * table_name = archive*
>> * database = kl_sqlite*
>> * manager = weewx.wxmanager.WXDaySummaryManager*
>>
>>
>> *##############################################################################*
>>
>> *# This section defines various databases.*
>>
>> *[Databases]*
>>
>> * # A SQLite database is simply a single file*
>> * [[archive_sqlite]]*
>> * database_name = klp.sdb*
>> * database_type = SQLite*
>>
>> * # MySQL*
>> * [[archive_mysql]]*
>> * database_name = klp*
>> * database_type = MySQL*
>>
>>
>> *##############################################################################*
>>
>> *# This section defines defaults for the different types of databases.*
>>
>> *[DatabaseTypes]*
>>
>> * # Defaults for SQLite databases*
>> * [[SQLite]]*
>> * driver = weedb.sqlite*
>> * # Directory in which the database files are located*
>> * SQLITE_ROOT = %(WEEWX_ROOT)s/archive*
>>
>> * # Defaults for MySQL databases*
>> * [[MySQL]]*
>> * driver = weedb.mysql*
>> * # The host where the database is located*
>> * host = localhost*
>> * # The user name for logging in to the host*
>> * user = weewx*
>> * # The password for the user name (quotes guard against parsing
>> errors)*
>> * password = weewx*
>>
>>
>> *##############################################################################*
>>
>> *# This section configures the internal weewx engine.*
>>
>> *[Engine]*
>>
>> * # The following section specifies which services should be run and
>> in what order.*
>> * [[Services]]*
>> * prep_services = weewx.engine.StdTimeSynch*
>> * data_services = ,*
>> * process_services = weewx.engine.StdConvert,
>> weewx.engine.StdCalibrate, weewx.engine.StdQC,
>> weewx.wxservices.StdWXCalculate*
>> * xtype_services = weewx.wxxtypes.StdWXXTypes,
>> weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater,
>> weewx.wxxtypes.StdDelta*
>> * archive_services = weewx.engine.StdArchive*
>> * restful_services = weewx.restx.StdStationRegistry,
>> weewx.restx.StdWunderground, weewx.restx.StdPWSweather,
>> weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS*
>> * report_services = weewx.engine.StdPrint, weewx.engine.StdReport*
>>
>> Anyone having an idea what i could do?
>>
>> Thanks
>>
>> Georg
>>
> --
>
> 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/6dc7249d-1b27-4efa-becc-a6a2225a83fan%40googlegroups.com
>
> <https://groups.google.com/d/msgid/weewx-user/6dc7249d-1b27-4efa-becc-a6a2225a83fan%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/f476836b-ef9b-44cb-8e05-c6cb047e6f34n%40googlegroups.com.