matthewwall / weewx-interceptor

weewx driver that intercepts web traffic from internet 'bridge' devices such as Acurite Access, ObserverIP, OS LW30x, LaCross GW1000U, FineOffset GW1000
GNU General Public License v3.0
105 stars 46 forks source link

Ubuntu + interceptor + DeprecationWarning #110

Closed steflp closed 1 year ago

steflp commented 1 year ago

Hello,

I m updating my system for Meteo by weewx in Ubuntu system (uptodate)
I want to use interceptor to track my data
I use this code to test :
PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/interceptor.py --device=observer --mode=listen --iface=eth0 --filter="src 192.168.0.36 and dst port 80" And I have this warning : /usr/share/weewx/user/interceptor.py:2677: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead server_thread.setDaemon(True) /usr/share/weewx/user/interceptor.py:2678: DeprecationWarning: setName() is deprecated, set the name attribute instead server_thread.setName('ServerThread') I use python 3 version
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux

Is it possible to help me ?

steflp commented 1 year ago

i comment this in line 2676 `server_thread = threading.Thread(target=device.run_server)

server_thread.setDaemon(True)

server_thread.setName('ServerThread')

server_thread.start()`