Disabled yield per day graph and upload of history data

This commit is contained in:
VArt67 2024-02-29 22:39:25 +01:00
parent f2f05a4de9
commit f2d8208b04
2 changed files with 14 additions and 14 deletions

View file

@ -34,9 +34,7 @@ class HistoryData {
void reset() {
loopCnt = 0;
listIdx = 0;
for(uint16_t i = 0; i < (HISTORY_DATA_ARR_LENGTH + 1); i++) {
data[i] = 0;
}
data.fill(0);
}
};

View file

@ -30,6 +30,8 @@
{#UPDATED} <span id="pwrDayRefresh"></span> {#SECONDS}
</p>
</div>
<!--
<h3>{#TOTAL_YIELD_PER_DAY}</h3>
<div class="chartDivContainer">
<div class="chartDiv" id="ydChart"> </div>
@ -48,7 +50,7 @@
<input type="file" name="insert" style="width: 80%;">
</form>
</fieldset>
-->
</div>
</div>
{#HTML_FOOTER}
@ -330,7 +332,7 @@
// Regular update:
window.setInterval("getAjax('/api/powerHistoryDay', parsePowerHistoryDay)", refresh * 1000);
// one after the other
addNextChart = true;
addNextChart = false; // if true: add YieldDayHistory
}
powerHistDayObj.setXScale(refresh, obj.lastValueTs * 1000);
powerHistDayObj.update(obj.value, maximum);