mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-25 17:43:35 +05:00
Wrong call for tatget temp, should be just target
This commit is contained in:
@@ -992,7 +992,7 @@ async function initChart() {
|
|||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
|
|
||||||
//График переменные
|
//График переменные
|
||||||
const targetTemp = result?.heating?.target_temp ?? 24;
|
const targetTemp = result?.heating?.target ?? 24;
|
||||||
const maxOut = result?.heating?.maxTemp ?? 90;
|
const maxOut = result?.heating?.maxTemp ?? 90;
|
||||||
const Kn = result?.equitherm?.n_factor ?? 1;
|
const Kn = result?.equitherm?.n_factor ?? 1;
|
||||||
const Ke = result?.equitherm?.e_factor ?? 1.3;
|
const Ke = result?.equitherm?.e_factor ?? 1.3;
|
||||||
@@ -1091,7 +1091,7 @@ function updateChart(formData) {
|
|||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
const targetTemp = result?.heating?.target_temp ?? 24;
|
const targetTemp = result?.heating?.target ?? 24;
|
||||||
const maxOut = result?.heating?.maxTemp ?? 90;
|
const maxOut = result?.heating?.maxTemp ?? 90;
|
||||||
const Kn = parseFloat(formData.get('equitherm[n_factor]')) || 1;
|
const Kn = parseFloat(formData.get('equitherm[n_factor]')) || 1;
|
||||||
const Ke = parseFloat(formData.get('equitherm[e_factor]')) || 1.3;
|
const Ke = parseFloat(formData.get('equitherm[e_factor]')) || 1.3;
|
||||||
|
|||||||
Reference in New Issue
Block a user