Feb 28 11:16:09 hanuri weewx[14836]: cheetahgenerator: Generate failed with exception '<class 'weedb.OperationalError'>'
Feb 28 11:16:09 hanuri weewx[14836]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Rouhunsaa/index.html.tmpl
Feb 28 11:16:09 hanuri weewx[14836]: cheetahgenerator: **** Reason: (1054, "Unknown column 'usUnits' in 'field list'")
Feb 28 11:16:09 hanuri weewx[14836]: **** Traceback (most recent call last):
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 296, in generate
Feb 28 11:16:09 hanuri weewx[14836]: **** print >> _file, text
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/lib/pymodules/python2.6/Cheetah/Template.py", line 1005, in __str__
Feb 28 11:16:09 hanuri weewx[14836]: **** rc = getattr(self, mainMethName)()
Feb 28 11:16:09 hanuri weewx[14836]: **** File "_etc_weewx_skins_Rouhunsaa_index_html_tmpl.py", line 427, in respond
Feb 28 11:16:09 hanuri weewx[14836]: **** File "_etc_weewx_skins_Rouhunsaa_index_html_tmpl.py", line 189, in __errorCatcher18
Feb 28 11:16:09 hanuri weewx[14836]: **** File "<string>", line 1, in <module>
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/tags.py", line 65, in latest
Feb 28 11:16:09 hanuri weewx[14836]: **** manager = self.db_lookup(data_binding)
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/manager.py", line 846, in db_lookup
Feb 28 11:16:09 hanuri weewx[14836]: **** return self.get_manager(data_binding)
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/manager.py", line 833, in get_manager
Feb 28 11:16:09 hanuri weewx[14836]: **** self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/manager.py", line 918, in open_manager
Feb 28 11:16:09 hanuri weewx[14836]: **** manager_dict['table_name'])
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/manager.py", line 103, in open
Feb 28 11:16:09 hanuri weewx[14836]: **** dbmanager = cls(connection, table_name)
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/manager.py", line 85, in __init__
Feb 28 11:16:09 hanuri weewx[14836]: **** self._sync()
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/manager.py", line 191, in _sync
Feb 28 11:16:09 hanuri weewx[14836]: **** _row = self.getSql("SELECT usUnits FROM %s LIMIT 1;" % self.table_name)
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weewx/manager.py", line 380, in getSql
Feb 28 11:16:09 hanuri weewx[14836]: **** _cursor.execute(sql, sqlargs)
Feb 28 11:16:09 hanuri weewx[14836]: **** File "/usr/share/weewx/weedb/mysql.py", line 30, in guarded_fn
Feb 28 11:16:09 hanuri weewx[14836]: **** raise weedb.OperationalError(e)
Feb 28 11:16:09 hanuri weewx[14836]: **** OperationalError: (1054, "Unknown column 'usUnits' in 'field list'")
Then I temporarily modified the database name to the binding name in weewx.conf (SBFspot -> SBFspot_mysql), and it surely tries to connect to the db but of course fails:
Would it suffice if I add a column 'usUnits' into the SBFspot db table? Might of course break something on SBFspot side...