Combining reports from two databases

125 views
Skip to first unread message

George Alexander

unread,
Aug 6, 2020, 9:18:51 AM8/6/20
to weewx-user

Good evening,

I have been trying, thus far without success, to display the measurements from two separate databases of weewx on the one report. 

I have installed weewx using the setup.py method, and followed the instructions to allow multiple instances of weewx to run on the same ubuntu server - one called "fousb", the other "wh2950". Both are running fine (using only the simulator to provide input data initially while I prove the concept).

I then followed the instructions on binding a second database, the details of which are posted below. This has been done in the "fousb.conf' file to bind the 'wh2950' database to it. Running the "fousb" instance with debug=1 is producing no errors, however there appear to be no extra data fields or points from the WH2950 showing in the SeasonsReport html output for the fousb.

"fousb" has been restarted multiple times, and I have also deleted the fousb.sdb file and tried restarting it again too.  I'm sure I am missing something obvious; a pointer in the right direction would be a great help.

Thanks.



[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


    [[wh2950_binding]]
        # Binding for WH2950
        database = wh2950_sqlite
        # The name of the table within the databse
        table_name = archive
        # The class to manage the database
        manager = weewx.manager.DaySummaryManager
        # The schema defines the structure of the database contents
        schema = schemas.wview_extended.schema


##############################################################################


#   This section defines various databases.


[Databases]


    # A SQLite database is simply a single file
    [[archive_sqlite]]
        database_name = fousb.sdb
        database_type = SQLite


    [[wh2950_sqlite]]
        database_name = wh2950.sdb
        database_type = SQLite


    # MySQL
    [[archive_mysql]]
        database_name = fousb
        database_type = MySQL


Tom Keffer

unread,
Aug 6, 2020, 10:18:05 AM8/6/20
to weewx-user
You're leaving out a lot of details, in particular, how you are using the second database in your report.

But, is it possible that it is working, but the databases have identical content? After all, they both come from the simulator. You can use the tool sqlite3 to see what's in the databases.

--
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/11f37b5b-fb67-473f-aebb-79e26170140co%40googlegroups.com.

vince

unread,
Aug 6, 2020, 10:22:01 AM8/6/20
to weewx-user
On Thursday, August 6, 2020 at 6:18:51 AM UTC-7, George Alexander wrote:
I have been trying, thus far without success, to display the measurements from two separate databases of weewx on the one report. 



In your cheetah template simply add info telling it which db to pull from

   <td class="stats_data">$latest($data_binding='wh2950_binding').extraTemp1</td>

bjale...@gmail.com

unread,
Aug 7, 2020, 8:10:55 AM8/7/20
to weewx-user
Thanks for the reply, and my apologies for the lack of detail initially - at was just after 1AM when I wrote that, and i'd been staring at weewx forum posts for quite a few hours.

I have both a FOUSB WH1080 and a WH2950 here. The fousb outdoor unit has seen better days, but the indoor unit works well, and is connected via usb to my server, which both live in a room off the side of my garage. The WH2950 is new and I have it setup to get both the weather outdoors, and the conditions inside my house.

What I would like to be able to do is have a webpage (the SeasonsReport would be perfectly fine) that shows all the available sensor data from the WH2950, and also has the "inside temp" and "inside humidity" from the fousb shown on the same page. To that end, I managed to get two instances of weewx running on my server using the guide and I thought (somewhat naively it would seem) that once I had bound one database to the other, the report generator would add both sets of data together and produce one web page with all the sensor data from both weather stations.

I then went and changed from setup.py to a .deb install, due to some other issues I was having.  I followed MWALL's instructional post on how to get multiple instances running under a .deb install, but seem to have fallen at the last hurdle - getting it to run. I can invoke weewxd at the command line for each .conf file and they will both run happily, however I can't get them to run on startup or in the background. i've obviously mucked something up in the /etc/init.d/ files for each instance, i will have to solve that first before I come back to solving how to display data from two databases in one web report.

I followed the instructions in this link here but just substituted vantage and cc3000 with wh2950 and fousb. If anyone can see anything obviously wrong with those instructions, I'd love to hear it.

I've had weewx running for years with no issue, as long as i leave it alone...

Tom Keffer

unread,
Aug 7, 2020, 8:17:48 AM8/7/20
to weewx-user
We will need more details than "I can't get them to run..."

Please see the wiki article Help! Posting to weewx-user.

--
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.

bjale...@gmail.com

unread,
Aug 7, 2020, 8:35:04 AM8/7/20
to weewx-user
I do appreciate you patience, thanks.

I'd love to provide a log file, however when I try to start either of weewx-fousb or weewx-wh2950 using "weather@weewxserver:~$ sudo /etc/init.d/weewx-* start",  "tail -f /var/log/syslog" doesn't show any response at all, and the prompt shows "Starting weewx-fousb (via systemctl): weewx-fousb.service." then just goes back to " weather@weewxserver:~$ " - there are no errors, no nothing.

If I use  "sudo weewxd /etc/weewx/wh2950.conf" (or fousb.conf), it works as expected - but obviously only as long as I have that terminal window open.

sudo /etc/init.d/weewx status shows that it's not running, but I can't tell why.

weather@weewxserver:~$ sudo /etc/init.d/weewx status
● weewx.service - LSB: weewx weather system
     Loaded: loaded (/etc/init.d/weewx; generated)
     Active: active (exited) since Fri 2020-08-07 11:38:26 UTC; 54min ago
       Docs: man:systemd-sysv-generator(8)
      Tasks: 0 (limit: 9448)
     Memory: 0B
     CGroup: /system.slice/weewx.service

Aug 07 11:38:26 weewxserver systemd[1]: Starting LSB: weewx weather system...
Aug 07 11:38:26 weewxserver weewx[1138]:  * Starting weewx weather system weewx
Aug 07 11:38:26 weewxserver python3[1157]: weewx[1157] INFO __main__: Initializing weewx version 4.1.1
Aug 07 11:38:26 weewxserver python3[1157]: weewx[1157] INFO __main__: Using Python 3.8.2 (default, Jul 16 2020, 14:00:26)
                                           [GCC 9.3.0]
Aug 07 11:38:26 weewxserver python3[1157]: weewx[1157] INFO __main__: Platform Linux-5.4.0-42-generic-x86_64-with-glibc2.29
Aug 07 11:38:26 weewxserver python3[1157]: weewx[1157] INFO __main__: Locale is 'en_US.UTF-8'
Aug 07 11:38:26 weewxserver python3[1157]: weewx[1157] INFO __main__: PID file is /var/run/weewx.pid
Aug 07 11:38:26 weewxserver weewx[1138]:    ...done.
Aug 07 11:38:26 weewxserver systemd[1]: Started LSB: weewx weather system.
weather@weewxserver:~$

bjale...@gmail.com

unread,
Aug 8, 2020, 7:51:29 AM8/8/20
to weewx-user
Ok, back again. Clean version of Ubuntu Server 20, with a new install of weewx 4.1.1 installed via setup.py. Good so far.

Multiple instances configured, one using the FineOffSet driver (fousb), the other using the Interceptor (WH2950) - both running and producing separate reports with valid data that I can view via web browser.

I have then edited the wh2950.conf file to add a data binding to it from the fousb:

[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

    [[fousb_binding]]
        # Binding for WH1080 on fousb
        database = fousb_sqlite
        # The name of the table within the database
        table_name = archive
        # The class to manage the database
        manager = weewx.manager.DaySummaryManager
        # The schema defines to structure of the database contents
        schema = schemas.wview_extended.schema

##############################################################################

#   This section defines various databases.

[Databases]

    # A SQLite database is simply a single file
    [[archive_sqlite]]
        database_name = wh2950.sdb
        database_type = SQLite

    [[fousb_sqlite]]
        database_name = fousb.sdb
        database_type = SQlite

    # MySQL
    [[archive_mysql]]
        database_name = wh2950
        database_type = MySQL

When I restart the wh2950 instance, it starts without error - so far so good.

I then edited the Seasons skin.conf file and added the "daycompare" section as follows:

        [[[dayuv]]]
#            yscale = 0, 16, 1
            [[[[UV]]]]

        [[[daycompare]]]
           [[[[inTemp]]]]
               label = House inTemp
           [[[[fousbTemp]]]]
               data_type = inTemp
               data_binding = fousb_binding
               label = server inTemp

        [[[dayrx]]]
            yscale = 0.0, 100.0, 25.0
            [[[[rxCheckPercent]]]]

I then get the following error saying that the 'fousb_binding' is unknown:

Aug  8 11:30:25 weewxserver weewx-wh2950[26664] DEBUG weewx.reportengine: Running reports for latest time in the database.
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] DEBUG weewx.manager: Daily summary version is 2.0
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.34 seconds
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] DEBUG weewx.manager: Daily summary version is 2.0
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****  Unknown data binding ''fousb_binding''
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 632, in get_manager_dict_from_config
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      manager_dict = dict(config_dict['DataBindings'][data_binding])
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      val = dict.__getitem__(self, key)
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****  KeyError: 'fousb_binding'
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 197, in run
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      obj.start()
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 280, in start
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      self.run()
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 41, in run
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      self.genImages(self.gen_ts)
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 175, in genImages
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      db_manager = self.db_binder.get_manager(binding)
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 527, in get_manager
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      manager_dict = get_manager_dict_from_config(self.config_dict,
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 634, in get_manager_dict_from_config
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****      raise weewx.UnknownBinding("Unknown data binding '%s'" % e)
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****  weewx.UnknownBinding: Unknown data binding ''fousb_binding''
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] ERROR weewx.reportengine:         ****  Generator terminated
Aug  8 11:30:25 weewxserver weewx-wh2950[26664] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_html/wh2950

