2023-06-20 06:03:50 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
|
|
|
|
TemperatureInfoForm {
|
2025-08-01 09:55:30 +00:00
|
|
|
Component.onCompleted: {
|
|
|
|
let sum = 0.0
|
|
|
|
let count = temperatureValues.length
|
|
|
|
for (let i = 0; i < count; ++i)
|
|
|
|
sum += temperatureValues[i]
|
|
|
|
avgTemp = sum / count
|
|
|
|
minTemp = Math.min(...temperatureValues)
|
|
|
|
maxTemp = Math.max(...temperatureValues)
|
|
|
|
}
|
2023-06-20 06:03:50 +00:00
|
|
|
}
|