Seite 1 von 1

AQI New Belchertown

Verfasst: 26 Jul 2026 19:49
von JoachimF
aqi.png
aqi.png (7.43 KiB) 42 mal betrachtet
Wo finde ich die Farbeinstellungen für die Werte?

Re: AQI New Belchertown

Verfasst: 26 Jul 2026 21:08
von Werner
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";