Hopefully there is a really obvious mistake that I can correct - i figure if I can get the 'daycompare' to work, i will be able to extrapolate that to the rest of the time intervals.

Thanks again, most appreciated.

Tom Keffer

unread,
Aug 8, 2020, 11:36:15 AM8/8/20
to weewx-user
I suspect the problem is that one of your instances is not getting the correct configuration file. However, I need to do a few tests to be sure. Give me a little time to sort this out...

bjale...@gmail.com

unread,
Aug 9, 2020, 6:55:29 AM8/9/20
to weewx-user
If it is of any value or help, I noticed the error is different this evening:

Aug  9 10:35:31 weewxserver weewx-wh2950[29583] INFO weewx.manager: Added record 2020-08-09 22:35:00 NZST (1596969300) to database 'wh2950.sdb'
Aug  9 10:35:31 weewxserver weewx-wh2950[29583] INFO weewx.manager: Added record 2020-08-09 22:35:00 NZST (1596969300) to daily summary in 'wh2950.sdb'
Aug  9 10:35:33 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Running reports for latest time in the database.
Aug  9 10:35:33 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Aug  9 10:35:33 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Aug  9 10:35:33 weewxserver weewx-wh2950[29583] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Aug  9 10:35:33 weewxserver weewx-wh2950[29583] DEBUG weewx.manager: Daily summary version is 2.0
Aug  9 10:35:33 weewxserver weewx-wh2950[29583] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.36 seconds
Aug  9 10:35:33 weewxserver weewx-wh2950[29583] DEBUG weewx.manager: Daily summary version is 2.0
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****  database_type
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 197, in run
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****      obj.start()
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 280, in start
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****      self.run()
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 41, in run
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****      self.genImages(self.gen_ts)
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 175, in genImages
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****      db_manager = self.db_binder.get_manager(binding)
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 527, in get_manager
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****      manager_dict = get_manager_dict_from_config(self.config_dict,
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 643, in get_manager_dict_from_config
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****      manager_dict['database_dict'] = get_database_dict_from_config(config_dict,
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 611, in get_database_dict_from_config
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****      raise weewx.UnknownDatabaseType('database_type')
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****  weewx.UnknownDatabaseType: database_type
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] ERROR weewx.reportengine:         ****  Generator terminated
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_html/wh2950
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
Aug  9 10:35:34 weewxserver weewx-wh2950[29583] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Aug  9 10:35:43 weewxserver weewx-wh2950[29583] DEBUG user.interceptor: empty queue
Aug  9 10:35:44 weewxserver weewx-fousb[29629] INFO weewx.manager: Added record 2020-08-09 22:35:00 NZST (1596969300) to database 'fousb.sdb'
Aug  9 10:35:44 weewxserver weewx-fousb[29629] INFO weewx.manager: Added record 2020-08-09 22:35:00 NZST (1596969300) to daily summary in 'fousb.sdb'
Aug  9 10:35:46 weewxserver weewx-fousb[29629] DEBUG weewx.reportengine: Running reports for latest time in the database.
Aug  9 10:35:46 weewxserver weewx-fousb[29629] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Aug  9 10:35:46 weewxserver weewx-fousb[29629] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Aug  9 10:35:46 weewxserver weewx-fousb[29629] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Aug  9 10:35:46 weewxserver weewx-fousb[29629] DEBUG weewx.manager: Daily summary version is 2.0
Aug  9 10:35:47 weewxserver weewx-fousb[29629] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.33 seconds
Aug  9 10:35:47 weewxserver weewx-fousb[29629] DEBUG weewx.manager: Daily summary version is 2.0
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  Unknown data binding ''fousb_binding''
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 632, in get_manager_dict_from_config
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      manager_dict = dict(config_dict['DataBindings'][data_binding])
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      val = dict.__getitem__(self, key)
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  KeyError: 'fousb_binding'
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 197, in run
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      obj.start()
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 280, in start
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      self.run()
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 41, in run
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      self.genImages(self.gen_ts)
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 175, in genImages
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      db_manager = self.db_binder.get_manager(binding)
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 527, in get_manager
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      manager_dict = get_manager_dict_from_config(self.config_dict,
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/manager.py", line 634, in get_manager_dict_from_config
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****      raise weewx.UnknownBinding("Unknown data binding '%s'" % e)
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  weewx.UnknownBinding: Unknown data binding ''fousb_binding''
Aug  9 10:35:47 weewxserver weewx-fousb[29629] ERROR weewx.reportengine:         ****  Generator terminated
Aug  9 10:35:47 weewxserver weewx-fousb[29629] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_html/fousb

I had edited both config files (by changing the station name only - as they were initially identical, it was hard to see at a glance which station a web report was for). After a restart, I had another look at the syslog to check things and noticed the change in error for the wh2950 instance.

I understand why the "weewx-fousb" instance will be having the Unknown.Binding error - there is nothing in it's config file about extra databases or bindings, so when the skin calls it out, it errors. I don't particularly think I need to worry about this, as I don't intend on using the web reports from the fousb instance, just the inTemp and inHumidity data from it.

Hopefully the differing error from the wh2950 instance is of some help though.

Thanks.




Reply all
Reply to author
Forward
0 new messages