2023-05-19 11:23:39 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
|
|
|
<class>MainWindow</class>
|
|
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
|
|
|
<width>1280</width>
|
|
|
|
<height>720</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>1280</width>
|
|
|
|
<height>720</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
|
|
|
<width>3840</width>
|
|
|
|
<height>2160</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="windowTitle">
|
2023-08-11 17:41:31 +08:00
|
|
|
<string>Thermostat Control Panel</string>
|
2023-05-19 11:23:39 +08:00
|
|
|
</property>
|
|
|
|
<widget class="QWidget" name="main_widget">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
|
<horstretch>1</horstretch>
|
|
|
|
<verstretch>1</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="spacing">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<item row="0" column="1">
|
|
|
|
<layout class="QVBoxLayout" name="main_layout">
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QFrame" name="graph_group">
|
|
|
|
<property name="enabled">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
|
<horstretch>1</horstretch>
|
|
|
|
<verstretch>1</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::StyledPanel</enum>
|
|
|
|
</property>
|
|
|
|
<property name="frameShadow">
|
|
|
|
<enum>QFrame::Raised</enum>
|
|
|
|
</property>
|
|
|
|
<layout class="QGridLayout" name="graphs_layout" rowstretch="1,1" columnstretch="1,1,1" rowminimumheight="100,100" columnminimumwidth="100,100,100">
|
|
|
|
<property name="sizeConstraint">
|
|
|
|
<enum>QLayout::SetDefaultConstraint</enum>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="spacing">
|
|
|
|
<number>2</number>
|
|
|
|
</property>
|
|
|
|
<item row="1" column="0">
|
2023-07-28 17:46:12 +08:00
|
|
|
<widget class="ParameterTree" name="ch1_tree" native="true">
|
|
|
|
<property name="HeaderHidden">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
2023-05-19 11:23:39 +08:00
|
|
|
</item>
|
|
|
|
<item row="0" column="0">
|
2023-07-28 17:46:12 +08:00
|
|
|
<widget class="ParameterTree" name="ch0_tree" native="true">
|
|
|
|
<property name="HeaderHidden">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
2023-05-19 11:23:39 +08:00
|
|
|
</item>
|
|
|
|
<item row="1" column="1">
|
2023-07-06 16:06:33 +08:00
|
|
|
<widget class="LivePlotWidget" name="ch1_t_graph" native="true">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="title">
|
|
|
|
<string>Channel 1 Temperature</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="1">
|
2023-07-06 16:06:33 +08:00
|
|
|
<widget class="LivePlotWidget" name="ch0_t_graph" native="true">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="title">
|
|
|
|
<string>Channel 0 Temperature</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="2">
|
2023-07-06 16:06:33 +08:00
|
|
|
<widget class="LivePlotWidget" name="ch0_i_graph" native="true">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="title">
|
|
|
|
<string>Channel 0 Current</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="1" column="2">
|
2023-07-06 16:06:33 +08:00
|
|
|
<widget class="LivePlotWidget" name="ch1_i_graph" native="true">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="title">
|
|
|
|
<string>Channel 1 Current</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QFrame" name="bottom_settings_group">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>0</width>
|
|
|
|
<height>40</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
|
|
|
<width>16777215</width>
|
|
|
|
<height>40</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::StyledPanel</enum>
|
|
|
|
</property>
|
|
|
|
<property name="frameShadow">
|
|
|
|
<enum>QFrame::Raised</enum>
|
|
|
|
</property>
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
|
|
<property name="spacing">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>3</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<layout class="QHBoxLayout" name="settings_layout">
|
|
|
|
<item>
|
|
|
|
<widget class="QLineEdit" name="ip_set_line">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>160</width>
|
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
|
|
|
<width>160</width>
|
|
|
|
<height>16777215</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>192.168.1.26</string>
|
|
|
|
</property>
|
|
|
|
<property name="maxLength">
|
|
|
|
<number>15</number>
|
|
|
|
</property>
|
|
|
|
<property name="placeholderText">
|
|
|
|
<string>IP:port for the Thermostat</string>
|
|
|
|
</property>
|
|
|
|
<property name="clearButtonEnabled">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QSpinBox" name="port_set_spin">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>70</width>
|
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
|
|
|
<width>70</width>
|
|
|
|
<height>16777215</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximum">
|
|
|
|
<number>65535</number>
|
|
|
|
</property>
|
|
|
|
<property name="value">
|
|
|
|
<number>23</number>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="connect_btn">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>100</width>
|
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
|
|
|
<width>100</width>
|
|
|
|
<height>16777215</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="baseSize">
|
|
|
|
<size>
|
|
|
|
<width>100</width>
|
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Connect</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="status_lbl">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
2023-07-19 12:30:25 +08:00
|
|
|
<width>240</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
|
|
|
<width>120</width>
|
|
|
|
<height>16777215</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="baseSize">
|
|
|
|
<size>
|
|
|
|
<width>120</width>
|
|
|
|
<height>50</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Disconnected</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2023-07-19 11:38:04 +08:00
|
|
|
<item>
|
|
|
|
<widget class="QToolButton" name="thermostat_settings">
|
|
|
|
<property name="text">
|
|
|
|
<string notr="true">⚙</string>
|
|
|
|
</property>
|
|
|
|
<property name="popupMode">
|
|
|
|
<enum>QToolButton::InstantPopup</enum>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2023-05-19 11:23:39 +08:00
|
|
|
<item>
|
2023-07-13 17:03:49 +08:00
|
|
|
<widget class="QWidget" name="report_group" native="true">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="enabled">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
2023-07-13 17:03:49 +08:00
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>40</width>
|
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
2023-07-13 17:03:49 +08:00
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
2023-07-20 17:19:51 +08:00
|
|
|
<layout class="QHBoxLayout" name="report_layout" stretch="0,1,1,1">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="spacing">
|
2023-07-13 17:03:49 +08:00
|
|
|
<number>6</number>
|
|
|
|
</property>
|
|
|
|
<property name="sizeConstraint">
|
|
|
|
<enum>QLayout::SetDefaultConstraint</enum>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
2023-05-19 11:23:39 +08:00
|
|
|
</property>
|
2023-07-20 17:19:51 +08:00
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="report_lbl">
|
|
|
|
<property name="text">
|
|
|
|
<string>Poll every: </string>
|
|
|
|
</property>
|
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2023-07-07 15:36:17 +08:00
|
|
|
<item>
|
2023-07-13 17:03:49 +08:00
|
|
|
<widget class="QDoubleSpinBox" name="report_refresh_spin">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
2023-07-13 17:03:49 +08:00
|
|
|
<width>70</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
2023-07-13 17:03:49 +08:00
|
|
|
<width>70</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>16777215</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="baseSize">
|
|
|
|
<size>
|
2023-07-13 17:03:49 +08:00
|
|
|
<width>70</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
2023-07-13 17:03:49 +08:00
|
|
|
<property name="suffix">
|
|
|
|
<string> s</string>
|
|
|
|
</property>
|
|
|
|
<property name="decimals">
|
|
|
|
<number>1</number>
|
|
|
|
</property>
|
|
|
|
<property name="minimum">
|
|
|
|
<double>0.100000000000000</double>
|
|
|
|
</property>
|
|
|
|
<property name="singleStep">
|
|
|
|
<double>0.100000000000000</double>
|
|
|
|
</property>
|
|
|
|
<property name="stepType">
|
|
|
|
<enum>QAbstractSpinBox::AdaptiveDecimalStepType</enum>
|
|
|
|
</property>
|
|
|
|
<property name="value">
|
|
|
|
<double>1.000000000000000</double>
|
2023-05-19 11:23:39 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2023-07-13 17:03:49 +08:00
|
|
|
<widget class="QCheckBox" name="report_box">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
2023-07-13 17:03:49 +08:00
|
|
|
<width>80</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>16777215</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="baseSize">
|
|
|
|
<size>
|
2023-07-13 17:03:49 +08:00
|
|
|
<width>80</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
2023-07-13 17:03:49 +08:00
|
|
|
<property name="text">
|
|
|
|
<string>Report</string>
|
2023-05-19 11:23:39 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2023-07-13 17:03:49 +08:00
|
|
|
<widget class="QPushButton" name="report_apply_btn">
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
2023-07-13 17:03:49 +08:00
|
|
|
<width>80</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
2023-07-13 17:03:49 +08:00
|
|
|
<width>80</width>
|
2023-05-19 11:23:39 +08:00
|
|
|
<height>16777215</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
2023-07-13 17:03:49 +08:00
|
|
|
<property name="baseSize">
|
|
|
|
<size>
|
|
|
|
<width>80</width>
|
|
|
|
<height>0</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
2023-05-19 11:23:39 +08:00
|
|
|
<property name="text">
|
2023-07-13 17:03:49 +08:00
|
|
|
<string>Apply</string>
|
2023-05-19 11:23:39 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</widget>
|
|
|
|
<customwidgets>
|
|
|
|
<customwidget>
|
2023-07-06 16:06:33 +08:00
|
|
|
<class>ParameterTree</class>
|
2023-05-19 11:23:39 +08:00
|
|
|
<extends>QWidget</extends>
|
2023-07-06 16:06:33 +08:00
|
|
|
<header>pyqtgraph.parametertree</header>
|
2023-05-19 11:23:39 +08:00
|
|
|
<container>1</container>
|
|
|
|
</customwidget>
|
|
|
|
<customwidget>
|
2023-07-06 16:06:33 +08:00
|
|
|
<class>LivePlotWidget</class>
|
2023-05-19 11:23:39 +08:00
|
|
|
<extends>QWidget</extends>
|
2023-07-06 16:06:33 +08:00
|
|
|
<header>pglive.sources.live_plot_widget</header>
|
2023-05-19 11:23:39 +08:00
|
|
|
<container>1</container>
|
|
|
|
</customwidget>
|
|
|
|
</customwidgets>
|
|
|
|
<resources/>
|
|
|
|
<connections/>
|
|
|
|
</ui>
|