atse
b2f6a61a71
Fix hwrev getting
2024-10-07 17:48:24 +08:00
atse
bae37b554c
hwrev updates
2024-10-07 17:48:24 +08:00
atse
fcb5585c0a
Fix info boxes for load/saving from flash
2024-10-07 17:48:24 +08:00
atse
72ca1f16a9
Move reset request to thermostat control menu
...
We don't get auto reconnect anymore
2024-10-07 17:48:24 +08:00
atse
3aeef04330
Move pid autotuning request to CtrlPanel
...
And update autotune UI only on state change instead of every single
report update
2024-10-07 17:48:24 +08:00
atse
4407e5c97a
Move channelGraph stuff inside LiveDataPlotter
2024-10-07 17:48:24 +08:00
atse
a82e163d58
Move plot_options_menu stuff into menu
2024-10-07 17:48:24 +08:00
atse
0f117f8ee8
Move autotune ticking connect
2024-10-07 17:48:24 +08:00
atse
377c2dec48
Get thermostat_ctrl_menu to subscribe to hwrev updates
2024-10-07 17:48:24 +08:00
atse
7cf8d6ee70
Fix loading all channel settings would bring up 2 info boxes
2024-10-07 17:48:24 +08:00
atse
ef86336b95
Add back asyncSlot to save_cfg_request
2024-10-07 17:48:24 +08:00
atse
bc50b295bb
hw_rev
2024-10-07 17:48:24 +08:00
atse
4907678d53
fan_update: tec_qt to thermostat_ctrl_menu
2024-10-07 17:48:24 +08:00
atse
9ede52de93
Fix updating status label for hwrev = None
2024-10-07 17:48:24 +08:00
atse
66db9bcc57
Put some menu requests in menu itself
2024-10-07 17:48:24 +08:00
atse
f29095a0da
Broadcast ConnectionState changes from Thermostat
2024-10-07 17:48:24 +08:00
atse
7e235c3fea
Move sigActivatedHandle to CtrlPanel
2024-10-07 17:48:24 +08:00
atse
7ec7ae7329
Put send_command in CtrlPanel
2024-10-07 17:48:24 +08:00
atse
9f0064a61c
Extra bail removed
2024-10-07 17:48:24 +08:00
atse
d8c7db3f66
return hwrev when start_session
2024-10-07 17:48:24 +08:00
atse
b380d66750
Stuff non-UI changes in Thermostat model
2024-10-07 17:48:24 +08:00
atse
56c3e30c6b
Base Thermostat connectivity UI changes to state
2024-10-07 17:48:24 +08:00
atse
5c6652cdcb
Remove wait_for
...
OSError raised anyways
2024-10-07 17:48:24 +08:00
atse
05dd0afe03
Simplify on_connect_btn_clicked
...
Raise if OSError
2024-10-07 17:48:24 +08:00
atse
af53926b01
Connecting task moved?
2024-10-07 17:48:24 +08:00
atse
f66d029915
Exclusively use the Thermostat object as a medium
...
All calls to the Thermostat should be forwarded by the medium.
2024-10-07 17:48:24 +08:00
atse
cf39eee997
Integrate WrappedClient into Thermostat model
2024-10-07 17:48:24 +08:00
atse
9d271f97a2
Fix Autotuner state for forceful disconnect
2024-10-07 17:48:24 +08:00
atse
8ab93591a3
Make connection loss handling more elegant
...
Show an info box on connection lost informing the user that the
Thermostat was forcefully disconnected.
2024-10-07 17:48:24 +08:00
atse
c2952f881f
Use new style super()
2024-10-07 17:48:24 +08:00
atse
810237bccf
Move command line host:port setting handling
...
To main
2024-10-07 17:48:24 +08:00
atse
334c4dbdce
This is bail
2024-10-07 17:48:24 +08:00
atse
de583c38c4
ip -> host
2024-10-07 17:48:24 +08:00
atse
4ccddf9f20
Add pytec runnables
2024-10-07 17:48:24 +08:00
atse
7696a07b4a
unused
2024-10-07 17:48:24 +08:00
atse
2eb7eb40a2
encoding
2024-10-07 17:48:24 +08:00
atse
206b825e88
Just catch asyncio.TimeoutError
...
Will just change to TimeoutError once we switch to Python 3.11 in the
flake.
2024-10-07 17:48:24 +08:00
atse
8599c5be4e
Use asserts to check for connectivity
2024-10-07 17:48:24 +08:00
atse
35a447e980
Swap order arounda bit more
2024-10-07 17:48:24 +08:00
atse
f19809c852
Formatting
2024-10-07 17:48:24 +08:00
atse
9926c00494
ctrl_panel: Indicate active parameter of control
...
Instead of hiding the inactive control parameter, underline and bold the
active control parameter title, e.g. "Set Current" when control method
is constant current, and "Setpoint" when it is temperature PID.
2024-10-07 16:13:54 +08:00
atse
873f16a675
ctrl_panel: Code cleanup
...
* Remove unnecessary duplication of `THERMOSTAT_PARAMETERS`
* i -> ch
* Separate ParameterTree and Parameter initiation
* Remove extra "channel" option to root parameters, as the "value"
option is already the channel number
2024-10-07 16:03:00 +08:00
atse
85c8c23f2c
ctrl_panel: PID Auto Tune -> PID Autotune
2024-10-07 16:02:58 +08:00
atse
6df37e31aa
ctrl_panel: Remove need for "mA" hack
...
Remove all instances of mA scaling scattered all around the code and
specify it in the parameter tree with a single source of truth.
Done by adding the option "pinSiPrefix" for all Parameters of type `int`
or `float`, and using it for current Parameters with unit "mA".
2024-10-07 16:01:41 +08:00
atse
6a38f9b5a6
ctrl_panel: Refer to Parameters by concise `name`s
...
For displayed string representations, use the `title` key, or for
`ListParameter`s, use the dictionary mapping method instead.
2024-10-07 16:01:21 +08:00
atse
9af4ffd125
ctrl_panel: Config -> Settings
2024-10-07 16:01:13 +08:00
atse
41abad7aa3
send_command: Remove "activater"
...
Interpret commands anomalies directly in send_command instead
2024-08-14 16:07:15 +08:00
atse
5c8d9c7cce
send_command: Simplify "pid_autotune" parameters
2024-08-14 16:07:15 +08:00
atse
278898fad2
send_command: Switch to thermostat:set_param
...
Use a `dict` to map values to thermostat parameters, which correspond to
the `set_param` parameters in the pytec client. New tag
"thermostat:set_param" used in JSON.
2024-08-14 16:07:14 +08:00
atse
dd83daa5d9
send_command: Remove indirect path to parameter
...
The child at inner_param's childpath to the root parameter... is just
inner_param itself.
2024-08-14 16:06:31 +08:00