The error trace is exactly correct; you do not have a binding named weewx_tide, that is the name of your database. Your binding is tide_binding. Presumably you are trying to use your binding in tag(s) in a report, in that case you need to look at the tags and ensure you are using tide_binding as your binding.
Gary On Saturday, 14 January 2023 at 17:39:07 UTC+10 [email protected] wrote: > sorry, but I couldn't find any documentation for this. I tried to mimic > the changes made by Cmon, but obviously that's not enough. > > Le samedi 14 janvier 2023 à 08:33:59 UTC+1, [email protected] a écrit : > >> Hello everyone; >> >> For different reasons, I need to create a new database in which I would >> draw data to feed my weather page. A bit like Cmon. >> >> Everything is ready except that weewx does not recognize it. >> >> Jan 13 19:10:23 raspberrypi weewx[5806] ERROR weewx.reportengine: >> **** raise weewx.UnknownBinding("Unknown data binding '%s'" % e) >> Jan 13 19:10:23 raspberrypi weewx[5806] ERROR weewx.reportengine: >> **** weewx.UnknownBinding: Unknown data binding ''weewx_tide'' >> >> My modified weewx.conf : >> >> [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.wxmanager.WXDaySummaryManager >> # The schema defines the structure of the database. >> # It is *only* used when the database is created. >> schema = user.extensions.schema_extended >> [[cmon_binding]] >> database = cmon_sqlite >> table_name = archive >> manager = weewx.manager.DaySummaryManager >> schema = user.cmon.schema >> [[tide_binding]] >> database = tide_sqlite >> table_name = archive >> manager = weewx.wxmanager.WXDaySummaryManager >> schema = user.extensions.schema_extended >> >> >> ############################################################################## >> >> # This section defines various databases. >> >> [Databases] >> >> # A SQLite database is simply a single file >> [[archive_sqlite]] >> database_name = weewx.sdb >> database_type = SQLite >> [[tide_sqlite]] >> database_name = weewx_tide.sdb >> database_type = SQLite >> >> # MySQL >> [[archive_mysql]] >> database_name = weewx >> database_type = MySQL >> [[cmon_sqlite]] >> database_type = SQLite >> database_name = cmon.sdb >> > -- 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/9075d244-be87-43d5-bd56-82250bc22cb1n%40googlegroups.com.
