von Werner » 26 Jul 2026 21:08
Der erste Wert (lokaler Sensor) in der index.html.tmpl
der zweite Wert (aus der Vorhersage) in der style.css und der
aktuellen new-belchertown.js.tmpl
Auszug davon:
Code: Alles auswählen
const AQI_COLORS = {
light: [
{background: "#1b6f35", text: "#ffffff"},
{background: "#ffbe00", text: "#000000"},
{background: "#ff7e00", text: "#000000"},
{background: "#c1121f", text: "#ffffff"},
{background: "#8f3f97", text: "#ffffff"},
{background: "#7e0023", text: "#ffffff"}
],
dark: [
{background: "#7bdc65", text: "#000000"},
{background: "#f0cf5a", text: "#000000"},
{background: "#ffb45a", text: "#000000"},
{background: "#ff7a73", text: "#000000"},
{background: "#d69af0", text: "#000000"},
{background: "#f0a3bd", text: "#000000"}
]
};
const AQI_CATEGORY_SELECTOR = ".wx-aqi-category";
Der erste Wert (lokaler Sensor) in der index.html.tmpl
der zweite Wert (aus der Vorhersage) in der style.css und der
aktuellen new-belchertown.js.tmpl
Auszug davon:
[code]const AQI_COLORS = {
light: [
{background: "#1b6f35", text: "#ffffff"},
{background: "#ffbe00", text: "#000000"},
{background: "#ff7e00", text: "#000000"},
{background: "#c1121f", text: "#ffffff"},
{background: "#8f3f97", text: "#ffffff"},
{background: "#7e0023", text: "#ffffff"}
],
dark: [
{background: "#7bdc65", text: "#000000"},
{background: "#f0cf5a", text: "#000000"},
{background: "#ffb45a", text: "#000000"},
{background: "#ff7a73", text: "#000000"},
{background: "#d69af0", text: "#000000"},
{background: "#f0a3bd", text: "#000000"}
]
};
const AQI_CATEGORY_SELECTOR = ".wx-aqi-category";
[/code]