Feature: Added option to set daily yield to zero at midnight

This commit is contained in:
Thomas Basler
2023-09-05 20:27:52 +02:00
parent 23dd248073
commit ec9af886d5
16 changed files with 96 additions and 3 deletions

View File

@@ -73,6 +73,7 @@ void InverterSettingsClass::init()
if (inv != nullptr) {
inv->setReachableThreshold(config.Inverter[i].ReachableThreshold);
inv->setZeroValuesIfUnreachable(config.Inverter[i].ZeroRuntimeDataIfUnrechable);
inv->setZeroYieldDayOnMidnight(config.Inverter[i].ZeroYieldDayOnMidnight);
for (uint8_t c = 0; c < INV_MAX_CHAN_COUNT; c++) {
inv->Statistics()->setStringMaxPower(c, config.Inverter[i].channel[c].MaxChannelPower);
inv->Statistics()->setChannelFieldOffset(TYPE_DC, static_cast<ChannelNum_t>(c), FLD_YT, config.Inverter[i].channel[c].YieldTotalOffset);