-
Notifications
You must be signed in to change notification settings - Fork 0
/
pv.qml
113 lines (102 loc) · 3.43 KB
/
pv.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
Page {
width: parent ? parent.width : 0
height: parent ? parent.height : 0
title: "Teensy Fan Controller"
ScrollView {
anchors.fill: parent
Page {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: 12
implicitHeight: tempsGrid.height + fansGrid.height + 60
ColumnLayout {
id: tempsGrid
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
Label {
text: qsTr("Sensors")
Layout.fillHeight: true
verticalAlignment: Text.AlignTop
font.bold: true
}
PVSensor {
title: qsTr("Water Supply")
sensor: backEnd.sensor1
visible: !!backEnd.sensor1.pin
deltaT: backEnd.deltaT
showDeltaT: !!backEnd.sensor2.pin
hasSetpointData: true
}
PVSensor {
title: qsTr("Water Return")
sensor: backEnd.sensor2
visible: !!backEnd.sensor2.pin
}
PVSensor {
title: qsTr("Case")
sensor: backEnd.sensor3
visible: !!backEnd.sensor3.pin
}
PVSensor {
title: qsTr("Aux1")
sensor: backEnd.sensor4
visible: !!backEnd.sensor4.pin
hasSetpointData: true
}
PVSensor {
title: qsTr("Aux2")
sensor: backEnd.sensor5
visible: !!backEnd.sensor5.pin
}
}
ColumnLayout {
id: fansGrid
anchors.top: tempsGrid.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.topMargin: 12
Label {
text: qsTr("Fans")
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignTop
font.bold: true
}
PVFan {
title: qsTr("Fan 1")
visible: !!backEnd.fan1.pinRPM
fan: backEnd.fan1
}
PVFan {
title: qsTr("Fan 2")
visible: !!backEnd.fan2.pinRPM
fan: backEnd.fan2
}
PVFan {
title: qsTr("Fan 3")
visible: !!backEnd.fan3.pinRPM
fan: backEnd.fan3
}
PVFan {
title: qsTr("Fan 4")
visible: !!backEnd.fan4.pinRPM
fan: backEnd.fan4
}
PVFan {
title: qsTr("Fan 5")
visible: !!backEnd.fan5.pinRPM
fan: backEnd.fan5
}
PVFan {
title: qsTr("Fan 6")
visible: !!backEnd.fan6.pinRPM
fan: backEnd.fan6
}
}
}
}
}