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/7a699d20-979b-4835-b631-50bbc5b76df8n%40googlegroups.com.

Reply via email to