Browse Source

Disabled yield per day graph and upload of history data

pull/1491/head
VArt67 11 months ago
parent
commit
f2d8208b04
  1. 4
      src/plugins/history.h
  2. 6
      src/web/html/history.html

4
src/plugins/history.h

@ -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);
}
};

6
src/web/html/history.html

@ -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);

Loading…
Cancel
Save