1b0a8670e538614a48a5b96e1871242a26809de4
create_connection(timeout=5) left a 5-second read timeout on the socket. Any collection interval longer than 5 s caused recv() to raise socket.timeout, which was caught as OSError and reported as a lost connection. Switch to blocking mode with settimeout(None) immediately after the connect handshake. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
Periodically polls a VW WeConnect vehicle via the weconnect library, stores timestamped records as JSON, and pushes live data to connected TCP clients. A PyQt5 GUI client visualises the data in real time.
742 KiB
Languages
Python
89.2%
Shell
10.8%