Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/modules/web_themes/standard_legacy/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<div class="card border-danger fill-height">
<div class="card-header bg-danger collapsed" data-toggle="collapse" data-target="#cardGrid">
<img src="img/icons/electric-tower.svg" alt="electric tower" style="width: 1.1em;">
<i class="et-configured fas fa-coins hide"></i>
<i class="ep-configured fas fa-coins hide"></i>
<i class="grid-exporting fas fa-angle-double-left hide"></i>
<i class="grid-importing fas fa-angle-double-right hide"></i>
<span class="grid-power">600 W</span>
Expand Down Expand Up @@ -239,7 +239,7 @@
-- Wh
</div>
</div>
<div class="et-configured hide">
<div class="ep-configured hide">
<hr class="border-danger">
<div class="row">
<div class="col font-italic font-weight-bold">
Expand All @@ -250,7 +250,7 @@
<div class="col pr-0">
aktuell
</div>
<div class="et-current-price col pl-0 text-right">
<div class="ep-current-price col pl-0 text-right">
-- ct/kWh
</div>
</div>
Expand Down Expand Up @@ -412,7 +412,7 @@
</div>
<div class="col-3">
<span class="charge-point-vehicle-charge-mode">--</span>
<span class="et-configured hide">
<span class="ep-configured hide">
<span class="charge-point-charge-mode-options">
<span
class="chargemode-options chargemode-option-instant_charging chargemode-option-scheduled_charging">
Expand Down Expand Up @@ -1013,7 +1013,7 @@ <h3 class="mb-0">Einstellungen für "Ziel"</h3>
<!-- Eco -->
<div class="chargemode-options chargemode-option-eco_charging">
<h3>Einstellungen für "Eco"</h3>
<div class="et et-configured hide">
<div class="et ep-configured hide">
<div class="charge-point-charge-mode-options mb-0 hide">
<div class="form-row mb-1">
<div class="col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1173,14 +1173,15 @@ function processETProviderMessages(mqttTopic, mqttPayload) {
if (mqttTopic == 'openWB/optional/ep/configured') {
const configured = JSON.parse(mqttPayload);
if (configured) {
$('.et-configured').removeClass('hide');
$('.ep-configured').removeClass('hide');
} else {
$('.et-configured').addClass('hide');
$('.ep-configured').addClass('hide');
}
} else if (mqttTopic == 'openWB/optional/ep/get/prices') {
electricityPriceList = JSON.parse(mqttPayload);
$('.charge-point-eco-charge-max_price-button').prop('disabled', false);
var currentPrice = electricityPriceList[Object.keys(electricityPriceList)[0]] * 100000;
$('.et-current-price').text(currentPrice.toLocaleString(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 2 }) + ' ct/kWh');
$('.ep-current-price').text(currentPrice.toLocaleString(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 2 }) + ' ct/kWh');
}
}

Expand Down