Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Bild aus Datenpunkt mit Variable

    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

    Bild aus Datenpunkt mit Variable

    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      it00x32 @liv-in-sky last edited by

      @liv-in-sky danke, wird zwar richtig "interpretiert" aber wohl so nicht als Bild ausgelesen und angezeigt

      liv-in-sky 1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @it00x32 last edited by

        @it00x32

        welches widget nutzt du - das geht mit dem img widget oder du nimmst ein html widget und setzt dort ein <img src="..........."> ein

        das ist ja eine url zum bild - das muss das widget schon wissen

        I 1 Reply Last reply Reply Quote 0
        • I
          it00x32 @liv-in-sky last edited by

          @liv-in-sky

          da es ja so funktioniert nehme ich an das das format passt. Dein String ist 1:1 das gleiche - wird aber wohl vom Widget so nicht ausgelesen (Standard oder Inventwo)

          liv-in-sky 2 Replies Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @it00x32 last edited by

            @it00x32

            wenn du im chrome browser mit der rechten maustste auf das "bild" klickst und untersuchen auswählst, siehst du was da ankommt und ob das sinn ergibt

            1 Reply Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @it00x32 last edited by liv-in-sky

              @it00x32

              in einem standard html widget, wenn das eingegeben wird

                <img src="{alexa2.0.Echo-Devices.G0916D10016202R7.Player.miniArtUrl}"> 
              

              wird ein bild angegeben

              dann sollte das auch funktionieren

                <img src="{myvar:0_userdata.0.Music.WelcherEcho; 'alexa2.0.Echo-Devices.'+myvar+'.Player.mainArtUrl'}"> 
              

              probiers mal

              liv-in-sky 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @liv-in-sky last edited by

                @liv-in-sky sagte in Bild aus Datenpunkt mit Variable:

                <img src="{myvar:0_userdata.0.Music.WelcherEcho; 'alexa2.0.Echo-Devices.'+myvar+'.Player.mainArtUrl'}">

                probiers mal

                habe es ausprobiert - funktioniert leider nicht

                I 1 Reply Last reply Reply Quote 0
                • I
                  it00x32 @liv-in-sky last edited by

                  @liv-in-sky es wird der Datenpunkt als URL angeben leider

                  liv-in-sky I 2 Replies Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @it00x32 last edited by

                    @it00x32 ja genau - verstehe im moment noch nicht - suche danach

                    sonst müßten wir doch ein script schreiben im editor, welches den datenpunkt ausliest - das kannst du aber dann auch mit blockly machen

                    ich schau mal noch ein wenig nach

                    1 Reply Last reply Reply Quote 0
                    • I
                      it00x32 @it00x32 last edited by

                      @it00x32 ich auch nicht ;-). Per Script ist es sicher möglich, da es sich aber um mehrere solche Fälle handelt wäre es mir wesentlich lieber das so in der Url direkt zu machen als viele Script zu schreiben

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @it00x32 last edited by

                        @it00x32

                        habe leider keine lösung gefunden

                        kannst du den nicht in deine existierenden scripte auch noch einen datenpunkt einfügen, der gleich den vollständigen img code beinhaltet und dann ein binding auf den einrichten

                        du mußt ja eh die id des echos finden - dann kannst du doch auch dort ein vollständiges html img tag schreiben

                        oder liege ich da falsch

                        I 1 Reply Last reply Reply Quote 0
                        • I
                          it00x32 @liv-in-sky last edited by

                          @liv-in-sky trotzdem danke für die Hilfe!

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          858
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          2
                          13
                          371
                          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