Fix remaining charge time not displayed (#623)

This commit is contained in:
andig 2021-01-29 14:09:29 +01:00 • committed by GitHub
parent 02744f467c
commit 636a54830f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 547 additions and 545 deletions

View file

@ -106,7 +106,7 @@
:charging="charging"
:connected="connected"
:minSoC="minSoC"
:soc="soc"
:hasVehicle="hasVehicle"
:socCharge="socCharge"
:socTitle="socTitle"
></Vehicle>
@ -180,7 +180,7 @@ export default {
chargePower: Number,
chargedEnergy: Number,
// chargeDuration: Number,
soc: Boolean,
hasVehicle: Boolean,
climater: String,
range: Number,
chargeEstimate: Number,
@ -198,6 +198,7 @@ export default {
return {
connected: this.connected,
minSoC: this.minSoC,
hasVehicle: this.hasVehicle,
socCharge: this.socCharge,
climater: this.climater,
chargePower: this.chargePower,

View file

@ -29,7 +29,7 @@ Vehicle.args = {
chargePower: 2800,
chargedEnergy: 11e3,
chargeDuration: 95 * 60,
soc: true,
hasVehicle: true,
chargeEstimate: 5 * 3600,
};
@ -38,7 +38,7 @@ VehicleRange.args = {
chargePower: 2800,
chargedEnergy: 11e3,
chargeDuration: 95 * 60,
soc: true,
hasVehicle: true,
range: 240.123,
chargeEstimate: 5 * 3600,
};
@ -48,7 +48,7 @@ VehicleClimater.args = {
chargePower: 2800,
chargedEnergy: 11e3,
chargeDuration: 95 * 60,
soc: true,
hasVehicle: true,
range: 240.123,
chargeEstimate: 5 * 3600,
climater: "on",
@ -59,7 +59,7 @@ VehicleTimer.args = {
chargePower: 2800,
chargedEnergy: 11e3,
chargeDuration: 95 * 60,
soc: true,
hasVehicle: true,
range: 240.123,
chargeEstimate: 5 * 3600,
socTimerSet: true,

View file

@ -51,7 +51,7 @@
</h2>
</div>
<div class="col-6 col-md-3 mt-3" v-if="soc">
<div class="col-6 col-md-3 mt-3" v-if="hasVehicle">
<div class="mb-2 value">Restzeit</div>
<h2 class="value">
{{ fmtShortDuration(chargeEstimate) }}
@ -71,7 +71,7 @@ export default {
chargePower: Number,
chargedEnergy: Number,
chargeDuration: Number,
soc: Boolean,
hasVehicle: Boolean,
socTimerActive: Boolean,
socTimerSet: Boolean,
climater: String,

View file

@ -400,7 +400,7 @@ func (lp *LoadPoint) Prepare(uiChan chan<- util.Param, pushChan chan<- push.Even
lp.publish("maxCurrent", lp.MaxCurrent)
lp.publish("phases", lp.Phases)
lp.publish("activePhases", lp.Phases)
lp.publish("soc", len(lp.vehicles) > 0)
lp.publish("hasVehicle", len(lp.vehicles) > 0)
lp.Lock()
lp.publish("mode", lp.Mode)

File diff suppressed because it is too large Load diff