Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Grafana
    5. Grafana iFrame in VIS

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Grafana iFrame in VIS

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      saeft_2003 Most Active @SigiMOE last edited by

      @SigiMOE

      les dir das mal durch ich musste am anfang auch lang rumkämpfen...

      https://forum.iobroker.net/topic/23270/gelöst-grafana-diagramm-in-vis-einfügen

      hast du das gemacht?

      [auth.anonymous]
      enabled = true
      
      # Organization name that should be used for unauthenticated users
      org_name = Main Org.
      
      # Role for unauthenticated users, other valid values are `Editor` and `Admin`
      org_role = Viewer
      
      S 1 Reply Last reply Reply Quote 0
      • S
        SigiMOE @saeft_2003 last edited by

        @saeft_2003 wie lautet der Pfad zu der ini Datei ?

        sudo nano -w /var/www/html/grafana.ini

        geht nicht..., sorry für die dumme Frage, bin pi und linux Anfänger ( schlechte Kombi ich weis 😉 )

        Knallochse F 2 Replies Last reply Reply Quote 0
        • Knallochse
          Knallochse @SigiMOE last edited by

          @SigiMOE https://grafana.com/docs/grafana/latest/installation/configuration/

          1 Reply Last reply Reply Quote 0
          • F
            ftd @SigiMOE last edited by

            @SigiMOE

            sudo nano /etc/grafana/grafana.ini

            ## Zeile 186
            ## set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
            allow_embedding = true
            
            # Zeile 232
            #################################### Users ###############################
            [users]
            # disable user signup / registration
            allow_sign_up = false
            
            # Zeile 299
            #################################### Anonymous Auth ######################
            [auth.anonymous]
            # enable anonymous access
            enabled = true
            
            # specify organization name that should be used for unauthenticated users
            org_name = ioBroker
            
            # specify role for unauthenticated users
            org_role = Viewer
            

            Grafana:
            e41357ae-5bdc-465e-b119-c0bce4fc1e9b-image.png

            1 Reply Last reply Reply Quote 1
            • crepp1967
              crepp1967 last edited by

              Hallo Gemeinde,

              Ich muss hier mal einhaken, ich habe in den letzten beiden Tagen influxdb und grafana auf einem zweiten Pi installiert und in Iobroker integriert (influxdb-Adapter), soweit läuft alles. Nur ins VIS bekomme ich mein Dashboard nicht. Ich habe alle Tips hier im Thread abgearbeitet (mehrmals) Bringe jedoch keine anzeige im VIS zustande.

              Jedoch eine Spur habe ich:
              Das Iframe Dialog Widget bringt mir den Anmeldedialog des Grafana-Servers ins Vis. Anmeldung funktioniert jedoch trotz korrekten Passwortes nicht (oder nur kurz - es wird kein Dashboard aufgerufen)
              Ich bin nun mit meinem Latein am Ende.
              Könnt ihr mir helfen ?

              Grüße,
              Torsten

              Mein iobroker Server ist aktuell (Default Repository)

              1e438fa5-f73c-4f92-828f-57b03fc4a5c0-image.png

              arteck 1 Reply Last reply Reply Quote 0
              • arteck
                arteck Developer Most Active @crepp1967 last edited by

                @crepp1967 du brauchst kein psw..

                hast du im grafana den anonymous freigeschaltet ?

                crepp1967 1 Reply Last reply Reply Quote 0
                • crepp1967
                  crepp1967 @arteck last edited by

                  @arteck 299a5a21-ee03-4edb-9e23-80bd978d1546-image.png

                  Ja, habe ich.

                  crunchip 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @crepp1967 last edited by

                    @crepp1967 mal so nebenbei....verwendest du das auch so? Main Org.??

                    1 Reply Last reply Reply Quote 0
                    • crepp1967
                      crepp1967 last edited by

                      ja, das ist meine grafana.ini - muss da was anderes rein?

                      S crunchip 2 Replies Last reply Reply Quote 0
                      • S
                        saeft_2003 Most Active @crepp1967 last edited by

                        @crepp1967

                        hauptsache hier steht das gleiche. ich musste es aber auch einmal ändern das es funktioniert hat...

                        2020-05-28_12h37_28.png

                        1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @crepp1967 last edited by

                          @crepp1967 naja Main Org. ist ja nur ein Beispiel, man kann da reinschreiben was man möchte. Sollte nur dann in Grafana übereinstimmen.
                          Zu finden bei Einstellungen -->Preferences-->Organization name

                          1 Reply Last reply Reply Quote 1
                          • crepp1967
                            crepp1967 last edited by

                            Jetzt funktioniert es, es ist halt wie immer, kaum macht man es richtig, geht's ...😊
                            Es war ein Denkfehler meinerseits, ich dachte die Grafana GUI übernimmt die Einstellungen in der ini-Datei...

                            Eine Frage habe ich aber noch:
                            mit dem normalen iFrame-Widget sehe ich nichts, ich muss das iFrame Dialog-Widget nehmen, ganz unten in der Auswahl.

                            Gruß Torsten

                            S arteck 2 Replies Last reply Reply Quote 0
                            • S
                              saeft_2003 Most Active @crepp1967 last edited by

                              @crepp1967

                              Das normale iframe geht bei mir ohne Probleme

                              crepp1967 1 Reply Last reply Reply Quote 0
                              • arteck
                                arteck Developer Most Active @crepp1967 last edited by

                                @crepp1967 die ini ist für den Server der die Daten liefert.. die GUI ist halt nur die GUI

                                1 Reply Last reply Reply Quote 0
                                • crepp1967
                                  crepp1967 @saeft_2003 last edited by

                                  @saeft_2003

                                  oben der Dialog iFrame unten der normale iFrame
                                  e5d0c78a-c12d-47cb-ba6d-e4716a1fbbb4-image.png

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    saeft_2003 Most Active @crepp1967 last edited by

                                    @crepp1967

                                    Zeig mal die Quelle vom iframe da kommt nur der link rein...

                                    1 Reply Last reply Reply Quote 0
                                    • crepp1967
                                      crepp1967 last edited by

                                      Hier die bei beiden widgets verwendete Quelle:

                                      <iframe src="http://192.168.1.160:3000/d-solo/LOyg12zRz/test-iob-temp-helligkeit?orgId=1&panelId=2" width="450" height="200" frameborder="0"></iframe>

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        saeft_2003 Most Active @crepp1967 last edited by saeft_2003

                                        @crepp1967

                                        In das iframe kommt nur der http grafana link!

                                        http://192.168.1.160:3000/d-solo/LOyg12zRz/test-iob-temp-helligkeit?orgId=1&panelId=2

                                        1 Reply Last reply Reply Quote 0
                                        • crepp1967
                                          crepp1967 last edited by

                                          Ja, das war das Problem - eigentlich so einfach...

                                          Danke für Eure Hilfe !

                                          Gruß
                                          Torsten

                                          1 Reply Last reply Reply Quote 0
                                          • nils50122
                                            nils50122 last edited by

                                            Ich kämpfe nun auch schon eine Weile mit der Grafana Chart-Ansicht in VIS.

                                            Die Settings für den enable anonymous access, org_name_org_role, allow_embedding habe ich nun alle schon mindestens 10 mal kontrolliert und den Grafana-Server neugestartet.

                                            Der Org_Name in der Konfig ist gleich der in der WEBUI und wurde auch schon testweise mehrere male geändert.

                                            Zugriff auf den Link eines gesharten Graphen "http://192.168.178.150:3000/d-solo/SUMXcb8Wz/smart-home-history?orgId=1&refresh=5s&panelId=3"per anderem Browser ohne den Admin-Logincookie klappt ohne Probleme und ohne Loginfenster.

                                            Binde ich nun diesen Link im iFrame Widget in VIS ein, wird mir absolut garnichts angezeigt.
                                            Ändere ich den Link ab auf "http://localhost:3000/d-solo/SUMXcb8Wz/smart-home-history?orgId=1&refresh=5s&panelId=3" oder "http://ubuntu-server:3000/d-solo/SUMXcb8Wz/smart-home-history?orgId=1&refresh=5s&panelId=3" wird mir angezeigt "Verbindung abgelehnt".

                                            localhost sollte ebenfalls klappen, da IOBroker und Grafana Server auf dem selben Host liegen.

                                            Hat jemand noch eine Idee?

                                            crunchip 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            455
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            android app vis mobile ui vis
                                            21
                                            76
                                            19095
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo