Skip to content

Commit

Permalink
Charging power fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminius authored Jun 25, 2024
1 parent 3ae595c commit fa0351f
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 fa0351f

Please sign in to comment.