Schmales Leerzeichen vor Einheiten in Uebersicht, Anlage, Speicher, Ladefenster
Vor W, kW, kWh, V, mV, A, % und °C steht jetzt ueberall U+2009 wie in der Uebersicht von Hand begonnen (65 Stellen, nur in Anzeigetexten; CSS-Werte und freistehende Achseneinheiten bleiben). Dazu "Wirkungsgrad 96 %" mit Leerzeichen und die Heizstab-Temperaturen mit " / " wie Sonne und Netz. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -113,7 +113,7 @@ const ENERGIEFLUSS_KATALOG = (function () {
|
||||
const a = n => (Math.round(Math.abs(m.zahl("solarManager/i_" + n + "evu")) * 10) / 10).toString().replace(".", ",");
|
||||
return {
|
||||
leistung: Math.abs(netz),
|
||||
neben: a("l1") + " / " + a("l2") + " / " + a("l3") + " A",
|
||||
neben: a("l1") + " / " + a("l2") + " / " + a("l3") + " A",
|
||||
fluss: -netz,
|
||||
ruhe: Math.abs(netz) < 30,
|
||||
};
|
||||
@@ -130,7 +130,7 @@ const ENERGIEFLUSS_KATALOG = (function () {
|
||||
const laden = p < -20;
|
||||
const zeichen = [];
|
||||
if (laden && grenze < 100) {
|
||||
zeichen.push({ art: "uhr", text: Math.round(grenze) + " %", titel: "Ladeleistung begrenzt" });
|
||||
zeichen.push({ art: "uhr", text: Math.round(grenze) + " %", titel: "Ladeleistung begrenzt" });
|
||||
}
|
||||
return {
|
||||
leistung: Math.abs(p),
|
||||
@@ -151,8 +151,8 @@ const ENERGIEFLUSS_KATALOG = (function () {
|
||||
const aut = m.zahl("solarManager/autarky");
|
||||
return {
|
||||
leistung: aut,
|
||||
wert: Math.round(aut) + " %",
|
||||
neben: "Wirkungsgrad " + Math.round(m.zahl("solarManager/eff")) + "%",
|
||||
wert: Math.round(aut) + " %",
|
||||
neben: "Wirkungsgrad " + Math.round(m.zahl("solarManager/eff")) + " %",
|
||||
segmente: [{ w: aut, farbe: "#6cbe58" }],
|
||||
zustand: { an: m.zahl("solarManager/P_PV") >= 20 },
|
||||
};
|
||||
@@ -174,7 +174,7 @@ const ENERGIEFLUSS_KATALOG = (function () {
|
||||
const allgemein = Math.max(0, gemein - heiz);
|
||||
return {
|
||||
leistung: last,
|
||||
neben: "Gemein " + kw(gemein) + " kW",
|
||||
neben: "Gemein " + kw(gemein) + " kW",
|
||||
segmente: [
|
||||
{ w: og, farbe: "#70ccbb", knoten: "og" },
|
||||
{ w: eg, farbe: "#70cc9c", knoten: "eg" },
|
||||
@@ -238,7 +238,7 @@ const ENERGIEFLUSS_KATALOG = (function () {
|
||||
const grad = t => (Math.round(t * 10) / 10).toString().replace(".", ",");
|
||||
return {
|
||||
leistung: w, fluss: w, ruhe: w < 20,
|
||||
neben: grad(oben) + " · " + grad(mitte) + " °C",
|
||||
neben: grad(oben) + " / " + grad(mitte) + " °C",
|
||||
zeichen: [eco ? { art: "eco", titel: "Automatik (Überschuss)" } : { art: "manuell", titel: "Feste Leistung" }],
|
||||
zustand: { an: w >= 20, temps: [oben, mitte, unten] },
|
||||
};
|
||||
@@ -271,7 +271,7 @@ const ENERGIEFLUSS_KATALOG = (function () {
|
||||
// Text der Wallbox ("no car", "charging", ...).
|
||||
const roh = m.text("solarManager/evPlug");
|
||||
const stecker = isNaN(Number(roh)) ? (roh !== undefined && roh !== "no car") : Number(roh) > 0;
|
||||
let neben = Math.round(soc) + " %";
|
||||
let neben = Math.round(soc) + " %";
|
||||
// Restladezeit in Minuten laut Fahrzeug (gatherSkodaData.py). Das
|
||||
// frühere carRemChrg schickt der Manager nicht mehr.
|
||||
const rest = m.zahl("solarManager/evRemChrgTime");
|
||||
@@ -280,7 +280,7 @@ const ENERGIEFLUSS_KATALOG = (function () {
|
||||
neben = "fertig " + String(fertig.getHours()).padStart(2, "0") + ":" + String(fertig.getMinutes()).padStart(2, "0");
|
||||
}
|
||||
const zeichen = wallboxZeichen(m.text("solarManager/evMode"), stecker, m.zahl("solarManager/evLock") > 0);
|
||||
if (tank > 0) zeichen.push({ art: "tank", text: Math.round(tank) + " %", titel: "Tank" });
|
||||
if (tank > 0) zeichen.push({ art: "tank", text: Math.round(tank) + " %", titel: "Tank" });
|
||||
return {
|
||||
leistung: w, fluss: w, ruhe: w < 50 && !stecker,
|
||||
neben, zeichen,
|
||||
|
||||
Reference in New Issue
Block a user