10 Commits
Author SHA1 Message Date
jens d1a69f19ce Toggle Connect/Disconnect on the same button once connected
MessageDispatcherSync gains an optional on_connect_changed(bool)
callback, fired from the websocket client's background loop once the
connection is actually live/lost, so the button only flips state on a
real connection change rather than optimistically on click.
2026-06-20 23:04:43 +02:00
jensandClaude Sonnet 4.6 2566140c2b Fix Python 3.10+/websockets compatibility, add CLI args and .gitignore
- ws/message.py, ws/server/ws_server_multi_user.py: drop the loop= kwarg
  and replace asyncio.wait(coroutines) with asyncio.gather(), both of
  which were removed/forbidden in Python 3.10+.
- brewpi/requirements.txt: pin websockets==10.4, the latest version that
  still supports this code's serve()/handler API.
- config.json.sim: move Model to the top level and add the missing gain
  field so it matches the schema brewpi.py and config.json.templ expect.
- brewpi/brewpi.py: add -c/-m/-s/-d CLI args for selecting config/model
  files, simulation mode, and debug.
- .gitignore: exclude __pycache__, logs, the local config.json, and
  editor/venv directories.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 20:23:38 +02:00
jens b5cdb1a973 - fixed loosing connection to Pot task 2020-12-02 17:19:12 +01:00
jens 19ed110d0b - fixed not exitting executor thread
- fixed PID params
2020-12-01 19:35:06 +01:00
jens 5c97ac4d5c - removed MsgIo::send_from_thread
- created sync variant of MessageDispatcher and MsgIo
- fixed delay in sending client messages
2020-12-01 12:41:01 +01:00
jens 625535d1fb - refactored 2020-11-28 11:52:11 +01:00
jens 337ed1e5cd - set power from slider 2020-11-25 10:09:28 +01:00
jens 4cde362642 - add subscription via MessageDispatcher 2020-11-25 08:41:43 +01:00
jens ce363a15b0 - provide loop at ws::connect 2020-11-24 21:11:48 +01:00
jens 7d87bc8f34 - refactored 2020-11-24 20:42:27 +01:00