Commit Graph
20 Commits
Author SHA1 Message Date
jensandClaude Sonnet 5 f20e617d81 feat: add connect/disconnect status for real heater/stirrer hardware
Heater and Stirrer can be real serial hardware (hendi, Pololu1376), but
there was no connection concept at all - the constructors opened the
port and crashed the whole server if the device was missing, with no
way to see connection status or firmware version and no way to
reconnect without a restart.

Adds an observable Connectable mixin (components/connectable.py) shared
by AHeater/AStirrer; real devices defer opening the serial port to an
explicit connect(), auto-connect on server startup, and surface
Connected/FirmwareVersion/Simulated plus manual Connect/Disconnect over
the web GUI. Heating/stirring and Sud Start are all gated on connection
state, and a disconnect mid-brew force-stops the run via the same path
as a manual Stop.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YaPLuRPpyjWcwhMvCvpHCL
2026-07-03 19:18:59 +02:00
jens f085e74c53 - stirrer: removed status logs 2021-10-02 12:36:48 +02:00
jens cf40a49af4 - changed import
- changed shebang
2021-10-02 10:12:54 +01:00
jens 0843f1d87a - Pololu1376: take enums as variable id
- stirrerPololu1376: Make for robust against motor cable plug
2021-08-12 20:13:47 +01:00
jens ebd5d4cd5e - added dignostic vars
- make print_vars a method
2021-08-12 09:48:06 +02:00
jens a95f5195d1 - made on-methods private
- added AStirrer::_on_process() for monitoring
2021-08-12 09:32:02 +02:00
jens 4cb8089c06 - fixed stirrerpololu1376.py 2021-08-11 17:59:07 +02:00
jens 6196f944c6 - use new Pololu driver 2021-08-11 17:49:37 +02:00
jens d777a955a4 - refactored dt 2020-12-22 10:26:56 +01:00
jens 4e508c86c5 - redefine activate method
- for task introduced open() conext method
2020-12-18 15:58:02 +01:00
jens 7650acd808 - Pololu1376 doesn't accept fractional speeds 2020-12-17 19:06:28 +01:00
jens 3e0dd029e7 - fixed stirrer set speed after activate 2020-12-17 18:10:00 +01:00
jens 67ec9e6e07 Fixed stirrer beahvior 2020-12-17 17:01:46 +00:00
jens 4c4373d49a - fixed stirrer test 2020-12-17 17:50:58 +01:00
jens a26378d533 - fixed stirrer test 2020-12-17 17:43:52 +01:00
jens 9644b7e772 - fixed stirrer test 2020-12-17 17:37:08 +01:00
jens 9ddcd547d1 - fixed args 2020-12-17 17:33:38 +01:00
jens 29815afef7 - fixed stirrer args 2020-12-17 17:32:06 +01:00
jens ddf8003f5c - refactored
- integrated stirrer
2020-12-17 16:28:50 +01:00
jens fa93a3911e - refactored 2020-12-16 17:10:46 +01:00