Ankündigung

Einklappen
Keine Ankündigung bisher.

Openweathermap - Darstellung in der BasicUI

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Openweathermap - Darstellung in der BasicUI

    Hallo,

    ich habe gestern einmal mit dem Openweathermap Binding einige Versuche gestartet und komme auch zu Ergebnissen. Viele Beispiele im Netzt sind für Habpanel gemacht. In der BasicUI sieht die Übersicht aber leider nicht so toll aus:
    Bildschirmfoto 2020-12-13 um 12.18.10.jpg
    Kann man das irgendwie aufhübschen? Vielleicht das Wetter Icon einblenden, welches dann erst im Untermenü sichtbar wird?
    Bildschirmfoto 2020-12-13 um 12.57.01.jpg
    openHAB2 2.5.10 als Docker auf einen unRAID Server (Repository: openhab/openhab:latest-debian)
    Devices: KNX & ZWave

    #2
    Ich gehe mal davon aus, dass Du einfach Group item=aktuelles_Wetter geschrieben hast (wobei dann aktuelles_Wetter das Group Item ist, in dem alle anderen Items der aktuellen Daten enthalten sind)?

    Besser wäre ein
    Code:
    Text item=aktuelle_Wetterlage {
        Text item=Letzte Messung
        ...
    }
    Du musst also den gesamten Bereich manuell anlegen.

    Kommentar


      #3
      Ich habe das so definiert:
      ITEMS:
      Code:
      [COLOR=#008000]// Aktuelles Wetter[/COLOR]
      [COLOR=#0000ff]DateTime[/COLOR][COLOR=#267f99]LetzteMessung[/COLOR][COLOR=#000000] <time> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#time-stamp"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]String[/COLOR][COLOR=#267f99]AktuelleWetterlage[/COLOR][COLOR=#000000] <sun_clouds> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#condition"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Image[/COLOR][COLOR=#267f99]AktuelleWetterlageIcon[/COLOR][COLOR=#000000] { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#icon"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Temperature [/COLOR][COLOR=#267f99]AktuelleTemperatur[/COLOR][COLOR=#000000] <temperature> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#temperature"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Temperature [/COLOR][COLOR=#267f99]AktuellegefuhlteTemperatur[/COLOR][COLOR=#000000] <temperature> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#apparent-temperature"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Pressure [/COLOR][COLOR=#267f99]AktuellerLuftdruck[/COLOR][COLOR=#000000] <pressure> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#pressure"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Dimensionless [/COLOR][COLOR=#267f99]AktuelleLuftfeuchtigkeit[/COLOR][COLOR=#000000] <humidity> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#humidity"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Speed [/COLOR][COLOR=#267f99]AktuelleWindgeschwindigkeit[/COLOR][COLOR=#000000] <wind> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#wind-speed"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Angle [/COLOR][COLOR=#267f99]AktuelleWindrichtung[/COLOR][COLOR=#000000] <wind> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#wind-direction"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Dimensionless [/COLOR][COLOR=#267f99]AktuelleBewolkung[/COLOR][COLOR=#000000] <clouds> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#cloudiness"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Length [/COLOR][COLOR=#267f99]AktuellRegen[/COLOR][COLOR=#000000] <rain> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#rain"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Length [/COLOR][COLOR=#267f99]AktuellSchnee[/COLOR][COLOR=#000000] <snow> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#snow"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Length [/COLOR][COLOR=#267f99]AktuellSichtweite[/COLOR][COLOR=#000000] <visibility> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:current#visibility"[/COLOR][COLOR=#000000] }[/COLOR]
      
      [COLOR=#008000]// Wettervorhersage für 3 Stunden[/COLOR]
      
      [COLOR=#008000]// Wettervorhersage für heute[/COLOR]
      [COLOR=#0000ff]DateTime[/COLOR][COLOR=#267f99]VorhersageDatum[/COLOR][COLOR=#000000] <time> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#time-stamp"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]String[/COLOR][COLOR=#267f99]HeuteWetterlage[/COLOR][COLOR=#000000] <sun_clouds> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#condition"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Image[/COLOR][COLOR=#267f99]HeuteWetterlageIcon[/COLOR][COLOR=#000000] { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#icon"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Temperature [/COLOR][COLOR=#267f99]HeuteTemperatur[/COLOR][COLOR=#000000] <temperature> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#temperature"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Temperature [/COLOR][COLOR=#267f99]HeutegefuhlteTemperatur[/COLOR][COLOR=#000000] <temperature> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#apparent-temperature"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Temperature [/COLOR][COLOR=#267f99]HeuteMinTemp[/COLOR][COLOR=#000000] <temperature> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#min-temperature"[/COLOR][COLOR=#000000]}[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Temperature [/COLOR][COLOR=#267f99]HeuteMaxTemp[/COLOR][COLOR=#000000] <temperature> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#max-temperature"[/COLOR][COLOR=#000000]}[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Pressure [/COLOR][COLOR=#267f99]HeuteLuftdruck[/COLOR][COLOR=#000000] <pressure> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#pressure"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Dimensionless [/COLOR][COLOR=#267f99]HeuteLuftfeuchtigkeit[/COLOR][COLOR=#000000] <humidity> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#humidity"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Speed [/COLOR][COLOR=#267f99]HeuteWindgeschwindigkeit[/COLOR][COLOR=#000000] <wind> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#wind-speed"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Angle [/COLOR][COLOR=#267f99]HeuteWindrichtung[/COLOR][COLOR=#000000] <wind> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#wind-direction"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Dimensionless [/COLOR][COLOR=#267f99]HeuteBewolkung[/COLOR][COLOR=#000000] <clouds> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#cloudiness"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Length [/COLOR][COLOR=#267f99]HeuteRegen[/COLOR][COLOR=#000000] <rain> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#rain"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Length [/COLOR][COLOR=#267f99]HeuteSchnee[/COLOR][COLOR=#000000] <snow> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#snow"[/COLOR][COLOR=#000000] }[/COLOR]
      [COLOR=#0000ff]Number[/COLOR][COLOR=#af00db]:[/COLOR][COLOR=#000000]Length [/COLOR][COLOR=#267f99]HeuteSichtweite[/COLOR][COLOR=#000000] <visibility> { [/COLOR][COLOR=#af00db]channel[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#a31515]"openweathermap:weather-and-forecast:395f1637:local:forecastToday#visibility"[/COLOR][COLOR=#000000] }[/COLOR]
      SITEMAP:
      Code:
      [COLOR=#0000ff]Frame[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Wetter"[/COLOR][COLOR=#000000] {[/COLOR][INDENT][COLOR=#0000ff]Text[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Aktuelles Wetter"[/COLOR][COLOR=#000000] {[/COLOR][/INDENT][INDENT=2][COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]StationName[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Wetterstation [%s]"[/COLOR]
      [COLOR=#267f99]Mapview[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]StationLocation[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Standort der Wetterstation [%2$s°N %3$s°E]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]LetzteMessung[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Letzte Messung [%1$td.%1$tm.%1$tY - %1$tH:%1$tM:%1$tS]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleWetterlage[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Wetterlage [%s]"[/COLOR]
      [COLOR=#0000ff]Image[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleWetterlageIcon[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Icon"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleTemperatur[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Temperatur [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuellegefuhlteTemperatur[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Gefühlte Temperatur [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuellerLuftdruck[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Luftdruck [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleLuftfeuchtigkeit[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Luftfeuchtigkeit [%d %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleWindgeschwindigkeit[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Windgeschwindigkeit [%.1f km/h]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleWindrichtung[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Windrichtung [%d %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleBewolkung[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Bewölkung [%d %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuellRegen[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Regen [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuellSchnee[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Schnee [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuellSichtweite[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Sichtweite [%.1f km]"[/COLOR][/INDENT]
       [COLOR=#000000]}[/COLOR][INDENT][COLOR=#0000ff]Text[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Wettervorhersage Heute"[/COLOR][COLOR=#000000] {[/COLOR][/INDENT][INDENT=2][COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]VorhersageDatum[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Datum der Vorhersage [%1$td.%1$tm.%1$tY - %1$tH:%1$tM:%1$tS]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteWetterlage[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Wetterlage [%s]"[/COLOR]
      [COLOR=#0000ff]Image[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteWetterlageIcon[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Icon"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteTemperatur[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Temperatur [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeutegefuhlteTemperatur[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Gefühlte Temperatur [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteMinTemp[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Min. Temperatur [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteMaxTemp[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Max. Temperatur [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteLuftdruck[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Luftdruck [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteLuftfeuchtigkeit[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Luftfeuchtigkeit [%d %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteWindgeschwindigkeit[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Windgeschwindigkeit [%.1f km/h]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteWindrichtung[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Windrichtung [%d %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteBewolkung[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Bewölkung [%d %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteRegen[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Regen [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteSchnee[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Schnee [%.1f %unit%]"[/COLOR]
      [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]HeuteSichtweite[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Sichtweite [%.1f km]"[/COLOR][/INDENT]
      Ich hatte mir das so gedacht, dass man auf der Übersichtsseite schon einmal die Wettericons sieht. Ich müsste also nach der Definition Text label="Wettervorhersage Heute" ein ICON definieren. Statisch könnte das ja etwas sein wie ICON=Wetter, aber ich brauche ja eine dynamische Darstellung. Ich müsste das hier heraus nehmen:

      Image item=HeuteWetterlageIcon label="Icon"

      ...aber so geht das nicht.
      openHAB2 2.5.10 als Docker auf einen unRAID Server (Repository: openhab/openhab:latest-debian)
      Devices: KNX & ZWave

      Kommentar


        #4
        Nein, Du kannst einfach das entsprechende Item als "Überschrift" verwenden.

        Kommentar


          #5
          Super, das passt jetzt so viel besser. Ich habe das so gelöst:
          Code:
          [COLOR=#0000ff]Frame[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Wetter"[/COLOR][COLOR=#000000] {[/COLOR]
          [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleWetterlage[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Aktuelle Wetterlage [%s]"[/COLOR][COLOR=#000000] {[/COLOR]
          [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]StationName[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Wetterstation [%s]"[/COLOR]
          [COLOR=#267f99]Mapview[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]StationLocation[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Standort der Wetterstation [%2$s°N %3$s°E]"[/COLOR]
          [COLOR=#0000ff]Image[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleWetterlageIcon[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Icon"[/COLOR]
          [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]LetzteMessung[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Letzte Messung [%1$td.%1$tm.%1$tY - %1$tH:%1$tM:%1$tS]"[/COLOR]
          [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuelleTemperatur[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Temperatur [%.1f %unit%]"[/COLOR]
          [COLOR=#0000ff]Text[/COLOR][COLOR=#000000] item=[/COLOR][COLOR=#267f99]AktuellegefuhlteTemperatur[/COLOR][COLOR=#000000] label=[/COLOR][COLOR=#a31515]"Gefühlte Temperatur [%.1f %unit%]"[/COLOR]
          So sieht die Ausgabe dann aus:
          Bildschirmfoto 2020-12-17 um 10.13.41.jpg

          Du hast nich noch zufällig eine geniale Idee, wie ich das Icon davor ebenfalls abändern kann, denn ich kann ja m.W. keine zwei ITEMS pro Zeile angeben?
          openHAB2 2.5.10 als Docker auf einen unRAID Server (Repository: openhab/openhab:latest-debian)
          Devices: KNX & ZWave

          Kommentar


            #6
            Wie meinst Du das? Ich dachte, es ginge darum, dass das Icon passend zur Wettterlage ausgegeben wird? Das sollte so doch der Fall sein...

            Kommentar


              #7
              Zitat von udo1toni Beitrag anzeigen
              Wie meinst Du das? Ich dachte, es ginge darum, dass das Icon passend zur Wettterlage ausgegeben wird? Das sollte so doch der Fall sein...
              Leider nein, es wird die Wetterlage als Text ausgegeben, aber das Icon davor ist fest. Ich kann pro Zeile entweder das:
              Text item=AktuelleWetterlage label="Wetterlage [%s]"
              oder das:
              Image item=AktuelleWetterlageIcon label="Icon"
              ausgeben.

              Will heissen: entweder der Text ist korrekt, oder ich stelle lediglich das Icon dar, ohne Text.
              openHAB2 2.5.10 als Docker auf einen unRAID Server (Repository: openhab/openhab:latest-debian)
              Devices: KNX & ZWave

              Kommentar


                #8
                Oh. ja, das geht natürlich nicht... ganz vergessen, dass die Grafik gar kein Icon ist, sondern als Status in einem Item gespeichert wird. Das ist in der Sitemap nicht lösbar.

                Kommentar

                Lädt...
                X