Hello... I am new to this group and have been trying to get weewx up and running on a Raspberry pi 4 with Debian GNU/Linux
I have had great success with my initial setup:
Acurite Atlas sensor
RTL-433/SDR
weewx 5.4.0
Hubitat Interface
This has been running nicely for a few day and I have been able to add data to the Hubitat Interface.
during this I have had no issues with either weewx or weewxd
I have now decided to add a BMP280 to get pressure sensor data. I have successfully loaded the libraries (took several attempts)
I have been able to run a test-bmp250.py file and obtain the appropriate data back from the system.
I then started integrating with weewx. initially I had issues with both weewxd and weewx. I would get an error:
: Traceback (most recent call last):
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "/usr/share/weewx/weewxd.py", line 226, in <module>
Jul 10 09:11:29 raspberrypi weewxd[2198]: main()
Jul 10 09:11:29 raspberrypi weewxd[2198]: ~~~~^^
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "/usr/share/weewx/weewxd.py", line 121, in main
Jul 10 09:11:29 raspberrypi weewxd[2198]: engine = weewx.engine.StdEngine(config_dict)
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "/usr/share/weewx/weewx/engine.py", line 89, in __init__
Jul 10 09:11:29 raspberrypi weewxd[2198]: self.loadServices(config_dict)
Jul 10 09:11:29 raspberrypi weewxd[2198]: ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "/usr/share/weewx/weewx/engine.py", line 157, in loadServices
Jul 10 09:11:29 raspberrypi weewxd[2198]: obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Jul 10 09:11:29 raspberrypi weewxd[2198]: ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "/usr/share/weewx/weeutil/weeutil.py", line 1405, in get_object
Jul 10 09:11:29 raspberrypi weewxd[2198]: module = importlib.import_module(module_name)
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
Jul 10 09:11:29 raspberrypi weewxd[2198]: return _bootstrap._gcd_import(name[level:], package, level)
Jul 10 09:11:29 raspberrypi weewxd[2198]: ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
Jul 10 09:11:29 raspberrypi weewxd[2198]: File "/etc/weewx/bin/user/BMP280_service.py", line 6, in <module>
Jul 10 09:11:29 raspberrypi weewxd[2198]: import adafruit_bmp280
Jul 10 09:11:29 raspberrypi weewxd[2198]: ModuleNotFoundError: No module named 'adafruit_bmp280'
Jul 10 09:11:29 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 09:11:29 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.
After playing with several group and ownership issues I was successful in running weewxd and ingesting pressure, altitude, and temperature data in to weewx and into hubitat!!!!!!!
However, when trying to run weewx (using the sudo systemctl start weewx command) I still get the same response.
I have put as much as I know in the weewx group. the BMP library ("Adafruit_BMP280_Library) got loaded into my home directory. with weewx as the group and owner.
At a lost... to be soo close and yet soo far. Has anyone run into a situation where weewxd and weewx return different results?
thanks
Patrick Sifford