Hi Pat, I think this one may be for you ...
As per the above and below, I get the no module error setting up MQTT. I've
sanitised the the username and password to the MQTT service in the extract
of weewx.conf below, otherwise hopefully it's all as per your Github
instructions.
Aug 26 13:10:14 raspberrypi weewx[3191]: manager: Starting backfill of
daily summaries
Aug 26 13:10:14 raspberrypi weewx[3191]: restx: StationRegistry:
Registration not requested.
Aug 26 13:10:14 raspberrypi weewx[3191]: restx: Wunderground: Posting not
enabled.
Aug 26 13:10:14 raspberrypi weewx[3191]: restx: PWSweather: Posting not
enabled.
Aug 26 13:10:14 raspberrypi weewx[3191]: restx: CWOP: Posting not enabled.
Aug 26 13:10:14 raspberrypi weewx[3191]: restx: WOW: Posting not enabled.
Aug 26 13:10:14 raspberrypi weewx[3191]: restx: AWEKAS: Posting not enabled.
Aug 26 13:10:14 raspberrypi weewx[3191]: engine: Caught unrecoverable
exception in engine:
Aug 26 13:10:14 raspberrypi weewx[3191]: **** No module named mqtt
Aug 26 13:10:14 raspberrypi weewx[3191]: **** Traceback (most recent
call last):
Aug 26 13:10:14 raspberrypi weewx[3191]: **** File
"/usr/share/weewx/weewx/engine.py", line 871, in main
Aug 26 13:10:14 raspberrypi weewx[3191]: **** engine =
engine_class(config_dict)
Aug 26 13:10:14 raspberrypi weewx[3191]: **** File
"/usr/share/weewx/weewx/engine.py", line 78, in __init__
Aug 26 13:10:14 raspberrypi weewx[3191]: ****
self.loadServices(config_dict)
Aug 26 13:10:14 raspberrypi weewx[3191]: **** File
"/usr/share/weewx/weewx/engine.py", line 142, in loadServices
Aug 26 13:10:14 raspberrypi weewx[3191]: ****
self.service_obj.append(weeutil.weeutil._get_object(svc)(self,
config_dict))
Aug 26 13:10:14 raspberrypi weewx[3191]: **** File
"/usr/share/weewx/weeutil/weeutil.py", line 1132, in _get_object
Aug 26 13:10:14 raspberrypi weewx[3191]: **** mod =
__import__(module)
Aug 26 13:10:14 raspberrypi weewx[3191]: **** ImportError: No module
named mqtt
Aug 26 13:10:14 raspberrypi weewx[3191]: **** Exiting.
Aug 26 13:10:37 raspberrypi systemd[1]: Stopping LSB: weewx weather
system...
Aug 26 13:10:37 raspberrypi weewx[3227]: Stopping weewx weather system:
weewx not running....
Aug 26 13:10:37 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
The mqtt.py file is in /usr/share/weewx/ as per below (I'll change the
permissions for read-only shortly)
total 192
-rw-r--r-- 1 root root 2886 Aug 17 04:06 daemon.py
-rw-r--r-- 1 root root 2715 Aug 24 16:09 daemon.pyc
-rw-rw-rw- 1 root root 16926 Aug 26 12:14 mqtt.py
drwxr-xr-x 2 root root 4096 Aug 24 16:09 *schemas*
drwxr-xr-x 3 root root 4096 Aug 24 16:20 *user*
drwxr-xr-x 2 root root 4096 Aug 24 16:11 *weecfg*
-rwxr-xr-x 1 root root 5145 Aug 17 04:06 *wee_config*
-rwxr-xr-x 1 root root 36471 Aug 17 04:06 *wee_database*
drwxr-xr-x 2 root root 4096 Aug 24 16:09 *weedb*
-rwxr-xr-x 1 root root 16207 Aug 17 04:06 *wee_debug*
-rwxr-xr-x 1 root root 1681 Aug 17 04:06 *wee_device*
-rwxr-xr-x 1 root root 3118 Aug 17 04:06 *wee_extension*
drwxr-xr-x 2 root root 4096 Aug 24 16:09 *weeimport*
-rwxr-xr-x 1 root root 31159 Aug 17 04:06 *wee_import*
drwxr-xr-x 2 root root 4096 Aug 24 16:10 *weeplot*
-rwxr-xr-x 1 root root 2171 Aug 17 04:06 *wee_reports*
drwxr-xr-x 2 root root 4096 Aug 24 16:10 *weeutil*
drwxr-xr-x 3 root root 4096 Aug 24 16:10 *weewx*
-rwxr-xr-x 1 root root 2565 Aug 17 04:06 *weewxd*
-rwxr-xr-x 1 root root 20788 Aug 17 04:06 *wunderfixer*
[StdRESTful] .....
[[MQTT]]
#This section is for the MQTT service setup
server_url = mqtt://user:[email protected]:13147/
topic = weather/41south
unit_system = Metric
binding = archive, loop
aggregation = aggregate
[Engine]
[[Services]]
restful_services = ...... weewx.restx.StdAWEKAS, user.mqtt.MQTT
What did I miss??
Thanks
Colin
--
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].
For more options, visit https://groups.google.com/d/optout.