Skip to content

Commit

Permalink
Merge pull request #2781 from benderl/bugfix
Browse files Browse the repository at this point in the history
fix debug log messages
  • Loading branch information
benderl authored Aug 21, 2023
2 parents f474397 + 8fe62d9 commit 583e333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ladelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ processChargepoint() {
# calculate actual meter value difference since plugged
pluggedladungbishergeladen=$(echo "scale=2;($llkwh - $pluggedladungstartkwh)/1" | bc | sed 's/^\./0./')
echo "$pluggedladungbishergeladen" >"${RAMDISKDIR}/pluggedladungbishergeladen${chargePointKey}"
openwbDebugLog "CHARGESTAT" 1 "charged since plugged: $pluggedladungstartkwh - $llkwh = $pluggedladungbishergeladen"
openwbDebugLog "CHARGESTAT" 1 "charged since plugged: $llkwh - $pluggedladungstartkwh = $pluggedladungbishergeladen"
# reset unplug timer
echo 0 >"${RAMDISKDIR}/pluggedtimer${chargePointKey}"
else
Expand Down Expand Up @@ -171,7 +171,7 @@ processChargepoint() {
# format time charged
restzeittext=$(getTimeDiffString "$restzeit")
echo "$restzeittext" >"${RAMDISKDIR}/restzeit${chargePointKey}"
openwbDebugLog "CHARGESTAT" 1 "energyCharged=${bishergeladen}kWh; rangeCharged=${gelr}km; timeRemaining=${restzeit}m ($restzeittext)"
openwbDebugLog "CHARGESTAT" 1 "energyCharged: ${llkwh} - ${ladelstart}=${bishergeladen}kWh; rangeCharged=${gelr}km; timeRemaining=${restzeit}m ($restzeittext)"
else
# new charge detected
openwbDebugLog "CHARGESTAT" 1 "new charge detected"
Expand Down

0 comments on commit 583e333

Please sign in to comment.