matthewwall/weewx-interceptor

Ubuntu + interceptor + DeprecationWarning

steflp opened this issue · 1 comments

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 ?

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()