Commit Graph

126 Commits

Author SHA1 Message Date
8f8517766d Concentrate ThermostatCtrlMenu UI changes 2024-10-07 17:48:24 +08:00
90227107ce Descriptive name 2024-10-07 17:48:24 +08:00
029866ee22 Refactor repeated stuff 2024-10-07 17:48:24 +08:00
c25c49d8c1 Split PID handler UI up 2024-10-07 17:48:24 +08:00
b2f6a61a71 Fix hwrev getting 2024-10-07 17:48:24 +08:00
bae37b554c hwrev updates 2024-10-07 17:48:24 +08:00
fcb5585c0a Fix info boxes for load/saving from flash 2024-10-07 17:48:24 +08:00
72ca1f16a9 Move reset request to thermostat control menu
We don't get auto reconnect anymore
2024-10-07 17:48:24 +08:00
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
4407e5c97a Move channelGraph stuff inside LiveDataPlotter 2024-10-07 17:48:24 +08:00
a82e163d58 Move plot_options_menu stuff into menu 2024-10-07 17:48:24 +08:00
0f117f8ee8 Move autotune ticking connect 2024-10-07 17:48:24 +08:00
377c2dec48 Get thermostat_ctrl_menu to subscribe to hwrev updates 2024-10-07 17:48:24 +08:00
b54cfacd92 Save/load info box content 2024-10-07 17:48:24 +08:00
7cf8d6ee70 Fix loading all channel settings would bring up 2 info boxes 2024-10-07 17:48:24 +08:00
ef86336b95 Add back asyncSlot to save_cfg_request 2024-10-07 17:48:24 +08:00
bc50b295bb hw_rev 2024-10-07 17:48:24 +08:00
4907678d53 fan_update: tec_qt to thermostat_ctrl_menu 2024-10-07 17:48:24 +08:00
9ede52de93 Fix updating status label for hwrev = None 2024-10-07 17:48:24 +08:00
66db9bcc57 Put some menu requests in menu itself 2024-10-07 17:48:24 +08:00
f29095a0da Broadcast ConnectionState changes from Thermostat 2024-10-07 17:48:24 +08:00
7e235c3fea Move sigActivatedHandle to CtrlPanel 2024-10-07 17:48:24 +08:00
e82e561d14 Get rid of timeout on readline 2024-10-07 17:48:24 +08:00
7ec7ae7329 Put send_command in CtrlPanel 2024-10-07 17:48:24 +08:00
9f0064a61c Extra bail removed 2024-10-07 17:48:24 +08:00
d8c7db3f66 return hwrev when start_session 2024-10-07 17:48:24 +08:00
254e391a09 state str 2024-10-07 17:48:24 +08:00
f6276cdd74 params update concurrently 2024-10-07 17:48:24 +08:00
b380d66750 Stuff non-UI changes in Thermostat model 2024-10-07 17:48:24 +08:00
56c3e30c6b Base Thermostat connectivity UI changes to state 2024-10-07 17:48:24 +08:00
5c6652cdcb Remove wait_for
OSError raised anyways
2024-10-07 17:48:24 +08:00
bfc3543972 Actually its OSError 2024-10-07 17:48:24 +08:00
eb9189247f {start,end}_session -> [dis]connect 2024-10-07 17:48:24 +08:00
05dd0afe03 Simplify on_connect_btn_clicked
Raise if OSError
2024-10-07 17:48:24 +08:00
af53926b01 Connecting task moved? 2024-10-07 17:48:24 +08:00
371ddcdc5b AsyncIO version Client -> AsyncioClient 2024-10-07 17:48:24 +08:00
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
cf39eee997 Integrate WrappedClient into Thermostat model 2024-10-07 17:48:24 +08:00
87ef1caf47 Should not stop cancelling read if timeout'd 2024-10-07 17:48:24 +08:00
9d271f97a2 Fix Autotuner state for forceful disconnect 2024-10-07 17:48:24 +08:00
6c09ce1be0 _ 2024-10-07 17:48:24 +08:00
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
c2952f881f Use new style super() 2024-10-07 17:48:24 +08:00
810237bccf Move command line host:port setting handling
To main
2024-10-07 17:48:24 +08:00
f9b1bf8c6c aioclient: Add missing readline for saving
Saving all channels returns multiple JSON objects, read the extra {}.
2024-10-07 17:48:24 +08:00
23aafeba08 import order rearrange 2024-10-07 17:48:24 +08:00
334c4dbdce This is bail 2024-10-07 17:48:24 +08:00
56b2ecfc9b thermostat: Properly register task
Also Thermostat.task -> Thermostat._update_params_task
2024-10-07 17:48:24 +08:00
de583c38c4 ip -> host 2024-10-07 17:48:24 +08:00
5f69cb55e7 Lazy evaluating for debug string command 2024-10-07 17:48:24 +08:00