Add a GUI text entry to set the ambient temperature live

New lineEdit_ambient next to the host/connect row - type a value and
press Enter to send {"System": {"AmbientTemp": ...}}. The server now
has a recv handler for the System channel (previously send-only):
updates the real Pot's ambient temperature and, where the controller
has an internal model (Smith), its model Pots too (new
set_ambient_temperature() on TempControllerSmith), then echoes the new
value back so the status bar label and entry itself stay in sync.
This commit is contained in:
2026-06-21 11:53:45 +02:00
parent a44060a9bd
commit 40cf4b69cc
5 changed files with 71 additions and 2 deletions
+29
View File
@@ -3682,6 +3682,35 @@
<string>Connect</string>
</property>
</widget>
<widget class="QLabel" name="label_ambient">
<property name="geometry">
<rect>
<x>520</x>
<y>500</y>
<width>91</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Ambient [°C]</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_ambient">
<property name="geometry">
<rect>
<x>620</x>
<y>500</y>
<width>70</width>
<height>31</height>
</rect>
</property>
<property name="toolTip">
<string>Set the simulated/assumed ambient temperature - press Enter to apply</string>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>