Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 585c96e

Browse files
Keith BannisterKeith Bannister
Keith Bannister
authored and
Keith Bannister
committedAug 27, 2022
Update esc temp
1 parent b4f47bc commit 585c96e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎dashboard.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function onMessageArrived(message) {
118118

119119
let data = JSON.parse(message.payloadString);
120120

121-
addData(temperatureChart, mqtt_message_count, [data.internal_temp, data.external_temp, data.relative_humidity])
121+
addData(temperatureChart, mqtt_message_count, [data.internal_temp, data.external_temp, data.esc_temp, data.relative_humidity])
122122

123123
$('#battery_voltage').html(`${data.battery_voltage} V`);
124124
$('#controller_temp').html(`${data.esc_temp} Deg.`);
@@ -160,6 +160,13 @@ function temp_chart_init() {
160160
backgroundColor: 'rgba(0, 99, 182, 0.2)',
161161
yAxisID: 'y',
162162
},
163+
{
164+
label: 'ESC Temp',
165+
data: [],
166+
borderColor: 'rgba(89, 150, 182, 1)',
167+
backgroundColor: 'rgba(89, 99, 182, 0.2)',
168+
yAxisID: 'y',
169+
},
163170
{
164171
label: 'Humidity',
165172
data: [],
@@ -170,7 +177,6 @@ function temp_chart_init() {
170177
]
171178
};
172179

173-
174180
const temperatureConfig = {
175181
type: 'line',
176182
data: temperatureData,

0 commit comments

Comments
 (0)
Please sign in to comment.