Skip to content

Commit

Permalink
Merge pull request #1324 from Adminius/patch-10
Browse files Browse the repository at this point in the history
Charging power fix
  • Loading branch information
bassmaster187 authored Jun 25, 2024
2 parents 95cfcd9 + fa0351f commit 31a3739
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TeslaLogger/www/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ function GetCurrentData()
var datetime = at.toLocaleTimeString(loc, { hour: '2-digit', minute: '2-digit' });

$('#car_statusLabel').text("<?php t("Charging"); ?>:");
if(jsonData["fast_charger_present"])
if(jsonData["charger_phases_calc" > 0])
{
$('#car_status').html(jsonData["charger_power_calc_w"] + " W / +" + jsonData["charge_energy_added"] + " kWh<br>" +
jsonData["charger_voltage"]+"V / " + jsonData["charger_actual_current_calc"]+"A / "+ jsonData["charger_phases_calc"]+"P<br>" +
"<?php t("Done"); ?>: "+ hour +"h "+minute+"m <br><?php t("Done at"); ?>: " + datetime + " / " + jsonData["charge_limit_soc"] +"%");
}
else
{
$('#car_status').html(jsonData["charger_power_calc_w"] + " W / +" + jsonData["charge_energy_added"] + " kWh<br>" +
jsonData["charger_voltage"]+"V / " + jsonData["charger_actual_current_calc"]+"A / "+ jsonData["charger_phases_calc"]+"P<br>" +
$('#car_status').html(jsonData["charger_power"] + " kW / +" + jsonData["charge_energy_added"] + " kWh<br>" +
"<?php t("Done"); ?>: "+ hour +"h "+minute+"m <br><?php t("Done at"); ?>: " + datetime + " / " + jsonData["charge_limit_soc"] +"%");
}

Expand Down

0 comments on commit 31a3739

Please sign in to comment.