Getting data from a second binding to generate graphs

101 views
Skip to first unread message

Keith Terry

unread,
May 2, 2026, 10:31:43 AM (9 days ago) May 2
to weewx-user
My regular data does not include inside temperature or humidity. I run a second Weewx instance that does. To display data in the first Weewx instance i use a second data binding.I called we_binding.  I added this binding to the skin.conf but no graphs are being generated. The current conditions does show the current inside temperature and humidity. Here is what I modified in skin.conf:

        [[[daytempin]]]
           [[[[inTemp]]]]
                data_binding = wu_binding

       [[[dayhumin]]]
           [[[[inHumidity]]]]
                data_binding = wu_binding

Any idea why graphs of these 2 conditions are not generating?

Tom Keffer

unread,
May 2, 2026, 5:05:36 PM (9 days ago) May 2
to weewx...@googlegroups.com
This should work but it all depends, of course, on the definition of `wu_binding`. Can you show us your [DataBindings] and [Databases] section of weewx.conf?

You should also set debug=1, restart weewx, let it run through a reporting cycle, then check your logs. There may be a clue there.

--
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 visit https://groups.google.com/d/msgid/weewx-user/1f2d1800-357f-491d-9f72-62ed4bbadd42n%40googlegroups.com.

Keith Terry

unread,
May 3, 2026, 7:29:05 AM (8 days ago) May 3
to weewx-user
Hi Tom,

[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 = weewx.schemas.wview_extended.schema
    [[wu_binding]]
        database = wu_mysql
        table_name = archive
        manager = weewx.wxmanager.WXDaySummaryManager
        schema = weewx.schemas.wview_extended.schema
    [[forecast_binding]]
        manager = weewx.manager.Manager
        schema = user.forecast.schema
        table_name = archive
        database = forecast_sqlite
   
    [[climate_binding]]
        # The climate database must match one of the sections in [Databases].
        database = climate_sqlite
        # The name of the table within the database.
        table_name = climate_data
        # Specialized databases manager used by the extension
        manager = user.climate.climate.StatsManager


[Databases]
   
    # A SQLite database is simply a single file.
    [[archive_sqlite]]
        database_name = weewx.sdb
        database_type = SQLite
   
    # MySQL
    [[archive_mysql]]
        database_name = weewx
        database_type = MySQL
   
    [[wu_mysql]]
        database_name = weewx3
        database_type = MySQL

    [[forecast_sqlite]]
        database_name = forecast.sdb
        database_type = SQLite
   
    # The store for climatological data.
    [[climate_sqlite]]
        database_name = climate.sdb
        database_type = SQLite


No errors when I set the log to debug. The strange thing is the current settings do display the inside temperature and humitdity so Weewx is able to access the data:

        <tr>
        <td class="label">$obs.label.inTemp</td>
        <td class="data">$latest($data_binding='wu_binding').inTemp</td>
      </tr>
        <tr>
        <td class="label">$obs.label.inHumidity</td>
        <td class="data">$latest($data_binding='wu_binding').inHumidity</td>
      </tr>
   

Keith 

Tom Keffer

unread,
May 3, 2026, 4:06:18 PM (8 days ago) May 3
to weewx...@googlegroups.com
I think you're getting hit by this bug in the Seasons skin, which unfortunately never got fixed. It's a hard problem.

There is a workaround solution in this thread.

My apologies.

Keith Terry

unread,
May 4, 2026, 2:06:48 PM (7 days ago) May 4
to weewx-user
The workaround did the trick. Thank you for the assistance.
Reply all
Reply to author
Forward
0 new messages