[weewx-user] Re: Belchertown and MQTT configuration error
Make sure MQTT is running correctly. You can test it via CLI. This page goes into configuring a cert, you can stop reading at that point. https://medium.com/gravio-edge-iot-platform/how-to-set-up-a-mosquitto-mqtt-broker-securely-using-client-certificates-82b2aaaef9c8 On Thursday, July 25, 2024 at 10:27:54 PM UTC-5 M&M wrote: > Also I tried commenting out all of the MQTT lines in weewx.conf so that I > could get the service running again but it isn't running at all. Giving me > the same error as I posted above. > > On Thursday, July 25, 2024 at 11:11:15 PM UTC-4 M&M wrote: > >> I'm getting closer. Mosquito service is running but weewx gives me the >> follow error in journalctl: >> >> Jul 25 22:59:55 raspberrypi weewxd[25852]: INFO __main__: Terminating >> weewx version 5.0.2 >> Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Succeeded. >> Jul 25 22:59:55 raspberrypi systemd[1]: Stopped WeeWX. >> Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Consumed 3h 44min >> 13.462s CPU time. >> Jul 25 23:00:51 raspberrypi systemd[1]: Started WeeWX. >> Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Initializing >> weewxd version 5.0.2 >> Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Command line: >> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf >> Jul 25 23:00:53 raspberrypi weewxd[28347]: Traceback (most recent call >> last): >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/share/weewx/weewxd.py", line 265, in >> Jul 25 23:00:53 raspberrypi weewxd[28347]: main() >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/share/weewx/weewxd.py", line 107, in main >> Jul 25 23:00:53 raspberrypi weewxd[28347]: weewx_root, user_module = >> weeutil.startup.initialize(config_dict) >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/share/weewx/weeutil/startup.py", line 67, in initialize >> Jul 25 23:00:53 raspberrypi weewxd[28347]: >> importlib.import_module('user.extensions') >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module >> Jul 25 23:00:53 raspberrypi weewxd[28347]: return >> _bootstrap._gcd_import(name[level:], package, level) >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File "> importlib._bootstrap>", line 1030, in _gcd_import >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File "> importlib._bootstrap>", line 1007, in _find_and_load >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File "> importlib._bootstrap>", line 986, in _find_and_load_unlocked >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File "> importlib._bootstrap>", line 680, in _load_unlocked >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File "> importlib._bootstrap_external>", line 790, in exec_module >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File "> importlib._bootstrap>", line 228, in _call_with_frames_removed >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/etc/weewx/bin/user/extensions.py", line 18, in >> Jul 25 23:00:53 raspberrypi weewxd[28347]: >> locale.setlocale(locale.LC_ALL, '') >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/lib/python3.9/locale.py", line 610, in setlocale >> Jul 25 23:00:53 raspberrypi weewxd[28347]: return >> _setlocale(category, locale) >> Jul 25 23:00:53 raspberrypi weewxd[28347]: locale.Error: unsupported >> locale setting >> Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Main process >> exited, code=exited, status=1/FAILURE >> Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Failed with result >> 'exit-code'. >> Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Consumed 2.050s >> CPU time. >> >> On Thursday, July 25, 2024 at 1:47:21 PM UTC-4 vince wrote: >> >>> Pat's docs are authoritative for Belchertown and the MQTT stuff looks ok >>> to me. Just follow that. >>> >>> https://github.com/weewx/weewx/wiki/mqtt has Tom's instructions for >>> installing the MQTT extension. You can check it at least minimally by >>> running "weectl extension list" and it should show up in the list of >>> installed extensions. >>> >>> Your config file stuff for weewx that you posted looked ok to me. >>> >>> On Thursday, July 25, 2024 at 9:54:13 AM UTC-7 M&M wrote: >>> That is correct that I have the MQTT installed as an extension for weewx which is running on the pi. I checked for a mqtt.service and I'm not seeing one on there. I'm also not seeing a mosquitto_sub or pub installed so I think I must have missed anothe page to get this installed and working. From searching around right now, it looks like I need to follow this page: https://obrienlabs.net/how-to-setup-your-own-mqtt-broker/ I'm hoping to get this on a website that doesn't cost anything but one step at a time. Am I on the right track? On Wednesday, July 24, 2024 at 10:50:45 PM UTC-4 vince wrote: > Connection refused generally means th
[weewx-user] Re: Belchertown and MQTT configuration error
https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-settling Have you messed with system locale at the os level or edited it in some weewx or mqtt config file ? There have been some skeletal reports about this over the years but I've never really understood the explanations. On Friday, July 26, 2024 at 3:41:42 AM UTC-7 Mark Jenks wrote: > Make sure MQTT is running correctly. You can test it via CLI. This > page goes into configuring a cert, you can stop reading at that point. > > > https://medium.com/gravio-edge-iot-platform/how-to-set-up-a-mosquitto-mqtt-broker-securely-using-client-certificates-82b2aaaef9c8 > > > On Thursday, July 25, 2024 at 10:27:54 PM UTC-5 M&M wrote: > >> Also I tried commenting out all of the MQTT lines in weewx.conf so that I >> could get the service running again but it isn't running at all. Giving me >> the same error as I posted above. >> >> On Thursday, July 25, 2024 at 11:11:15 PM UTC-4 M&M wrote: >> >>> I'm getting closer. Mosquito service is running but weewx gives me the >>> follow error in journalctl: >>> >>> Jul 25 22:59:55 raspberrypi weewxd[25852]: INFO __main__: Terminating >>> weewx version 5.0.2 >>> Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Succeeded. >>> Jul 25 22:59:55 raspberrypi systemd[1]: Stopped WeeWX. >>> Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Consumed 3h 44min >>> 13.462s CPU time. >>> Jul 25 23:00:51 raspberrypi systemd[1]: Started WeeWX. >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Initializing >>> weewxd version 5.0.2 >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Command line: >>> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: Traceback (most recent call >>> last): >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >>> "/usr/share/weewx/weewxd.py", line 265, in >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: main() >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >>> "/usr/share/weewx/weewxd.py", line 107, in main >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: weewx_root, user_module = >>> weeutil.startup.initialize(config_dict) >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >>> "/usr/share/weewx/weeutil/startup.py", line 67, in initialize >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: >>> importlib.import_module('user.extensions') >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >>> "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: return >>> _bootstrap._gcd_import(name[level:], package, level) >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">> importlib._bootstrap>", line 1030, in _gcd_import >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">> importlib._bootstrap>", line 1007, in _find_and_load >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">> importlib._bootstrap>", line 986, in _find_and_load_unlocked >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">> importlib._bootstrap>", line 680, in _load_unlocked >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">> importlib._bootstrap_external>", line 790, in exec_module >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">> importlib._bootstrap>", line 228, in _call_with_frames_removed >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >>> "/etc/weewx/bin/user/extensions.py", line 18, in >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: >>> locale.setlocale(locale.LC_ALL, '') >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >>> "/usr/lib/python3.9/locale.py", line 610, in setlocale >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: return >>> _setlocale(category, locale) >>> Jul 25 23:00:53 raspberrypi weewxd[28347]: locale.Error: unsupported >>> locale setting >>> Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Main process >>> exited, code=exited, status=1/FAILURE >>> Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Failed with >>> result 'exit-code'. >>> Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Consumed 2.050s >>> CPU time. >>> >>> On Thursday, July 25, 2024 at 1:47:21 PM UTC-4 vince wrote: >>> Pat's docs are authoritative for Belchertown and the MQTT stuff looks ok to me. Just follow that. https://github.com/weewx/weewx/wiki/mqtt has Tom's instructions for installing the MQTT extension. You can check it at least minimally by running "weectl extension list" and it should show up in the list of installed extensions. Your config file stuff for weewx that you posted looked ok to me. On Thursday, July 25, 2024 at 9:54:13 AM UTC-7 M&M wrote: > That is correct that I have the MQTT installed as an extension for > weewx which is running on the pi. I checked for a mqtt.service and I'm > not > seeing one on there. I'm also not seeing a mosquitto_sub or pub > installed > so
[weewx-user] Re: Belchertown and MQTT configuration error
Oh thats right! I edited the /etc/default/locales file. I changed it from en_GB.UTF-8 to en_US.UTF-8 since I was trying to fix the time in Belchertown skin to show a 12h time format. I believe I fixed it and for some reason, i decided to edit the locales file. I'll change that back when I get to that system. Thanks. I believe that is what will fix it. On Friday, July 26, 2024 at 12:17:42 PM UTC-4 vince wrote: > > https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-settling > > Have you messed with system locale at the os level or edited it in some > weewx or mqtt config file ? There have been some skeletal reports about > this over the years but I've never really understood the explanations. > > On Friday, July 26, 2024 at 3:41:42 AM UTC-7 Mark Jenks wrote: > >> Make sure MQTT is running correctly. You can test it via CLI. This >> page goes into configuring a cert, you can stop reading at that point. >> >> >> https://medium.com/gravio-edge-iot-platform/how-to-set-up-a-mosquitto-mqtt-broker-securely-using-client-certificates-82b2aaaef9c8 >> >> >> On Thursday, July 25, 2024 at 10:27:54 PM UTC-5 M&M wrote: >> >>> Also I tried commenting out all of the MQTT lines in weewx.conf so that >>> I could get the service running again but it isn't running at all. Giving >>> me the same error as I posted above. >>> >>> On Thursday, July 25, 2024 at 11:11:15 PM UTC-4 M&M wrote: >>> I'm getting closer. Mosquito service is running but weewx gives me the follow error in journalctl: Jul 25 22:59:55 raspberrypi weewxd[25852]: INFO __main__: Terminating weewx version 5.0.2 Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Succeeded. Jul 25 22:59:55 raspberrypi systemd[1]: Stopped WeeWX. Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Consumed 3h 44min 13.462s CPU time. Jul 25 23:00:51 raspberrypi systemd[1]: Started WeeWX. Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Initializing weewxd version 5.0.2 Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf Jul 25 23:00:53 raspberrypi weewxd[28347]: Traceback (most recent call last): Jul 25 23:00:53 raspberrypi weewxd[28347]: File "/usr/share/weewx/weewxd.py", line 265, in Jul 25 23:00:53 raspberrypi weewxd[28347]: main() Jul 25 23:00:53 raspberrypi weewxd[28347]: File "/usr/share/weewx/weewxd.py", line 107, in main Jul 25 23:00:53 raspberrypi weewxd[28347]: weewx_root, user_module = weeutil.startup.initialize(config_dict) Jul 25 23:00:53 raspberrypi weewxd[28347]: File "/usr/share/weewx/weeutil/startup.py", line 67, in initialize Jul 25 23:00:53 raspberrypi weewxd[28347]: importlib.import_module('user.extensions') Jul 25 23:00:53 raspberrypi weewxd[28347]: File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module Jul 25 23:00:53 raspberrypi weewxd[28347]: return _bootstrap._gcd_import(name[level:], package, level) Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">>> importlib._bootstrap>", line 1030, in _gcd_import Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">>> importlib._bootstrap>", line 1007, in _find_and_load Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">>> importlib._bootstrap>", line 986, in _find_and_load_unlocked Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">>> importlib._bootstrap>", line 680, in _load_unlocked Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">>> importlib._bootstrap_external>", line 790, in exec_module Jul 25 23:00:53 raspberrypi weewxd[28347]: File ">>> importlib._bootstrap>", line 228, in _call_with_frames_removed Jul 25 23:00:53 raspberrypi weewxd[28347]: File "/etc/weewx/bin/user/extensions.py", line 18, in Jul 25 23:00:53 raspberrypi weewxd[28347]: locale.setlocale(locale.LC_ALL, '') Jul 25 23:00:53 raspberrypi weewxd[28347]: File "/usr/lib/python3.9/locale.py", line 610, in setlocale Jul 25 23:00:53 raspberrypi weewxd[28347]: return _setlocale(category, locale) Jul 25 23:00:53 raspberrypi weewxd[28347]: locale.Error: unsupported locale setting Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'. Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Consumed 2.050s CPU time. On Thursday, July 25, 2024 at 1:47:21 PM UTC-4 vince wrote: > Pat's docs are authoritative for Belchertown and the MQTT stuff looks > ok to me. Just follow that. > > https://github.com/weewx/weewx/wiki/mqtt has Tom's instructions for > installing the MQTT extension. You can check it at least mini
[weewx-user] Re: Belchertown and MQTT configuration error
Making some progress. I am back to having weewx running and I now have mosquito running as well. I was able to test that service by mosquitto_sub and mosquitto_pub which worked by sending "hello world". However when I check my local Belchertown page, it now says this at the top: Failed connecting to the weather station. Please try again later! Last Updated 26 July 2024, 23:10:00 On Friday, July 26, 2024 at 2:02:17 PM UTC-4 M&M wrote: > Oh thats right! I edited the /etc/default/locales file. I changed it > from en_GB.UTF-8 to en_US.UTF-8 since I was trying to fix the time in > Belchertown skin to show a 12h time format. I believe I fixed it and for > some reason, i decided to edit the locales file. I'll change that back > when I get to that system. > > Thanks. I believe that is what will fix it. > > On Friday, July 26, 2024 at 12:17:42 PM UTC-4 vince wrote: > >> >> https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-settling >> >> Have you messed with system locale at the os level or edited it in some >> weewx or mqtt config file ? There have been some skeletal reports about >> this over the years but I've never really understood the explanations. >> >> On Friday, July 26, 2024 at 3:41:42 AM UTC-7 Mark Jenks wrote: >> >>> Make sure MQTT is running correctly. You can test it via CLI. This >>> page goes into configuring a cert, you can stop reading at that point. >>> >>> >>> https://medium.com/gravio-edge-iot-platform/how-to-set-up-a-mosquitto-mqtt-broker-securely-using-client-certificates-82b2aaaef9c8 >>> >>> >>> On Thursday, July 25, 2024 at 10:27:54 PM UTC-5 M&M wrote: >>> Also I tried commenting out all of the MQTT lines in weewx.conf so that I could get the service running again but it isn't running at all. Giving me the same error as I posted above. On Thursday, July 25, 2024 at 11:11:15 PM UTC-4 M&M wrote: > I'm getting closer. Mosquito service is running but weewx gives me > the follow error in journalctl: > > Jul 25 22:59:55 raspberrypi weewxd[25852]: INFO __main__: Terminating > weewx version 5.0.2 > Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Succeeded. > Jul 25 22:59:55 raspberrypi systemd[1]: Stopped WeeWX. > Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Consumed 3h > 44min 13.462s CPU time. > Jul 25 23:00:51 raspberrypi systemd[1]: Started WeeWX. > Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Initializing > weewxd version 5.0.2 > Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Command > line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf > Jul 25 23:00:53 raspberrypi weewxd[28347]: Traceback (most recent call > last): > Jul 25 23:00:53 raspberrypi weewxd[28347]: File > "/usr/share/weewx/weewxd.py", line 265, in > Jul 25 23:00:53 raspberrypi weewxd[28347]: main() > Jul 25 23:00:53 raspberrypi weewxd[28347]: File > "/usr/share/weewx/weewxd.py", line 107, in main > Jul 25 23:00:53 raspberrypi weewxd[28347]: weewx_root, user_module > = weeutil.startup.initialize(config_dict) > Jul 25 23:00:53 raspberrypi weewxd[28347]: File > "/usr/share/weewx/weeutil/startup.py", line 67, in initialize > Jul 25 23:00:53 raspberrypi weewxd[28347]: > importlib.import_module('user.extensions') > Jul 25 23:00:53 raspberrypi weewxd[28347]: File > "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module > Jul 25 23:00:53 raspberrypi weewxd[28347]: return > _bootstrap._gcd_import(name[level:], package, level) > Jul 25 23:00:53 raspberrypi weewxd[28347]: File " importlib._bootstrap>", line 1030, in _gcd_import > Jul 25 23:00:53 raspberrypi weewxd[28347]: File " importlib._bootstrap>", line 1007, in _find_and_load > Jul 25 23:00:53 raspberrypi weewxd[28347]: File " importlib._bootstrap>", line 986, in _find_and_load_unlocked > Jul 25 23:00:53 raspberrypi weewxd[28347]: File " importlib._bootstrap>", line 680, in _load_unlocked > Jul 25 23:00:53 raspberrypi weewxd[28347]: File " importlib._bootstrap_external>", line 790, in exec_module > Jul 25 23:00:53 raspberrypi weewxd[28347]: File " importlib._bootstrap>", line 228, in _call_with_frames_removed > Jul 25 23:00:53 raspberrypi weewxd[28347]: File > "/etc/weewx/bin/user/extensions.py", line 18, in > Jul 25 23:00:53 raspberrypi weewxd[28347]: > locale.setlocale(locale.LC_ALL, '') > Jul 25 23:00:53 raspberrypi weewxd[28347]: File > "/usr/lib/python3.9/locale.py", line 610, in setlocale > Jul 25 23:00:53 raspberrypi weewxd[28347]: return > _setlocale(category, locale) > Jul 25 23:00:53 raspberrypi weewxd[28347]: locale.Error: unsupported > locale setting > Jul 25 23:00:53 raspberrypi systemd[1]: weewx.service: Main process > exited, code=exited,
[weewx-user] Re: Belchertown and MQTT configuration error
I checked journalctl and now I'm seeing this error: Jul 26 23:16:30 raspberrypi weewxd[1141]: ERROR user.ambientweatherapi: AmbientAPI get_devices() returned empty dict Jul 26 23:16:30 raspberrypi weewxd.py[1141]: ambientweatherapi driver encountered an error. Jul 26 23:16:30 raspberrypi weewxd[1141]: ERROR user.ambientweatherapi: ambientweatherapi driver encountered an error. Jul 26 23:16:30 raspberrypi weewxd.py[1141]: Error caught was: AmbientAPI get_devices() returned empty dict Jul 26 23:16:30 raspberrypi weewxd[1141]: ERROR user.ambientweatherapi: Error caught was: AmbientAPI get_devices() returned empty dict Jul 26 23:16:30 raspberrypi weewxd.py[1141]: ambientweatherapi driver had an error sending data to weewx. Jul 26 23:16:30 raspberrypi weewxd[1141]: ERROR user.ambientweatherapi: ambientweatherapi driver had an error sending data to weewx. Jul 26 23:16:30 raspberrypi weewxd.py[1141]: Error caught was: Previous error occured, skipping packet build. Jul 26 23:16:30 raspberrypi weewxd[1141]: ERROR user.ambientweatherapi: Error caught was: Previous error occured, skipping packet build. On Friday, July 26, 2024 at 11:20:51 PM UTC-4 M&M wrote: > Making some progress. I am back to having weewx running and I now have > mosquito running as well. I was able to test that service by mosquitto_sub > and mosquitto_pub which worked by sending "hello world". However when I > check my local Belchertown page, it now says this at the top: > > Failed connecting to the weather station. Please try again later! Last > Updated 26 July 2024, 23:10:00 > > On Friday, July 26, 2024 at 2:02:17 PM UTC-4 M&M wrote: > >> Oh thats right! I edited the /etc/default/locales file. I changed it >> from en_GB.UTF-8 to en_US.UTF-8 since I was trying to fix the time in >> Belchertown skin to show a 12h time format. I believe I fixed it and for >> some reason, i decided to edit the locales file. I'll change that back >> when I get to that system. >> >> Thanks. I believe that is what will fix it. >> >> On Friday, July 26, 2024 at 12:17:42 PM UTC-4 vince wrote: >> >>> >>> https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-settling >>> >>> Have you messed with system locale at the os level or edited it in some >>> weewx or mqtt config file ? There have been some skeletal reports about >>> this over the years but I've never really understood the explanations. >>> >>> On Friday, July 26, 2024 at 3:41:42 AM UTC-7 Mark Jenks wrote: >>> Make sure MQTT is running correctly. You can test it via CLI. This page goes into configuring a cert, you can stop reading at that point. https://medium.com/gravio-edge-iot-platform/how-to-set-up-a-mosquitto-mqtt-broker-securely-using-client-certificates-82b2aaaef9c8 On Thursday, July 25, 2024 at 10:27:54 PM UTC-5 M&M wrote: > Also I tried commenting out all of the MQTT lines in weewx.conf so > that I could get the service running again but it isn't running at all. > Giving me the same error as I posted above. > > On Thursday, July 25, 2024 at 11:11:15 PM UTC-4 M&M wrote: > >> I'm getting closer. Mosquito service is running but weewx gives me >> the follow error in journalctl: >> >> Jul 25 22:59:55 raspberrypi weewxd[25852]: INFO __main__: Terminating >> weewx version 5.0.2 >> Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Succeeded. >> Jul 25 22:59:55 raspberrypi systemd[1]: Stopped WeeWX. >> Jul 25 22:59:55 raspberrypi systemd[1]: weewx.service: Consumed 3h >> 44min 13.462s CPU time. >> Jul 25 23:00:51 raspberrypi systemd[1]: Started WeeWX. >> Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: >> Initializing weewxd version 5.0.2 >> Jul 25 23:00:53 raspberrypi weewxd[28347]: INFO __main__: Command >> line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf >> Jul 25 23:00:53 raspberrypi weewxd[28347]: Traceback (most recent >> call last): >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/share/weewx/weewxd.py", line 265, in >> Jul 25 23:00:53 raspberrypi weewxd[28347]: main() >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/share/weewx/weewxd.py", line 107, in main >> Jul 25 23:00:53 raspberrypi weewxd[28347]: weewx_root, >> user_module = weeutil.startup.initialize(config_dict) >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/share/weewx/weeutil/startup.py", line 67, in initialize >> Jul 25 23:00:53 raspberrypi weewxd[28347]: >> importlib.import_module('user.extensions') >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File >> "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module >> Jul 25 23:00:53 raspberrypi weewxd[28347]: return >> _bootstrap._gcd_import(name[level:], package, level) >> Jul 25 23:00:53 raspberrypi weewxd[28347]: File "> import