Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. LED Anzeige für VIS - Akku,Pegel,Kreis

    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

    LED Anzeige für VIS - Akku,Pegel,Kreis

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @liv-in-sky last edited by

      @liv-in-sky sagte in led kreis für vis:

      musst du das script neustarten, nachdem du die dp geändert hast

      nee, ich hatte direkt im Skript die LED 15->5 und das Widget 170->88 gesetzt
      LED_DOTs_001.png

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

        @homoran

        nee - im script ist eigentlich nichts zu ändern - außer man will das als zweites widget benutzen, dann muss dpVIS geändert werden

        nicht überall -aber meist gewinnen die datenpunkte das setting, nicht das setting im script

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

          @liv-in-sky OK - also noch mal neu, denn ich habe keine Datenpunkte.
          Woher das Widget es dann nimmt weiß ich nicht

          Oder ist der Inhalt der DPs so groß, dass das Verzeichnis erst in einer Stunde aufklappt?

          EDIT:
          Reload hilft

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

            @homoran da müssen datenpunkte sein

            unter javascript.x.Tabellen@Liv.LED1RingVIS

            EDIT: ok

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @liv-in-sky last edited by

              @liv-in-sky jo, sind da, aber LED und Gesamt größe vertauscht im Vergleich zum Skript

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

                @homoran datenpunkte zählen 🙂

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

                  @homoran die bunten leds habe ich anders gelöst, als in deiner beschreibung im anderen thread- ich wollte nicht "rumrechnen", um zu bestimmen, wieviele leds ich in welcher farbe bei bunt machen muss

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @liv-in-sky last edited by

                    @liv-in-sky 8

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

                      @homoran 9

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

                        @liv-in-sky LED_DOTs_002.png

                        bei 8 DPs jetzt nach der Beschriftung der states (nicht im Skript)

                        LED_DOTs_States01.png

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

                          @homoran ach du meinst 8 verschiedene farben - ich wollte es allgemein halten, weil bei dir die 32 die anzahl der leds ist (das ist einfach) - die brechnung bei einer beliebigen anzahl leds ist mir momentan zu kompliziert

                          bin verwirrt - ja es sind 8 dp

                          also geht es nicht - sehe nix auf deinem bild ? poste mal den inhalt von : javascript.0.Tabellen@Liv.LED1RingVIS.WidgetAusgabe

                          1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators last edited by

                            @liv-in-sky sagte in led kreis für vis:

                            sehe nix auf deinem bild ?

                            Brille??
                            LED_DOTs_003.png

                            passt weitestgehend. - SUPER!

                            @liv-in-sky sagte in led kreis für vis:

                            oste mal den inhalt von : javascript.0.Tabellen@Liv.LED1RingVIS.WidgetAusgabe

                            <style>#outerLED1RingVIS{		position: relative;   	height: 90px;   	width: 90px; //250px;   	/*border: 1px solid red;*/   	} 			   	.innerLED1RingVIS{   	position: absolute;   	/*	border: 1px solid black; */   	height: 7.7px;   	width: NaNpx;   	background: silver;   	border-radius: 50%;   	display: flex; /* or inline-flex */   	align-items: center;   	justify-content: center;   	}.inner1LED1RingVIS{  			 background-image: linear-gradient(red 20%, yellow 40%, orange 60%, cyan 80%);}</style><div id="outerLED1RingVIS"><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div><div class="innerLED1RingVIS inner1LED1RingVIS "></div></div><script>/*setTimeout(function () { */   	var outer = document.getElementById('outerLED1RingVIS');   	var outerWidth = document.getElementById('outerLED1RingVIS').offsetWidth;   	var outerHeight = document.getElementById('outerLED1RingVIS').offsetHeight;   	for(var i = 0; i < outer.children.length; i++){   	var r = outerWidth / 2 - outerLED1RingVIS.children[i].offsetWidth / 2;   	var phi = i / outerLED1RingVIS.children.length;   	var x = r * Math.cos(phi * 2 * Math.PI) + r;   	var y = r * Math.sin(phi * 2 * Math.PI) + r;   	outerLED1RingVIS.children[i].style.left = x+'px';   	outerLED1RingVIS.children[i].style.top = y+'px';   	console.log(outerLED1RingVIS.children[i].style.left);   	} 			/*}, 10000);*/</script>
                            

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

                              @homoran gut versteckt 🙂

                              Homoran 1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @liv-in-sky last edited by

                                @liv-in-sky welche Farben sind denn zulässig?
                                gelb, yellow, gold ohne Erfolg bei AnzahlLEDsEIN 6,Farbe

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

                                  @homoran deutsch geht nicht

                                  eigentlich alles z.b.

                                  • yellow, red, green, blue, lightblue, usw
                                  • #ffffff , #14f54b , usw

                                  mit: 6,#14f54b

                                  Image 3.png

                                  Homoran 2 Replies Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @liv-in-sky last edited by

                                    @liv-in-sky Danke, aber dann muss ich mir erst mal die Regeln erarbeiten 😉

                                    • Durchmesser des Widgets: ok (auch wenn es nicht zu den Angaben im Skript passt!)
                                    • Durchmesser der Punkte: ok (auch wenn es nicht zu den Angaben im Skript passt!)
                                    • Alle LEDs: keine erkennbare Funktion. Was muss da rein?
                                    • alles aus: keine erkennbare Funktion. Was muss da rein?
                                    • alles bunt: keine erkennbare Funktion. Was muss da rein?
                                    • Anzahl LEDs: ok!
                                    • Anzahl LEDsEIN: keine Wirkung

                                    Wie stelle ich ein, dass wie viele LEDs eine Farbe, die anderen leer (z.B.=grey) sind?

                                    liv-in-sky 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @liv-in-sky last edited by

                                      @liv-in-sky

                                      EDIT:

                                      Auf einmal ist da was 😱
                                      Hab aber jetzt zu viel gespielt, um sagen zu können woran es lag

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

                                        @homoran sagte in led kreis für vis:

                                        Alle LEDs: keine erkennbare Funktion. Was muss da rein?

                                        nur die farbe

                                        @homoran sagte in led kreis für vis:

                                        alles aus: keine erkennbare Funktion. Was muss da rein?

                                        true

                                        @homoran sagte in led kreis für vis:

                                        alles bunt keine erkennbare Funktion. Was muss da rein?

                                        einfach bunt reinschreiben (oder irgnedetwas) - reagiert auf aktualisierung

                                        @homoran sagte in led kreis für vis:

                                        Anzahl LEDsEIN: keine Wirkung

                                        6,#14f54b anzahl und farbe durch komma getrennt

                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @liv-in-sky last edited by

                                          @liv-in-sky ja!
                                          so hatte ich mir das gedacht. Hat aber keine Wirkung

                                          Ich spiel mal was.
                                          Alle LEDs:
                                          silver = Regenbogen 😉
                                          yellow = gelb!
                                          grey, oder clear: nix

                                          Anzahl ein, mit Anzahl, Farbname ohne Erfolg, ich teste jetzt mal die HEX

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

                                            @homoran seltsam - habe gerade keine idee

                                            ich teste noch andere sachen - ich sag dir bescheid, wenn ich ein neue version des scriptes habe

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            510
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            79
                                            3056
                                            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