From fa0351faf5ebaa71075110b1bda8c9403b105a90 Mon Sep 17 00:00:00 2001 From: Eugen Date: Tue, 25 Jun 2024 10:09:50 +0200 Subject: [PATCH] Charging power fix --- TeslaLogger/www/admin/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TeslaLogger/www/admin/index.php b/TeslaLogger/www/admin/index.php index 70dfe3190..485c67beb 100644 --- a/TeslaLogger/www/admin/index.php +++ b/TeslaLogger/www/admin/index.php @@ -165,15 +165,15 @@ function GetCurrentData() var datetime = at.toLocaleTimeString(loc, { hour: '2-digit', minute: '2-digit' }); $('#car_statusLabel').text(":"); - 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
" + + jsonData["charger_voltage"]+"V / " + jsonData["charger_actual_current_calc"]+"A / "+ jsonData["charger_phases_calc"]+"P
" + ": "+ hour +"h "+minute+"m
: " + datetime + " / " + jsonData["charge_limit_soc"] +"%"); } else { - $('#car_status').html(jsonData["charger_power_calc_w"] + " W / +" + jsonData["charge_energy_added"] + " kWh
" + - jsonData["charger_voltage"]+"V / " + jsonData["charger_actual_current_calc"]+"A / "+ jsonData["charger_phases_calc"]+"P
" + + $('#car_status').html(jsonData["charger_power"] + " kW / +" + jsonData["charge_energy_added"] + " kWh
" + ": "+ hour +"h "+minute+"m
: " + datetime + " / " + jsonData["charge_limit_soc"] +"%"); }