Hi guys,
I do have a webserver on my weewx device (192.168.0.98) running Fedora 36
so yes that error does make sense. I am looking to avoid the sdr route if
possible as it requires more hardware. Currently, my Acurite Access
(192.168.0.245) is feeding WU with data from my Acurite Iris 5-in-1 weather
station. I am trying to use weewx with the interceptor.py to capture the
data from an Acurite Access across the network so that I can send the data
to CWOP as well. I was using VISReader to send data to both WU and CWOP,
but if I upgrade to the Acurite Atlas, I will need to move on and use
something else like weewx. I was able to get weewx to work with the USB
option from my Acurite Iris 5-in-1 weather display, but that goes away with
the Atlas as well.
Does anyone have the following setup instructions?
Use the *Interceptor Driver* to capture data from an Acurite Access base
station by grabbing data uploaded to Weather Underground (WU).
It sounds like someone out there has it configured, but I can't get it to
work. I get errors every time I try using the interceptor.py:
python3[5027]: weewx[5027] ERROR weewx.engine: Import of driver failed:
[Errno 98] Address already in use (<class 'OSError'>)
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** Traceback (most
recent call last):
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/share/weewx/weewx/engine.py", line 119, in setupStation
python3[5027]: weewx[5027] CRITICAL weewx.engine: ****
self.console = loader_function(config_dict, self)
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/interceptor.py", line 316, in loader
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** return
InterceptorDriver(**config_dict[DRIVER_NAME])
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/interceptor.py", line 2529, in __init__
python3[5027]: weewx[5027] CRITICAL weewx.engine: ****
self._device = self.DEVICE_TYPES.get(self._device_type)(**stn_dict)
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/interceptor.py", line 728, in __init__
python3[5027]: weewx[5027] CRITICAL weewx.engine: ****
super(WUClient, self).__init__(
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/interceptor.py", line 430, in __init__
python3[5027]: weewx[5027] CRITICAL weewx.engine: ****
self._server = Consumer.TCPServer(address, port, handler)
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/share/weewx/user/interceptor.py", line 585, in __init__
python3[5027]: weewx[5027] CRITICAL weewx.engine: ****
TCPServer.__init__(self, (address, int(port)), handler)
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/lib64/python3.10/socketserver.py", line 452, in __init__
python3[5027]: weewx[5027] CRITICAL weewx.engine: ****
self.server_bind()
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** File
"/usr/lib64/python3.10/socketserver.py", line 466, in server_bind
python3[5027]: weewx[5027] CRITICAL weewx.engine: ****
self.socket.bind(self.server_address)
python3[5027]: weewx[5027] CRITICAL weewx.engine: **** OSError: [Errno
98] Address already in use
python3[5027]: weewx[5027] CRITICAL __main__: Unable to load driver: [Errno
98] Address already in use
python3[5027]: weewx[5027] CRITICAL __main__: **** Exiting...
I have tried using these settings:
[Interceptor]
# This section is for the network traffic interceptor driver.
# The driver to use:
driver = user.interceptor
# Specify the hardware device to capture. Options include:
# acurite-bridge - acurite internet bridge, smarthub, or access
# wu-client - any hardware that uses the weather underground protocol
device_type = wu-client # I have tried acurite-bridge as well
pcap_filter = src 192.168.0.245 and port 80
[[sensor_map]]
outTemp = temperature.00000009.* # I do have multiple sensors
attached to Access, so this the ID for the 5-in-1
Thanks again,
Jeff
On Thursday, September 1, 2022 at 6:04:53 PM UTC-4 gjr80 wrote:
> Regards your listen mode error. Check you don't have something else on
> your WeeWX device using port 80. Obvious candidate is a web server.
>
> Gary
>
> On Friday, 2 September 2022 at 01:46:33 UTC+10 meteo219 wrote:
>
>> Hello folks,
>>
>> I am trying to setup weewx from my old 2015 Acurite 5-in-1 weather
>> station through the Acurite Access but I am not having any luck. First, I
>> can get weewx to work from my weather display via USB without issue but I
>> am looking to see if I can capture data through the Access in case I
>> upgrade to the Acurite Atlas. Long story short, my relative humidity
>> sensor is failing (showing a constant 99% relative humidity); the board
>> looks fine, but Acurite doesn't have a replacement part for it. So, I can
>> either buy a newer Acurite 5-in-1 or upgrade to the Atlas knowing their is
>> no USB option on the Atlas weather display.
>>
>> Does anyone have step by step directions on how to setup weewx using the
>> interceptor.py with the Acurite Access. I currently send data to WU and
>> CWOP. I have read the readme that came with the interceptor.py, but I just
>> get errors when trying.
>>
>> For example using it to listen:
>>
>> PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py
>> --device=acurite-bridge --mode=listen --port=80
>> Traceback (most recent call last):
>> File "/usr/share/weewx/user/interceptor.py", line 2671, in <module>
>> device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
>> File "/usr/share/weewx/user/interceptor.py", line 1002, in __init__
>> super(AcuriteBridge, self).__init__(
>> File "/usr/share/weewx/user/interceptor.py", line 430, in __init__
>> self._server = Consumer.TCPServer(address, port, handler)
>> File "/usr/share/weewx/user/interceptor.py", line 585, in __init__
>> TCPServer.__init__(self, (address, int(port)), handler)
>> File "/usr/lib64/python3.10/socketserver.py", line 452, in __init__
>> self.server_bind()
>> File "/usr/lib64/python3.10/socketserver.py", line 466, in server_bind
>> self.socket.bind(self.server_address)
>> OSError: [Errno 98] Address already in use
>>
>> Using sniff:
>>
>> PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py
>> --device=acurite-b
>> ridge --mode=sniff --iface=enp0s3 --filter="src 192.168.0.245 and dst
>> port 80"
>> Traceback (most recent call last):
>> File "/usr/share/weewx/user/interceptor.py", line 2671, in <module>
>> device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
>> File "/usr/share/weewx/user/interceptor.py", line 1002, in __init__
>> super(AcuriteBridge, self).__init__(
>> File "/usr/share/weewx/user/interceptor.py", line 427, in __init__
>> self._server = Consumer.SniffServer(
>> File "/usr/share/weewx/user/interceptor.py", line 466, in __init__
>> import pcap
>> ModuleNotFoundError: No module named 'pcap'
>>
>> I am running Fedora 36, with libpcap installed:
>>
>> rpm -qa|grep -i pcap
>> libpcap-1.10.1-3.fc36.x86_64
>>
>> Any ideas and suggestions would be greatly appreciated. I want to make
>> sure I can get the interceptor.py working with the Access before purchasing
>> a new weather station.
>>
>> Sincerely,
>>
>> Jeff
>>
>
--
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/2a0ec6ae-acd4-43a0-93fb-11b3060cb170n%40googlegroups.com.