Ok, after playing around with the interceptor driver and not being able to make it work, I have decided to go the SDR route. I have been following the documentation from https://github.com/matthewwall/weewx-sdr. I was able to get the driver install and configured for weewx but when I run the driver directly using the command sudo PYTHONPATH=bin python bin/user/sdr.py –cmd”rtl_433 -M utc -F json” I get the following python error:
Traceback (most recent call last):
File "bin/user/sdr.py", line 92, in <module>
import weewx.units
File "/home/weewx/bin/weewx/units.py", line 24, in <module>
import weeutil.weeutil
File "/home/weewx/bin/weeutil/weeutil.py", line 27, in <module>
from weeutil.config import accumulateLeaves, search_up
File "/home/weewx/bin/weeutil/config.py", line 11, in <module>
import configobj
ImportError: No module named configobj
To make that says that configobj library is not install but it is.
This is a brand-new install of Raspbian 10 and everything else.
I can sudo rtl_433 -M utc -F json and I do get output from my weather station.
Anyone know how to fix the sdr.py issue that I stated above?
Thanks
Dave
Thanks for the help. I can’t believe that I didn’t catch on to that. It is working now.
Thanks again
Dave
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8c005628-3505-499e-845d-057dc92da6b7n%40googlegroups.com.
Ok, I have another issue that I am hoping that someone can help me out with. I am getting data if I run the rtl_433 outside of weewx, but once I try to run it from weewx, I get the following error. Does anyone have any idea on how to fix this?
Thanks
Dave
Oct 1 02:00:22 raspberrypi weewx[737] ERROR weewx.engine: Import of driver failed: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such file or directory: 'rtl_433': 'rtl_433' (<class 'weewx.WeeWxIOError'>)
Oct 1 02:00:22 raspberrypi weewx[737] CRITICAL weewx.engine: **** Traceback (most recent call last):
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/sdr.py", line 198, in startup
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** stderr=subprocess.PIPE)
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** restore_signals, start_new_session)
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** raise child_exception_type(errno_num, err_msg, err_filename)
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** FileNotFoundError: [Errno 2] No such file or directory: 'rtl_433': 'rtl_433'
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: ****
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** During handling of the above exception, another exception occurred:
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: ****
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** Traceback (most recent call last):
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self)
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/sdr.py", line 147, in loader
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** return SDRDriver(**config_dict[DRIVER_NAME])
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/sdr.py", line 2674, in __init__
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** self._mgr.startup(cmd, path, ld_library_path)
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/sdr.py", line 207, in startup
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** (cmd, e))
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: **** weewx.WeeWxIOError: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such file or directory: 'rtl_433': 'rtl_433'
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL __main__: Unable to load driver: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such file or directory: 'rtl_433': 'rtl_433'
Oct 1 02:00:23 raspberrypi weewx[737] CRITICAL __main__: **** Exiting...
Thank you. That help out a lot
Thanks
Dave
From: weewx...@googlegroups.com <weewx...@googlegroups.com> On Behalf Of vince
Sent: Thursday, September 30, 2021 7:18 PM
To: weewx-user <weewx...@googlegroups.com>
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8f334564-9f52-47fa-8e7f-5350072b4ab0n%40googlegroups.com.