Fixed bugs

This commit is contained in:
Gunnar Skjold
2022-01-30 10:52:51 +01:00
parent 9066af8dc7
commit 244f78ad1a
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ void EnergyAccounting::calcDayCost() {
breakTime(tz->toLocal(now), local);
if(eapi != NULL && eapi->getValueForHour(0) != ENTSOE_NO_VALUE) {
if(!initPrice) costDay = 0;
if(initPrice) costDay = 0;
for(int i = 0; i < local.Hour; i++) {
float price = eapi->getValueForHour(i - local.Hour);
if(price == ENTSOE_NO_VALUE) break;

View File

@@ -35,7 +35,7 @@
"ds" : %d,
"ea" : {
"x" : %.1f,
"t" : %.1f,
"t" : %d,
"h" : {
"u" : %.2f,
"c" : %.2f