myio-js-library 0.1.155 → 0.1.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +23 -14
- package/dist/index.js +23 -14
- package/dist/myio-js-library.umd.js +23 -14
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -620,7 +620,7 @@ __export(index_exports, {
|
|
|
620
620
|
formatEnergy: () => formatEnergy,
|
|
621
621
|
formatNumberReadable: () => formatNumberReadable,
|
|
622
622
|
formatTankHeadFromCm: () => formatTankHeadFromCm,
|
|
623
|
-
formatTemperature: () =>
|
|
623
|
+
formatTemperature: () => formatTemperature2,
|
|
624
624
|
formatWaterByGroup: () => formatWaterByGroup,
|
|
625
625
|
formatWaterVolumeM3: () => formatWaterVolumeM3,
|
|
626
626
|
getAuthCacheStats: () => getAuthCacheStats,
|
|
@@ -4894,8 +4894,17 @@ function formatValueByDomain(value, domain) {
|
|
|
4894
4894
|
if (domain === "water") {
|
|
4895
4895
|
return formatWaterVolumeM3(value);
|
|
4896
4896
|
}
|
|
4897
|
+
if (domain === "temperature") {
|
|
4898
|
+
return formatTemperature(value);
|
|
4899
|
+
}
|
|
4897
4900
|
return formatEnergy(value);
|
|
4898
4901
|
}
|
|
4902
|
+
function formatTemperature(temp) {
|
|
4903
|
+
if (temp === null || temp === void 0 || isNaN(temp)) {
|
|
4904
|
+
return "\u2014";
|
|
4905
|
+
}
|
|
4906
|
+
return `${temp.toFixed(0)}\xB0C`;
|
|
4907
|
+
}
|
|
4899
4908
|
function calculateConsumptionPercentage(target, consumption) {
|
|
4900
4909
|
const numericTarget = Number(target);
|
|
4901
4910
|
const numericConsumption = Number(consumption);
|
|
@@ -19980,7 +19989,7 @@ function getSelectedPeriodsLabel(selectedPeriods) {
|
|
|
19980
19989
|
}
|
|
19981
19990
|
return `${selectedPeriods.length} per\xEDodos selecionados`;
|
|
19982
19991
|
}
|
|
19983
|
-
function
|
|
19992
|
+
function formatTemperature2(value, decimals = 1) {
|
|
19984
19993
|
return `${value.toFixed(decimals)}\xB0C`;
|
|
19985
19994
|
}
|
|
19986
19995
|
function exportTemperatureCSV(data, deviceLabel, stats, startDate, endDate) {
|
|
@@ -19994,11 +20003,11 @@ function exportTemperatureCSV(data, deviceLabel, stats, startDate, endDate) {
|
|
|
19994
20003
|
`;
|
|
19995
20004
|
csvContent += `Per\xEDodo: ${startDate} at\xE9 ${endDate}
|
|
19996
20005
|
`;
|
|
19997
|
-
csvContent += `M\xE9dia: ${
|
|
20006
|
+
csvContent += `M\xE9dia: ${formatTemperature2(stats.avg)}
|
|
19998
20007
|
`;
|
|
19999
|
-
csvContent += `M\xEDnima: ${
|
|
20008
|
+
csvContent += `M\xEDnima: ${formatTemperature2(stats.min)}
|
|
20000
20009
|
`;
|
|
20001
|
-
csvContent += `M\xE1xima: ${
|
|
20010
|
+
csvContent += `M\xE1xima: ${formatTemperature2(stats.max)}
|
|
20002
20011
|
`;
|
|
20003
20012
|
csvContent += `Total de leituras: ${stats.count}
|
|
20004
20013
|
`;
|
|
@@ -20289,7 +20298,7 @@ function renderModal(container, state, modalId, error) {
|
|
|
20289
20298
|
">
|
|
20290
20299
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">Temperatura Atual</span>
|
|
20291
20300
|
<div style="font-weight: 700; font-size: 24px; color: ${statusColor}; margin-top: 4px;">
|
|
20292
|
-
${state.currentTemperature !== null ?
|
|
20301
|
+
${state.currentTemperature !== null ? formatTemperature2(state.currentTemperature) : "N/A"}
|
|
20293
20302
|
</div>
|
|
20294
20303
|
<div style="font-size: 11px; color: ${statusColor}; margin-top: 2px;">${statusText}</div>
|
|
20295
20304
|
</div>
|
|
@@ -20300,7 +20309,7 @@ function renderModal(container, state, modalId, error) {
|
|
|
20300
20309
|
">
|
|
20301
20310
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">M\xE9dia do Per\xEDodo</span>
|
|
20302
20311
|
<div id="${modalId}-avg" style="font-weight: 600; font-size: 20px; color: ${colors.text}; margin-top: 4px;">
|
|
20303
|
-
${state.stats.count > 0 ?
|
|
20312
|
+
${state.stats.count > 0 ? formatTemperature2(state.stats.avg) : "N/A"}
|
|
20304
20313
|
</div>
|
|
20305
20314
|
<div style="font-size: 11px; color: ${colors.textMuted}; margin-top: 2px;">${startDateStr} - ${endDateStr}</div>
|
|
20306
20315
|
</div>
|
|
@@ -20311,7 +20320,7 @@ function renderModal(container, state, modalId, error) {
|
|
|
20311
20320
|
">
|
|
20312
20321
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">Min / Max</span>
|
|
20313
20322
|
<div id="${modalId}-minmax" style="font-weight: 600; font-size: 20px; color: ${colors.text}; margin-top: 4px;">
|
|
20314
|
-
${state.stats.count > 0 ? `${
|
|
20323
|
+
${state.stats.count > 0 ? `${formatTemperature2(state.stats.min)} / ${formatTemperature2(state.stats.max)}` : "N/A"}
|
|
20315
20324
|
</div>
|
|
20316
20325
|
<div style="font-size: 11px; color: ${colors.textMuted}; margin-top: 2px;">${state.stats.count} leituras</div>
|
|
20317
20326
|
</div>
|
|
@@ -20611,7 +20620,7 @@ function setupChartTooltip(canvas, container, chartData, state, colors) {
|
|
|
20611
20620
|
}
|
|
20612
20621
|
tooltip.innerHTML = `
|
|
20613
20622
|
<div style="font-weight: 600; margin-bottom: 6px; color: ${colors.primary};">
|
|
20614
|
-
${
|
|
20623
|
+
${formatTemperature2(point.y)}
|
|
20615
20624
|
</div>
|
|
20616
20625
|
<div style="font-size: 11px; color: ${colors.textMuted};">
|
|
20617
20626
|
\u{1F4C5} ${dateStr}
|
|
@@ -20874,7 +20883,7 @@ function renderModal2(container, state, modalId) {
|
|
|
20874
20883
|
<span style="width: 12px; height: 12px; border-radius: 50%; background: ${dd.color};"></span>
|
|
20875
20884
|
<span style="color: ${colors.text}; font-size: 13px;">${dd.device.label}</span>
|
|
20876
20885
|
<span style="color: ${colors.textMuted}; font-size: 11px; margin-left: auto;">
|
|
20877
|
-
${dd.stats.count > 0 ?
|
|
20886
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.avg) : "N/A"}
|
|
20878
20887
|
</span>
|
|
20879
20888
|
</div>
|
|
20880
20889
|
`).join("");
|
|
@@ -20890,15 +20899,15 @@ function renderModal2(container, state, modalId) {
|
|
|
20890
20899
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 11px;">
|
|
20891
20900
|
<span style="color: ${colors.textMuted};">M\xE9dia:</span>
|
|
20892
20901
|
<span style="color: ${colors.text}; font-weight: 500;">
|
|
20893
|
-
${dd.stats.count > 0 ?
|
|
20902
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.avg) : "N/A"}
|
|
20894
20903
|
</span>
|
|
20895
20904
|
<span style="color: ${colors.textMuted};">Min:</span>
|
|
20896
20905
|
<span style="color: ${colors.text};">
|
|
20897
|
-
${dd.stats.count > 0 ?
|
|
20906
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.min) : "N/A"}
|
|
20898
20907
|
</span>
|
|
20899
20908
|
<span style="color: ${colors.textMuted};">Max:</span>
|
|
20900
20909
|
<span style="color: ${colors.text};">
|
|
20901
|
-
${dd.stats.count > 0 ?
|
|
20910
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.max) : "N/A"}
|
|
20902
20911
|
</span>
|
|
20903
20912
|
<span style="color: ${colors.textMuted};">Leituras:</span>
|
|
20904
20913
|
<span style="color: ${colors.text};">${dd.stats.count}</span>
|
|
@@ -21434,7 +21443,7 @@ function setupComparisonChartTooltip(canvas, container, chartData, state, colors
|
|
|
21434
21443
|
<span style="font-weight: 600;">${point.deviceLabel}</span>
|
|
21435
21444
|
</div>
|
|
21436
21445
|
<div style="font-weight: 600; font-size: 16px; color: ${point.deviceColor}; margin-bottom: 4px;">
|
|
21437
|
-
${
|
|
21446
|
+
${formatTemperature2(point.y)}
|
|
21438
21447
|
</div>
|
|
21439
21448
|
<div style="font-size: 11px; color: ${colors.textMuted};">
|
|
21440
21449
|
\u{1F4C5} ${dateStr}
|
package/dist/index.js
CHANGED
|
@@ -4786,8 +4786,17 @@ function formatValueByDomain(value, domain) {
|
|
|
4786
4786
|
if (domain === "water") {
|
|
4787
4787
|
return formatWaterVolumeM3(value);
|
|
4788
4788
|
}
|
|
4789
|
+
if (domain === "temperature") {
|
|
4790
|
+
return formatTemperature(value);
|
|
4791
|
+
}
|
|
4789
4792
|
return formatEnergy(value);
|
|
4790
4793
|
}
|
|
4794
|
+
function formatTemperature(temp) {
|
|
4795
|
+
if (temp === null || temp === void 0 || isNaN(temp)) {
|
|
4796
|
+
return "\u2014";
|
|
4797
|
+
}
|
|
4798
|
+
return `${temp.toFixed(0)}\xB0C`;
|
|
4799
|
+
}
|
|
4791
4800
|
function calculateConsumptionPercentage(target, consumption) {
|
|
4792
4801
|
const numericTarget = Number(target);
|
|
4793
4802
|
const numericConsumption = Number(consumption);
|
|
@@ -19872,7 +19881,7 @@ function getSelectedPeriodsLabel(selectedPeriods) {
|
|
|
19872
19881
|
}
|
|
19873
19882
|
return `${selectedPeriods.length} per\xEDodos selecionados`;
|
|
19874
19883
|
}
|
|
19875
|
-
function
|
|
19884
|
+
function formatTemperature2(value, decimals = 1) {
|
|
19876
19885
|
return `${value.toFixed(decimals)}\xB0C`;
|
|
19877
19886
|
}
|
|
19878
19887
|
function exportTemperatureCSV(data, deviceLabel, stats, startDate, endDate) {
|
|
@@ -19886,11 +19895,11 @@ function exportTemperatureCSV(data, deviceLabel, stats, startDate, endDate) {
|
|
|
19886
19895
|
`;
|
|
19887
19896
|
csvContent += `Per\xEDodo: ${startDate} at\xE9 ${endDate}
|
|
19888
19897
|
`;
|
|
19889
|
-
csvContent += `M\xE9dia: ${
|
|
19898
|
+
csvContent += `M\xE9dia: ${formatTemperature2(stats.avg)}
|
|
19890
19899
|
`;
|
|
19891
|
-
csvContent += `M\xEDnima: ${
|
|
19900
|
+
csvContent += `M\xEDnima: ${formatTemperature2(stats.min)}
|
|
19892
19901
|
`;
|
|
19893
|
-
csvContent += `M\xE1xima: ${
|
|
19902
|
+
csvContent += `M\xE1xima: ${formatTemperature2(stats.max)}
|
|
19894
19903
|
`;
|
|
19895
19904
|
csvContent += `Total de leituras: ${stats.count}
|
|
19896
19905
|
`;
|
|
@@ -20181,7 +20190,7 @@ function renderModal(container, state, modalId, error) {
|
|
|
20181
20190
|
">
|
|
20182
20191
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">Temperatura Atual</span>
|
|
20183
20192
|
<div style="font-weight: 700; font-size: 24px; color: ${statusColor}; margin-top: 4px;">
|
|
20184
|
-
${state.currentTemperature !== null ?
|
|
20193
|
+
${state.currentTemperature !== null ? formatTemperature2(state.currentTemperature) : "N/A"}
|
|
20185
20194
|
</div>
|
|
20186
20195
|
<div style="font-size: 11px; color: ${statusColor}; margin-top: 2px;">${statusText}</div>
|
|
20187
20196
|
</div>
|
|
@@ -20192,7 +20201,7 @@ function renderModal(container, state, modalId, error) {
|
|
|
20192
20201
|
">
|
|
20193
20202
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">M\xE9dia do Per\xEDodo</span>
|
|
20194
20203
|
<div id="${modalId}-avg" style="font-weight: 600; font-size: 20px; color: ${colors.text}; margin-top: 4px;">
|
|
20195
|
-
${state.stats.count > 0 ?
|
|
20204
|
+
${state.stats.count > 0 ? formatTemperature2(state.stats.avg) : "N/A"}
|
|
20196
20205
|
</div>
|
|
20197
20206
|
<div style="font-size: 11px; color: ${colors.textMuted}; margin-top: 2px;">${startDateStr} - ${endDateStr}</div>
|
|
20198
20207
|
</div>
|
|
@@ -20203,7 +20212,7 @@ function renderModal(container, state, modalId, error) {
|
|
|
20203
20212
|
">
|
|
20204
20213
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">Min / Max</span>
|
|
20205
20214
|
<div id="${modalId}-minmax" style="font-weight: 600; font-size: 20px; color: ${colors.text}; margin-top: 4px;">
|
|
20206
|
-
${state.stats.count > 0 ? `${
|
|
20215
|
+
${state.stats.count > 0 ? `${formatTemperature2(state.stats.min)} / ${formatTemperature2(state.stats.max)}` : "N/A"}
|
|
20207
20216
|
</div>
|
|
20208
20217
|
<div style="font-size: 11px; color: ${colors.textMuted}; margin-top: 2px;">${state.stats.count} leituras</div>
|
|
20209
20218
|
</div>
|
|
@@ -20503,7 +20512,7 @@ function setupChartTooltip(canvas, container, chartData, state, colors) {
|
|
|
20503
20512
|
}
|
|
20504
20513
|
tooltip.innerHTML = `
|
|
20505
20514
|
<div style="font-weight: 600; margin-bottom: 6px; color: ${colors.primary};">
|
|
20506
|
-
${
|
|
20515
|
+
${formatTemperature2(point.y)}
|
|
20507
20516
|
</div>
|
|
20508
20517
|
<div style="font-size: 11px; color: ${colors.textMuted};">
|
|
20509
20518
|
\u{1F4C5} ${dateStr}
|
|
@@ -20766,7 +20775,7 @@ function renderModal2(container, state, modalId) {
|
|
|
20766
20775
|
<span style="width: 12px; height: 12px; border-radius: 50%; background: ${dd.color};"></span>
|
|
20767
20776
|
<span style="color: ${colors.text}; font-size: 13px;">${dd.device.label}</span>
|
|
20768
20777
|
<span style="color: ${colors.textMuted}; font-size: 11px; margin-left: auto;">
|
|
20769
|
-
${dd.stats.count > 0 ?
|
|
20778
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.avg) : "N/A"}
|
|
20770
20779
|
</span>
|
|
20771
20780
|
</div>
|
|
20772
20781
|
`).join("");
|
|
@@ -20782,15 +20791,15 @@ function renderModal2(container, state, modalId) {
|
|
|
20782
20791
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 11px;">
|
|
20783
20792
|
<span style="color: ${colors.textMuted};">M\xE9dia:</span>
|
|
20784
20793
|
<span style="color: ${colors.text}; font-weight: 500;">
|
|
20785
|
-
${dd.stats.count > 0 ?
|
|
20794
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.avg) : "N/A"}
|
|
20786
20795
|
</span>
|
|
20787
20796
|
<span style="color: ${colors.textMuted};">Min:</span>
|
|
20788
20797
|
<span style="color: ${colors.text};">
|
|
20789
|
-
${dd.stats.count > 0 ?
|
|
20798
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.min) : "N/A"}
|
|
20790
20799
|
</span>
|
|
20791
20800
|
<span style="color: ${colors.textMuted};">Max:</span>
|
|
20792
20801
|
<span style="color: ${colors.text};">
|
|
20793
|
-
${dd.stats.count > 0 ?
|
|
20802
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.max) : "N/A"}
|
|
20794
20803
|
</span>
|
|
20795
20804
|
<span style="color: ${colors.textMuted};">Leituras:</span>
|
|
20796
20805
|
<span style="color: ${colors.text};">${dd.stats.count}</span>
|
|
@@ -21326,7 +21335,7 @@ function setupComparisonChartTooltip(canvas, container, chartData, state, colors
|
|
|
21326
21335
|
<span style="font-weight: 600;">${point.deviceLabel}</span>
|
|
21327
21336
|
</div>
|
|
21328
21337
|
<div style="font-weight: 600; font-size: 16px; color: ${point.deviceColor}; margin-bottom: 4px;">
|
|
21329
|
-
${
|
|
21338
|
+
${formatTemperature2(point.y)}
|
|
21330
21339
|
</div>
|
|
21331
21340
|
<div style="font-size: 11px; color: ${colors.textMuted};">
|
|
21332
21341
|
\u{1F4C5} ${dateStr}
|
|
@@ -22102,7 +22111,7 @@ export {
|
|
|
22102
22111
|
formatEnergy,
|
|
22103
22112
|
formatNumberReadable,
|
|
22104
22113
|
formatTankHeadFromCm,
|
|
22105
|
-
formatTemperature,
|
|
22114
|
+
formatTemperature2 as formatTemperature,
|
|
22106
22115
|
formatWaterByGroup,
|
|
22107
22116
|
formatWaterVolumeM3,
|
|
22108
22117
|
getAuthCacheStats,
|
|
@@ -4778,8 +4778,17 @@
|
|
|
4778
4778
|
if (domain === "water") {
|
|
4779
4779
|
return formatWaterVolumeM3(value);
|
|
4780
4780
|
}
|
|
4781
|
+
if (domain === "temperature") {
|
|
4782
|
+
return formatTemperature(value);
|
|
4783
|
+
}
|
|
4781
4784
|
return formatEnergy(value);
|
|
4782
4785
|
}
|
|
4786
|
+
function formatTemperature(temp) {
|
|
4787
|
+
if (temp === null || temp === void 0 || isNaN(temp)) {
|
|
4788
|
+
return "\u2014";
|
|
4789
|
+
}
|
|
4790
|
+
return `${temp.toFixed(0)}\xB0C`;
|
|
4791
|
+
}
|
|
4783
4792
|
function calculateConsumptionPercentage(target, consumption) {
|
|
4784
4793
|
const numericTarget = Number(target);
|
|
4785
4794
|
const numericConsumption = Number(consumption);
|
|
@@ -19690,7 +19699,7 @@ ${rangeText}`;
|
|
|
19690
19699
|
}
|
|
19691
19700
|
return `${selectedPeriods.length} per\xEDodos selecionados`;
|
|
19692
19701
|
}
|
|
19693
|
-
function
|
|
19702
|
+
function formatTemperature2(value, decimals = 1) {
|
|
19694
19703
|
return `${value.toFixed(decimals)}\xB0C`;
|
|
19695
19704
|
}
|
|
19696
19705
|
function exportTemperatureCSV(data, deviceLabel, stats, startDate, endDate) {
|
|
@@ -19704,11 +19713,11 @@ ${rangeText}`;
|
|
|
19704
19713
|
`;
|
|
19705
19714
|
csvContent += `Per\xEDodo: ${startDate} at\xE9 ${endDate}
|
|
19706
19715
|
`;
|
|
19707
|
-
csvContent += `M\xE9dia: ${
|
|
19716
|
+
csvContent += `M\xE9dia: ${formatTemperature2(stats.avg)}
|
|
19708
19717
|
`;
|
|
19709
|
-
csvContent += `M\xEDnima: ${
|
|
19718
|
+
csvContent += `M\xEDnima: ${formatTemperature2(stats.min)}
|
|
19710
19719
|
`;
|
|
19711
|
-
csvContent += `M\xE1xima: ${
|
|
19720
|
+
csvContent += `M\xE1xima: ${formatTemperature2(stats.max)}
|
|
19712
19721
|
`;
|
|
19713
19722
|
csvContent += `Total de leituras: ${stats.count}
|
|
19714
19723
|
`;
|
|
@@ -19999,7 +20008,7 @@ ${rangeText}`;
|
|
|
19999
20008
|
">
|
|
20000
20009
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">Temperatura Atual</span>
|
|
20001
20010
|
<div style="font-weight: 700; font-size: 24px; color: ${statusColor}; margin-top: 4px;">
|
|
20002
|
-
${state.currentTemperature !== null ?
|
|
20011
|
+
${state.currentTemperature !== null ? formatTemperature2(state.currentTemperature) : "N/A"}
|
|
20003
20012
|
</div>
|
|
20004
20013
|
<div style="font-size: 11px; color: ${statusColor}; margin-top: 2px;">${statusText}</div>
|
|
20005
20014
|
</div>
|
|
@@ -20010,7 +20019,7 @@ ${rangeText}`;
|
|
|
20010
20019
|
">
|
|
20011
20020
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">M\xE9dia do Per\xEDodo</span>
|
|
20012
20021
|
<div id="${modalId}-avg" style="font-weight: 600; font-size: 20px; color: ${colors.text}; margin-top: 4px;">
|
|
20013
|
-
${state.stats.count > 0 ?
|
|
20022
|
+
${state.stats.count > 0 ? formatTemperature2(state.stats.avg) : "N/A"}
|
|
20014
20023
|
</div>
|
|
20015
20024
|
<div style="font-size: 11px; color: ${colors.textMuted}; margin-top: 2px;">${startDateStr} - ${endDateStr}</div>
|
|
20016
20025
|
</div>
|
|
@@ -20021,7 +20030,7 @@ ${rangeText}`;
|
|
|
20021
20030
|
">
|
|
20022
20031
|
<span style="color: ${colors.textMuted}; font-size: 12px; font-weight: 500;">Min / Max</span>
|
|
20023
20032
|
<div id="${modalId}-minmax" style="font-weight: 600; font-size: 20px; color: ${colors.text}; margin-top: 4px;">
|
|
20024
|
-
${state.stats.count > 0 ? `${
|
|
20033
|
+
${state.stats.count > 0 ? `${formatTemperature2(state.stats.min)} / ${formatTemperature2(state.stats.max)}` : "N/A"}
|
|
20025
20034
|
</div>
|
|
20026
20035
|
<div style="font-size: 11px; color: ${colors.textMuted}; margin-top: 2px;">${state.stats.count} leituras</div>
|
|
20027
20036
|
</div>
|
|
@@ -20321,7 +20330,7 @@ ${rangeText}`;
|
|
|
20321
20330
|
}
|
|
20322
20331
|
tooltip.innerHTML = `
|
|
20323
20332
|
<div style="font-weight: 600; margin-bottom: 6px; color: ${colors.primary};">
|
|
20324
|
-
${
|
|
20333
|
+
${formatTemperature2(point.y)}
|
|
20325
20334
|
</div>
|
|
20326
20335
|
<div style="font-size: 11px; color: ${colors.textMuted};">
|
|
20327
20336
|
\u{1F4C5} ${dateStr}
|
|
@@ -20584,7 +20593,7 @@ ${rangeText}`;
|
|
|
20584
20593
|
<span style="width: 12px; height: 12px; border-radius: 50%; background: ${dd.color};"></span>
|
|
20585
20594
|
<span style="color: ${colors.text}; font-size: 13px;">${dd.device.label}</span>
|
|
20586
20595
|
<span style="color: ${colors.textMuted}; font-size: 11px; margin-left: auto;">
|
|
20587
|
-
${dd.stats.count > 0 ?
|
|
20596
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.avg) : "N/A"}
|
|
20588
20597
|
</span>
|
|
20589
20598
|
</div>
|
|
20590
20599
|
`).join("");
|
|
@@ -20600,15 +20609,15 @@ ${rangeText}`;
|
|
|
20600
20609
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 11px;">
|
|
20601
20610
|
<span style="color: ${colors.textMuted};">M\xE9dia:</span>
|
|
20602
20611
|
<span style="color: ${colors.text}; font-weight: 500;">
|
|
20603
|
-
${dd.stats.count > 0 ?
|
|
20612
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.avg) : "N/A"}
|
|
20604
20613
|
</span>
|
|
20605
20614
|
<span style="color: ${colors.textMuted};">Min:</span>
|
|
20606
20615
|
<span style="color: ${colors.text};">
|
|
20607
|
-
${dd.stats.count > 0 ?
|
|
20616
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.min) : "N/A"}
|
|
20608
20617
|
</span>
|
|
20609
20618
|
<span style="color: ${colors.textMuted};">Max:</span>
|
|
20610
20619
|
<span style="color: ${colors.text};">
|
|
20611
|
-
${dd.stats.count > 0 ?
|
|
20620
|
+
${dd.stats.count > 0 ? formatTemperature2(dd.stats.max) : "N/A"}
|
|
20612
20621
|
</span>
|
|
20613
20622
|
<span style="color: ${colors.textMuted};">Leituras:</span>
|
|
20614
20623
|
<span style="color: ${colors.text};">${dd.stats.count}</span>
|
|
@@ -21144,7 +21153,7 @@ ${rangeText}`;
|
|
|
21144
21153
|
<span style="font-weight: 600;">${point.deviceLabel}</span>
|
|
21145
21154
|
</div>
|
|
21146
21155
|
<div style="font-weight: 600; font-size: 16px; color: ${point.deviceColor}; margin-bottom: 4px;">
|
|
21147
|
-
${
|
|
21156
|
+
${formatTemperature2(point.y)}
|
|
21148
21157
|
</div>
|
|
21149
21158
|
<div style="font-size: 11px; color: ${colors.textMuted};">
|
|
21150
21159
|
\u{1F4C5} ${dateStr}
|
|
@@ -21919,7 +21928,7 @@ ${rangeText}`;
|
|
|
21919
21928
|
exports.formatEnergy = formatEnergy;
|
|
21920
21929
|
exports.formatNumberReadable = formatNumberReadable;
|
|
21921
21930
|
exports.formatTankHeadFromCm = formatTankHeadFromCm;
|
|
21922
|
-
exports.formatTemperature =
|
|
21931
|
+
exports.formatTemperature = formatTemperature2;
|
|
21923
21932
|
exports.formatWaterByGroup = formatWaterByGroup;
|
|
21924
21933
|
exports.formatWaterVolumeM3 = formatWaterVolumeM3;
|
|
21925
21934
|
exports.getAuthCacheStats = getAuthCacheStats;
|