Ankündigung

Einklappen
Keine Ankündigung bisher.

Charts unterhalb von Group item=gGF

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

    Charts unterhalb von Group item=gGF

    Hallo Zusammen,

    ich möchte für einzelne Zimmer die Heiztemperaturen im Chart darstellen, aber ohne das diese Charts direkt auf der Startseite erscheinen.

    Wenn ich unterhalb von
    Code:
    Frame {
    		Group item=gFF label="Erste Etage" icon="firstfloor"
    		Group item=gGF label="Erdgeschoss" icon="groundfloor" 
    			}
    den
    Code:
    Frame {
    				Chart item=Heating_Chart period=D refresh=10000
    			}
    angebe erscheint er halt verständlicher weise auf der Startseite.

    Muss ich also die einzelnen Zimmer in der Sitemap aufführen, oder lässt sich dieses direkt in der .items mit html einbinden?
    Code:
    {http://localhost:8080/rrdchart.png?items=Temperature_GF_Living,Heating_GF_Living_Temp_Max,Heating_GF_Living_Temp_Min&period=D}
    Nur wie binde ich das dann an meine GF_Living Seite?


    Danke und Gruß Tom

    #2
    Hallo Tom,

    ich ähnliches vor und kämpfe im Moment mit der *.sitemap

    Ich möchte eine Seite "Wetter" erstellen auf der alle Wetterdaten (bei mir Sonnenhöhe, Azimu, Aussentemp, Helligkeit Norden und Süden) angezeigt wird. Hierzu sollte auf der Startseite ein Menüpunkt "Wetter" aufgeführt sein und in der aufgerufenen Seite dann die o.g. Daten. Sofern ich dann auf die Außentemperatur oder einen Helligkeitswert klicke, sollte sich auf der nächsten Seite die Charts öffnen.

    Im Moment habe ich mit folgendem Code aus der Demo
    Code:
    [SIZE=2]
    [LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Frame[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]label=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Weather"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] {
    [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Text[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]item=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Weather_Temperature {[/SIZE][/LEFT][SIZE=2]
    [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f][LEFT]// Frame {[/LEFT]
    [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//Text item=Weather_Temp_Max[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]
    [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//Text item=Weather_Temp_Min
    // }[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]
    [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Frame[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] {
    [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Chart[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]item=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Weather_Chart [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]period=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]12h [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]refresh=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]10000[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]
    [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]}
    [/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Frame[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] {
    [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Chart[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]item=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Lux_Chart [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]period=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]12h [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]refresh=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]10000[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]
    [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]}
    
    }[/LEFT]
    [/SIZE]
    einen Eintrag im Startmenü, der aber auch die Temperatur enthält.

    Hier hänge ich im Moment da jeder Versuch die Charts scheitert?!

    Evtl. hilft Dir dieser Schnipp ein wenig weiter??

    VG
    Joerg

    Kommentar


      #3
      Hallo Jörg,

      ja für Wetter und Lux-Daten habe ich diese Charts auch bei mir umgesetzt. Allerdings ja fest in Frames unterhalb von Wetter. Dies lies sich auch gut in der Sitemap einrichten, jedoch nicht unterhalb von einer Gruppe, die im .items noch Untergruppen hat, auf die ich ansprechen möchte.

      Ich könnte mir vorstellen, das es auf dem Weg in der .items:
      Code:
      /* Heizungsdaten Chart */
      Group Heating_Living     "Heizdaten"  <climate> (GF_Living) { http="<[http://openhabpi:8080/rrdchart.png?items=Temperature_GF_Living,Heating_GF_Living_Temp_Max,Heating_GF_Living_Temp_Min&period=D]" }
      möglich wäre, jedoch bräuchte man dazu die Ausführung über z.B. "Chart Heating_Living" (was es wohl nicht gibt) und nicht wie jetzt hier über "Group Heating_Living" Da bleibt die Chartseite infach nur leer. :-(

      LG und Dank Tom

      Kommentar


        #4
        Zitat von stone13 Beitrag anzeigen
        Muss ich also die einzelnen Zimmer in der Sitemap aufführen, oder lässt sich dieses direkt in der .items mit html einbinden?
        Ja, wenn Du es auf der "Zimmer-Seite" angezeigt haben möchtest, musst Du die Sitemap "ausimplementieren", d.h. nicht mehr auf die dynamische Erzeugung setzen. Alternative ist, die Charts in einem eigenen Untermenü (welches dann wie in der demo.sitemap ebenfalls "ausimplementiert" ist) zu packen, so mache ich es.

        Grüße,
        Kai

        Kommentar

        Lädt...
        X