Open bourquep opened 2 days ago
Thanks! I'll take a look into this. Is the other tool a homebridge plugin in the same runtime and using the same port?
It's a WeeWX device driver: https://github.com/captain-coredump/weatherflow-udp
FYI, I have already submitted a PR to address this: #27
Is your feature request related to a problem? Please describe: I want to install another tool on the same Mac mini running Homebridge and this plugin which would also handle the Tempest local API data by decoding packets received on UDP port 50222. However, that other tool is currently unable to open a socket because the Homebridge plugin already has a socket open for that port.
Describe the solution you'd like: I am no Node networking expert so I asked ChatGPT (🤷🏻♂️), and it appears that creating the socket like this would fit the bill: