We need more information, like Python version, weewx version, etc. But it
appears to be complaining about enable = true. I don't have that in my
config setup.
[[MQTT]]
server_url = mqtt://user:pass@mqtt:8883/
topic = weather
unit_system = US
binding = archive, loop
aggregation = aggregate
[[[tls]]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt
On Tuesday, February 18, 2020 at 12:46:59 PM UTC-5, Nick wrote:
>
> Hi,
>
> I have been using WeeWx for several years to upload my data to
> Wunderground. I am trying to configure MQTT so that I can pull the
> information directly into my Home Automation system. When I try to
> configure using these (https://github.com/weewx/weewx/wiki/mqtt)
> instructions, it does not work and I get the following in the log:
>
> Feb 18 09:22:56 raspberrypi weewx[352]: engine: Caught unrecoverable
> exception in engine:
> Feb 18 09:22:56 raspberrypi weewx[352]: **** __init__() got an
> unexpected keyword argument 'enable'
> Feb 18 09:22:56 raspberrypi weewx[352]: **** Traceback (most recent
> call last):
> Feb 18 09:22:56 raspberrypi weewx[352]: **** File
> "/usr/share/weewx/weewx/engine.py", line 888, in main
> Feb 18 09:22:56 raspberrypi weewx[352]: **** engine =
> engine_class(config_dict)
> Feb 18 09:22:56 raspberrypi weewx[352]: **** File
> "/usr/share/weewx/weewx/engine.py", line 78, in __init__
> Feb 18 09:22:56 raspberrypi weewx[352]: ****
> self.loadServices(config_dict)
> Feb 18 09:22:56 raspberrypi weewx[352]: **** File
> "/usr/share/weewx/weewx/engine.py", line 142, in loadServices
> Feb 18 09:22:56 raspberrypi weewx[352]: ****
> self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
> Feb 18 09:22:56 raspberrypi weewx[352]: **** File
> "/usr/share/weewx/user/mqtt.py", line 240, in __init__
> Feb 18 09:22:56 raspberrypi weewx[352]: **** self.archive_thread
> = MQTTThread(self.archive_queue, **site_dict)
> Feb 18 09:22:56 raspberrypi weewx[352]: **** TypeError: __init__()
> got an unexpected keyword argument 'enable'
> Feb 18 09:22:56 raspberrypi weewx[352]: **** Exiting.
>
> I am using a Pi Zero W running raspbian buster lite and python version
> 2.7.16. WeeWx was installed using these (http://weewx.com/docs/debian.htm)
> instructions. Station hardware is an an Acu-Rite 02032C hooked up via USB.
>
> Configuration info I have is:
>
> [[MQTT]]
> enable = true
> server_url = mqtt://mqtt:[email protected]:1883/
> topic = weather
> unit_system = US
>
> and
>
> [Engine]
>
> [[Services]]
> # This section specifies the services that should be run. They are
> # grouped by type, and the order of services within each group
> # determines the order in which the services will be run.
> prep_services = weewx.engine.StdTimeSynch
> data_services = ,
> process_services = weewx.engine.StdConvert,
> weewx.engine.StdCalibrate, weewx.engine.StdQC,
> weewx.wxservices.StdWXCalculate
> archive_services = weewx.engine.StdArchive
> restful_services = weewx.restx.StdStationRegistry,
> weewx.restx.StdWunderground, weewx.restx.StdPWSweather,
> weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS,
> user.mqtt.MQTT
> report_services = weewx.engine.StdPrint, weewx.engine.StdReport
>
>
> Thanks in advance for the time and assistance.
>
--
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/53d84583-91bd-4ff0-b592-bb7ba508e95b%40googlegroups.com.