I have raspbian on a pi3b with previously working FineOffsetUSB wh1080 station. I broke several things with some bad updates and at the same time the batteries on the usb unit went flat. After changing them the station appeared to be in the lockup problem (similar to
https://github.com/weewx/weewx/wiki/FineOffset-USB-lockup).
I did a full apt-get remove / autoremove / removed the configs and data folders, rebooted, updated and apt-get install weewx again. This did not generate any errors.
the /etc/weewx/weewx.conf file was not written at all.
[Station]
station_type = FineOffsetUSB
[StdArchive]
record_generation = software
[FineOffsetUSB]
model = WH1010
polling_mode = PERIODIC
polling_interval = 60
manually trying to run weewx with this config yields:
pi@raspberrypi:/etc/weewx $ sudo weewxd ./weewx.conf
Traceback (most recent call last):
File "/usr/bin/weewxd", line 64, in <module>
weewx.engine.main(options, args)
File "/usr/share/weewx/weewx/engine.py", line 888, in main
engine = engine_class(config_dict)
File "/usr/share/weewx/weewx/engine.py", line 72, in __init__
self.setupStation(config_dict)
File "/usr/share/weewx/weewx/engine.py", line 90, in setupStation
driver = config_dict[stationType]['driver']
File "/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__
val = dict.__getitem__(self, key)
KeyError: 'driver'
Modifying the config so that the driver is specified in the FineOffsetUSB section
driver = weewx.drivers.fousb
then re-running the program manually now yields
pi@raspberrypi:/etc/weewx $ sudo weewxd ./weewx.conf
Traceback (most recent call last):
File "/usr/bin/weewxd", line 64, in <module>
weewx.engine.main(options, args)
File "/usr/share/weewx/weewx/engine.py", line 888, in main
engine = engine_class(config_dict)
File "/usr/share/weewx/weewx/engine.py", line 78, in __init__
self.loadServices(config_dict)
File "/usr/share/weewx/weewx/engine.py", line 142, in loadServices
self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
File "/usr/share/weewx/weewx/engine.py", line 500, in __init__
self.setup_database(config_dict)
File "/usr/share/weewx/weewx/engine.py", line 608, in setup_database
dbmanager = self.engine.db_binder.get_manager(self.data_binding, initialize=True)
File "/usr/share/weewx/weewx/manager.py", line 871, in get_manager
default_binding_dict=defaults)
File "/usr/share/weewx/weewx/manager.py", line 1002, in get_manager_dict_from_config
manager_dict['schema'] = weeutil.weeutil._get_object(schema_name)
File "/usr/share/weewx/weeutil/weeutil.py", line 1107, in _get_object
mod = __import__(module)
ImportError: No module named wview_extended
I can't get the config to run. Worried that it didn't install properly even after a full reinstall and wondering why not.