Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Node-red: Spritpreise einlesen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Node-red: Spritpreise einlesen

    This topic has been deleted. Only users with topic management privileges can see it.
    • ruhr70
      ruhr70 last edited by

      na, dann sind wir da ähnlich weit.

      hab mit dem Thema auch gerade erst angefangen.

      wie ich das verstanden habe hängt es von der Struktur des JSON ab, Ob du [] brauchst oder nicht.

      wenn es mehrere Werte geben kann ist der Teil als Array (?) strukturiert. dann brauchst du die Klammern. Das erkennt man an der Baumstruktur

      sorry für den chaotischer Text. Er ist per Spracheingabe diktiert.

      Gesendet von iPhone mit Tapatalk

      1 Reply Last reply Reply Quote 0
      • P
        pix last edited by

        Hallo,

        mich hat bei der Ausgabe der Spritpreise die dritte Stelle nach dem Komma (Hoch 9) gestört. In Deutschland wird sie zur Berechnung herangezogen,im Sprachgebrauch aber nie genannt. Zur Anzeige in VIS habe ich deshalb ein kleines Skript geschrieben, dass den Preis auf zwei Nachkommastellen setzt, ohne zu runden.

        /* System VIS Spritpreis
        
        Skript kürzt Spritpreis aus Node Red um eine Stelle (von drei auf zwei Stellen nach dem Komma)
        in Vis Widget wird die Entität ⁹ (hoch 9) bzw mit <sup>9</sup> angehängt.
        (aus 1.119 wird 1.11hoch9)
        
        erstellt: 28.04.2015 von pix
        */
        
        // Erstellen der Variablen
        createState('Sprit_Preis_kurz');
        
        var idPreis = "node-red.0.sprit_preis"/*sprit_preis*/
            idPreis_kurz = "javascript.0.Sprit_Preis_kurz";
        
        // Preis kürzen
        on( {
            id: idPreis,
            valGt: 0
        }, function (data) {
            var rechenwert = data.newState.val * 100; // 100facher Preis jetzt mit einer Nachkommastelle
            rechenwert = Math.floor(rechenwert); // Nachkommastelle (.9) wird abgeschnitten
            rechenwert = rechenwert/100; // es bleiben zwei Nachkommastellen
            setState(idPreis_kurz, rechenwert);
        
        });
        

        261_bildschirmfoto_2015-04-28_um_15.49.52.jpg

        Voranstellen HTML:````
        Diesel

        HTML anhängen:````
        <sup>9</sup> €
        

        Font-Size: 30px

        261_bildschirmfoto_2015-04-28_um_15.53.35.jpg

        Gruß

        Pix

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

          Das ist eine gute Idee. Die Optik ist super, aber….

          Es gibt tatsächlich Tankstellen, die mit halben cent arbeiten und z.b. den Diesel dann für 1.184 anbieten.

          Gruß

          Rainer

          Gesendet von meinem Cynus T7 mit Tapatalk

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

            @Homoran:

            Das ist eine gute Idee. Die Optik ist super, aber….

            Es gibt tatsächlich Tankstellen, die mit halben cent arbeiten und z.b. den Diesel dann für 1.184 anbieten. `

            Da würde ich mir das Leben dann sehr einfach machen…

            Prüfen, ob der Preis auf 4 oder 9 endet.

            Dementsprechend in eine Steuervariable eine 4 oder 9 schreiben.

            Zwei Widgets übereinander legen (eins mit hoch 4 und eins mit hoch 9).

            Das entsprechende Widget anzeigen, je nach dem Wert der Steuervariable (Sichtbarkeit).

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

              So, die super Idee von pix geklaut und umgearbeitet. :roll:

              • alles in Node-red, benötigt kein Script im Javascript Adapter

              • node kann einfach hinter weiteren Preisen kopiert werden

              • berücksichtigt 3. Nachkommastelle mit 4 oder 9

              Einfach hinter der function node für den ermittelten Spritpreis eine weitere function node (mit zwei Ausgängen) mit folgenden Code einsetzen:

              // Preis kürzen
                  var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle
                  var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle
                  rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten
                  rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen
                  msg1 = {};
                  msg1.payload = rechenwert;            // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)
                  msg2 = {};
                  msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln
              
              return [msg1,msg2];
              

              327_2015-04-28_node_spritpreis_zerlegen.jpg
              Node hinter dem Spritpreis, um diesen zu zerlegen.

              Ausgang 1 enthält den Spritpreis mit zwei Nachkommastellen (abgeschnitten, nicht gerundet), z.B. 1,19

              Ausgang 2 enthält die dritte Nachkommestellen (z.B. 4 oder 9), z.B. 9

              Beide Ausgänge einer Node-red Variable zuweisen (die blaue ioBroker out node).

              In VIS nun zwei Widgets übereinanderlegen.

              1. Widget, wie von pix beschrieben, mit der Endung hoch 4

              2. Widget, wie von pix beschrieben, mit der Endung hoch 9

              Die Variable mit der 3. Nachkommastelle wird nun für die Sichtbarkeit verwendet.

              Steht dort eine 4, wird das erste Widget angezeigt. Bei eine 9 das 2. Widget.

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

                Kleine Aufgabe ist noch drin…

                Wenn ein Spritpreis an der zweiten Stelle nach dem Komma eine 0 hat, wird diese als Zahl nicht dargestellt (das dürfte beim Script von pix auch der Fall sein).

                D.h. 1,409 wird als 1,4 und 9 ausgegeben.

                [EDIT] -gelöst-

                Kleine Anpassung im Script. Der auf zwei Stellen gerundete Spritpreis wird nun als String ausgegeben.

                Für Rickshaw usw. verwende ich weiterhin den originalen Spritpreis mir drei Nachkommastellen.

                Für die VIS Ausgabe von pix nehme ich die zwei Nachkomatellen als String

                // Preis kürzen
                    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle
                    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle
                    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten
                    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen
                    msg1 = {};
                    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)
                    msg2 = {};
                    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln
                
                return [msg1,msg2];
                
                1 Reply Last reply Reply Quote 0
                • ruhr70
                  ruhr70 last edited by

                  327_tankstellen.jpg

                  Tankstellen per Detailabfrage.

                  Design der Preisangaben von pix.

                  Dritte Stelle hinter Komma nach Angaben von von Homoran berücksichtigt (4 und 9).

                  Script für zwei Stellen hinterm Komma und separate dritte Stelle von pix angepasst.

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

                    Super Design!

                    Haben wollen 😉 flow, script und view! Als sorglospaket:-)

                    Das sind jetzt aber fixe Tankstellen, oder ändert sich das Logo etwa auch?

                    Gruß

                    Rainer

                    PS oder direkt als Adapter.

                    1 Reply Last reply Reply Quote 0
                    • P
                      pix last edited by

                      Hallo ruhr70,

                      sieht spitze aus. Da muss ich bei mir definitiv noch nacharbeiten.
                      @ruhr70:

                      Wenn ein Spritpreis an der zweiten Stelle nach dem Komma eine 0 hat, wird diese als Zahl nicht dargestellt (das dürfte beim Script von pix auch der Fall sein). ` Habe ich heute erst gemerkt. Schön, dass du das schon verbessert hast (rechenwert.toFixed(2);)

                      Viele Grüße

                      pix

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

                        @Homoran:

                        Haben wollen 😉 flow, script und view! Als sorglospaket:-) `

                        Die Berechnung zur Aufteilung der beiden Nachkommastellen und der dritten Nachkommastelle mit 4 oder 9 ist wirklich nur eine Funktion hinter der Funktion, in der der Preis ermittelt wird. Das kurze Script in der Funktion steht oben beschrieben. Alles in Node-red. Ein JavaScript im JavaScript-Adapter wird nicht benötigt.

                        Das Styling in VIS basiert auf der Beschreibung von pix oben. Hier wüsste ich gar nicht, wie ich die zur Verfügung stellen sollte. Wobei… es ist echt nur dreimal die Preisanzeige von pix, ein paar Zusatzinfos aus der Detailabfrage und ein Widget als Hintergrund.

                        @Homoran:

                        Das sind jetzt aber fixe Tankstellen, oder ändert sich das Logo etwa auch? `

                        Ja, das sind fixe Tankstellen. Dynamisch geht aber auch. Wenn Du die Infos "geöffnet, Text zu den Öffnungszeiten und von/bis" nicht benötigst, dann ist es recht einfach möglich auch dynamisch die drei Tankstellen mit dem besten Preis, inkl. Logo anzuzeigen. Solltest Du die Infos auch benötigen, wäre das ein Thema für eine Javascript Profi (anhand der Tankstellen ID, die richtige Detailabfrage zuzuordnen) oder für ganz viel übereinanderliegende Widgets.

                        Das Logo bekommt man dynmamisch hin, indem man eine Varibale mir dem Inhalt des Felds stations[x].name für die Sichtbarkeit des Logos verwendet. Einfach alle Logos als Widget übereinanderlegen. Die Sichtbarkeit wird über den Inhalt einer Variable (z.B. TankstellenLogo), Inhalt z.B. "Esso Tankstelle" gesteuert.

                        @Homoran:

                        PS oder direkt als Adapter. `

                        Für mich… keine Chance. Ich stehe ganz am Anfang. Ich kann nur Beispiele adaptieren und anpassen. Lerne hier aber unheimlich viel 😉 Danke dafür!

                        @pix: danke für Deine hervorragende Beschreibung!

                        @homoran: eigentlich ist im Threat alles beschrieben. Was kann ich für Dich genau tun?

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

                          Danke,

                          Du hast schon alles gesagt.

                          Werde mich mal nächste Woche selbst hinsetzen.

                          Gruß

                          Rainer

                          Gesendet von meinem Cynus T7 mit Tapatalk

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

                            @Homoran

                            Ich habe den Flow mal kopiert und exportiert. Ich schreibe ein paar Variablen mehr, als ich eigentlich benötige.

                            In den drei http requst nodes müssen noch die eigenen Detailabfragen rein kopiert werden.

                            [{"id":"db49b0eb.24b65","type":"inject","name":"Abfrage Spritpreise","topic":"","payload":"","payloadType":"date","repeat":"600","crontab":"","once":false,"x":457.5,"y":112.5,"z":"5542285c.aabdd8","wires":[["46d2d727.b92d28","e953a261.16ac6","6c3a1816.93c5e8"]]},{"id":"46d2d727.b92d28","type":"http request","name":"Details - Esso Heinrich-Eberhardt-Str.","method":"GET","ret":"obj","url":"","x":504.5,"y":161.50006103515625,"z":"5542285c.aabdd8","wires":[["169092cb.e96f6d","255cdea1.daa322","3bbd32d7.c442ce","637d47c5.9c82b8","fe255c7b.01daa","6d4446ef.92bbb8","d123bc32.2edc4","8d197885.72e688","b047a8b6.4fb858"]]},{"id":"169092cb.e96f6d","type":"function","name":"Diesel Preis extrahieren","func":"msg.payload = parseFloat(msg.payload.station.diesel);\nreturn msg;","outputs":"1","x":716.5000381469727,"y":255.9444580078125,"z":"5542285c.aabdd8","wires":[["4f53d6a2.b0ac28","ed706878.128f98","cdcce89.f323318"]]},{"id":"255cdea1.daa322","type":"debug","name":"","active":false,"console":"false","complete":"false","x":807.5000381469727,"y":159.94464111328125,"z":"5542285c.aabdd8","wires":[]},{"id":"3bbd32d7.c442ce","type":"function","name":"E10 extrahieren","func":"msg.payload = parseFloat(msg.payload.station.e10);\nreturn msg;","outputs":"1","x":682.5000381469727,"y":380.61138916015625,"z":"5542285c.aabdd8","wires":[["87b222aa.784de","4ff72e53.b008d","c98fbc46.36704"]]},{"id":"637d47c5.9c82b8","type":"function","name":"E5 extrahieren","func":"msg.payload = parseFloat(msg.payload.station.e5);\nreturn msg;","outputs":"1","x":688.5000381469727,"y":316.61138916015625,"z":"5542285c.aabdd8","wires":[["374e92bb.c8b16e","538c5251.ac73ac","bc951124.436af"]]},{"id":"fe255c7b.01daa","type":"function","name":"ist auf","func":"msg.payload = msg.payload.station.isOpen;\nreturn msg;","outputs":"1","x":656.5000381469727,"y":463.6113586425781,"z":"5542285c.aabdd8","wires":[["957212ac.6a8df","879a9f22.78656"]]},{"id":"6d4446ef.92bbb8","type":"function","name":"ganztags auf","func":"msg.payload = msg.payload.station.wholeDay;\nreturn msg;","outputs":"1","x":670.5000381469727,"y":501.611328125,"z":"5542285c.aabdd8","wires":[["89496f7a.76b69","18acb2ce.e7534d"]]},{"id":"d123bc32.2edc4","type":"function","name":"Öffnungszeiten Text","func":"msg.payload = msg.payload.station.openingTimes[0].text;\nreturn msg;","outputs":"1","x":678.5000381469727,"y":557.8335571289062,"z":"5542285c.aabdd8","wires":[["c7ad7560.385288","211f893d.dee076"]]},{"id":"8d197885.72e688","type":"function","name":"Start","func":"msg.payload = msg.payload.station.openingTimes[0].start;\nreturn msg;","outputs":"1","x":675.5000381469727,"y":616.8336486816406,"z":"5542285c.aabdd8","wires":[["ec41dc3b.13be2","530ad19d.acf53"]]},{"id":"b047a8b6.4fb858","type":"function","name":"End","func":"msg.payload = msg.payload.station.openingTimes[0].end;\nreturn msg;","outputs":"1","x":676.5000381469727,"y":649.8336486816406,"z":"5542285c.aabdd8","wires":[["ab4bc5a0.54b438","331284de.cced7c"]]},{"id":"4f53d6a2.b0ac28","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":999.5000305175781,"y":258.8333740234375,"z":"5542285c.aabdd8","wires":[["f829879d.07d678","ea65a5b8.159a58"],["f829879d.07d678","96b8b366.69475"]]},{"id":"f829879d.07d678","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1437.5000381469727,"y":254.8333740234375,"z":"5542285c.aabdd8","wires":[]},{"id":"ed706878.128f98","type":"ioBroker out","name":"","topic":"Tanke1_diesel","ack":"true","autoCreate":"true","x":897.6111221313477,"y":217.94439697265625,"z":"5542285c.aabdd8","wires":[]},{"id":"ea65a5b8.159a58","type":"ioBroker out","name":"","topic":"Tanke1_diesel_kurz","ack":"true","autoCreate":"true","x":1251.6111221313477,"y":222.94451904296875,"z":"5542285c.aabdd8","wires":[]},{"id":"96b8b366.69475","type":"ioBroker out","name":"","topic":"Tanke1_diesel_3stelle","ack":"true","autoCreate":"true","x":1257.6111221313477,"y":254.83355712890625,"z":"5542285c.aabdd8","wires":[]},{"id":"538c5251.ac73ac","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":996.6111145019531,"y":336.83349609375,"z":"5542285c.aabdd8","wires":[["579fb86c.a86048","2f9fc6bb.d0603a"],["579fb86c.a86048","ff890578.0076f8"]]},{"id":"579fb86c.a86048","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1434.6111221313477,"y":332.83349609375,"z":"5542285c.aabdd8","wires":[]},{"id":"374e92bb.c8b16e","type":"ioBroker out","name":"","topic":"Tanke1_e5","ack":"true","autoCreate":"true","x":888.7222061157227,"y":301.94451904296875,"z":"5542285c.aabdd8","wires":[]},{"id":"2f9fc6bb.d0603a","type":"ioBroker out","name":"","topic":"Tanke1_e5_kurz","ack":"true","autoCreate":"true","x":1248.7222061157227,"y":300.94464111328125,"z":"5542285c.aabdd8","wires":[]},{"id":"ff890578.0076f8","type":"ioBroker out","name":"","topic":"Tanke1_e5_3stelle","ack":"true","autoCreate":"true","x":1254.7222061157227,"y":332.83367919921875,"z":"5542285c.aabdd8","wires":[]},{"id":"4ff72e53.b008d","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":993.6111145019531,"y":414.83349609375,"z":"5542285c.aabdd8","wires":[["2c6fb321.d3904c","6b53cc6.f94ac34"],["2c6fb321.d3904c","851b60c4.7ae4a"]]},{"id":"2c6fb321.d3904c","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1431.6111221313477,"y":410.83349609375,"z":"5542285c.aabdd8","wires":[]},{"id":"87b222aa.784de","type":"ioBroker out","name":"","topic":"Tanke1_e10","ack":"true","autoCreate":"true","x":888.7222061157227,"y":379.94451904296875,"z":"5542285c.aabdd8","wires":[]},{"id":"6b53cc6.f94ac34","type":"ioBroker out","name":"","topic":"Tanke1_e10_kurz","ack":"true","autoCreate":"true","x":1238.7222061157227,"y":377.94464111328125,"z":"5542285c.aabdd8","wires":[]},{"id":"851b60c4.7ae4a","type":"ioBroker out","name":"","topic":"Tanke1_e10_3stelle","ack":"true","autoCreate":"true","x":1247.7222061157227,"y":410.83380126953125,"z":"5542285c.aabdd8","wires":[]},{"id":"957212ac.6a8df","type":"ioBroker out","name":"","topic":"Tanke1_geöffnet","ack":"true","autoCreate":"true","x":1225.6111221313477,"y":465.83367919921875,"z":"5542285c.aabdd8","wires":[]},{"id":"879a9f22.78656","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1436.6111221313477,"y":464.83355712890625,"z":"5542285c.aabdd8","wires":[]},{"id":"89496f7a.76b69","type":"ioBroker out","name":"","topic":"Tanke1_ganztags_auf","ack":"true","autoCreate":"true","x":1228.6111221313477,"y":507.83355712890625,"z":"5542285c.aabdd8","wires":[]},{"id":"18acb2ce.e7534d","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1435.6111221313477,"y":506.83367919921875,"z":"5542285c.aabdd8","wires":[]},{"id":"c7ad7560.385288","type":"ioBroker out","name":"","topic":"Tanke1_ÖffnungszeitText","ack":"true","autoCreate":"true","x":1226.6111145019531,"y":557.27783203125,"z":"5542285c.aabdd8","wires":[]},{"id":"211f893d.dee076","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1433.6111145019531,"y":556.2779541015625,"z":"5542285c.aabdd8","wires":[]},{"id":"ec41dc3b.13be2","type":"ioBroker out","name":"","topic":"Tanke1_ÖffnungszeitStart","ack":"true","autoCreate":"true","x":1225.6111145019531,"y":608.27783203125,"z":"5542285c.aabdd8","wires":[]},{"id":"530ad19d.acf53","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1432.6111145019531,"y":607.2779541015625,"z":"5542285c.aabdd8","wires":[]},{"id":"ab4bc5a0.54b438","type":"ioBroker out","name":"","topic":"Tanke1_ÖffnungszeitEnd","ack":"true","autoCreate":"true","x":1225.6111145019531,"y":654.27783203125,"z":"5542285c.aabdd8","wires":[]},{"id":"331284de.cced7c","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1432.6111145019531,"y":653.2779541015625,"z":"5542285c.aabdd8","wires":[]},{"id":"cdcce89.f323318","type":"debug","name":"","active":true,"console":"false","complete":"false","x":1048.6111221313477,"y":219.38861083984375,"z":"5542285c.aabdd8","wires":[]},{"id":"bc951124.436af","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1055.6111221313477,"y":302.38885498046875,"z":"5542285c.aabdd8","wires":[]},{"id":"c98fbc46.36704","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1050.6111221313477,"y":381.38885498046875,"z":"5542285c.aabdd8","wires":[]},{"id":"e953a261.16ac6","type":"http request","name":"Details - Esso Nördlicher Zubringer","method":"GET","ret":"obj","url":"","x":495.6111145019531,"y":712.135009765625,"z":"5542285c.aabdd8","wires":[["2b1d93fd.d4e26c","b4a75e5e.4b58a","559ee809.aa6118","2f9770ec.d0689","d47093b0.2b8f7","f537d2e3.0ac83","a213826a.5dec8","19a09470.e65f6c","ef572b81.10a8d8"]]},{"id":"2b1d93fd.d4e26c","type":"function","name":"Diesel Preis extrahieren","func":"msg.payload = parseFloat(msg.payload.station.diesel);\nreturn msg;","outputs":"1","x":707.6111526489258,"y":806.5794067382812,"z":"5542285c.aabdd8","wires":[["a86ebba5.579148","a85ee768.57a118","fb05b4f9.04fa48"]]},{"id":"b4a75e5e.4b58a","type":"debug","name":"","active":false,"console":"false","complete":"false","x":798.6111526489258,"y":710.57958984375,"z":"5542285c.aabdd8","wires":[]},{"id":"559ee809.aa6118","type":"function","name":"E10 extrahieren","func":"msg.payload = parseFloat(msg.payload.station.e10);\nreturn msg;","outputs":"1","x":673.6111526489258,"y":931.246337890625,"z":"5542285c.aabdd8","wires":[["cbc2fbba.343d08","4a772528.b588dc","235189d4.dcae76"]]},{"id":"2f9770ec.d0689","type":"function","name":"E5 extrahieren","func":"msg.payload = parseFloat(msg.payload.station.e5);\nreturn msg;","outputs":"1","x":679.6111526489258,"y":867.246337890625,"z":"5542285c.aabdd8","wires":[["9f7209ef.608df8","9bf54384.640ac","5c678e0e.a3987"]]},{"id":"d47093b0.2b8f7","type":"function","name":"ist auf","func":"msg.payload = msg.payload.station.isOpen;\nreturn msg;","outputs":"1","x":647.6111526489258,"y":1014.2463073730469,"z":"5542285c.aabdd8","wires":[["1988bb67.e67745","6243dd1c.9dbc24"]]},{"id":"f537d2e3.0ac83","type":"function","name":"ganztags auf","func":"msg.payload = msg.payload.station.wholeDay;\nreturn msg;","outputs":"1","x":661.6111526489258,"y":1052.2462768554688,"z":"5542285c.aabdd8","wires":[["91d0da32.6e2f28","a2681b3c.5d97e8"]]},{"id":"a213826a.5dec8","type":"function","name":"Öffnungszeiten Text","func":"msg.payload = msg.payload.station.openingTimes[0].text;\nreturn msg;","outputs":"1","x":669.6111526489258,"y":1108.468505859375,"z":"5542285c.aabdd8","wires":[["60cd66b2.9f3298","d2c44e5f.2d3bb"]]},{"id":"19a09470.e65f6c","type":"function","name":"Start","func":"msg.payload = msg.payload.station.openingTimes[0].start;\nreturn msg;","outputs":"1","x":666.6111526489258,"y":1167.4685974121094,"z":"5542285c.aabdd8","wires":[["42d9cee5.bd263","493ad822.b6c528"]]},{"id":"ef572b81.10a8d8","type":"function","name":"End","func":"msg.payload = msg.payload.station.openingTimes[0].end;\nreturn msg;","outputs":"1","x":667.6111526489258,"y":1200.4685974121094,"z":"5542285c.aabdd8","wires":[["65503aa7.9aafc4","7c85786b.837a88"]]},{"id":"a86ebba5.579148","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":990.6111450195312,"y":809.4683227539062,"z":"5542285c.aabdd8","wires":[["b51cdf37.4ae32","3e37e792.c1c818"],["b51cdf37.4ae32","f3f49d6b.0c0b6"]]},{"id":"b51cdf37.4ae32","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1428.6111526489258,"y":805.4683227539062,"z":"5542285c.aabdd8","wires":[]},{"id":"a85ee768.57a118","type":"ioBroker out","name":"","topic":"Tanke2_diesel","ack":"true","autoCreate":"true","x":888.7222366333008,"y":768.579345703125,"z":"5542285c.aabdd8","wires":[]},{"id":"3e37e792.c1c818","type":"ioBroker out","name":"","topic":"Tanke2_diesel_kurz","ack":"true","autoCreate":"true","x":1242.7222366333008,"y":773.5794677734375,"z":"5542285c.aabdd8","wires":[]},{"id":"f3f49d6b.0c0b6","type":"ioBroker out","name":"","topic":"Tanke2_diesel_3stelle","ack":"true","autoCreate":"true","x":1248.7222366333008,"y":805.468505859375,"z":"5542285c.aabdd8","wires":[]},{"id":"9bf54384.640ac","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":987.7222290039062,"y":887.4684448242188,"z":"5542285c.aabdd8","wires":[["446349f1.bb9cb8","c1ccacbd.3e335"],["446349f1.bb9cb8","39852f1f.c67ad"]]},{"id":"446349f1.bb9cb8","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1425.7222366333008,"y":883.4684448242188,"z":"5542285c.aabdd8","wires":[]},{"id":"9f7209ef.608df8","type":"ioBroker out","name":"","topic":"Tanke2_e5","ack":"true","autoCreate":"true","x":879.8333206176758,"y":852.5794677734375,"z":"5542285c.aabdd8","wires":[]},{"id":"c1ccacbd.3e335","type":"ioBroker out","name":"","topic":"Tanke2_e5_kurz","ack":"true","autoCreate":"true","x":1239.8333206176758,"y":851.57958984375,"z":"5542285c.aabdd8","wires":[]},{"id":"39852f1f.c67ad","type":"ioBroker out","name":"","topic":"Tanke2_e5_3stelle","ack":"true","autoCreate":"true","x":1245.8333206176758,"y":883.4686279296875,"z":"5542285c.aabdd8","wires":[]},{"id":"4a772528.b588dc","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":984.7222290039062,"y":965.4684448242188,"z":"5542285c.aabdd8","wires":[["98f5d7fd.670a28","c3705920.3c8fa8"],["98f5d7fd.670a28","d22e1c20.2dd1e"]]},{"id":"98f5d7fd.670a28","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1422.7222366333008,"y":961.4684448242188,"z":"5542285c.aabdd8","wires":[]},{"id":"cbc2fbba.343d08","type":"ioBroker out","name":"","topic":"Tanke2_e10","ack":"true","autoCreate":"true","x":879.8333206176758,"y":930.5794677734375,"z":"5542285c.aabdd8","wires":[]},{"id":"c3705920.3c8fa8","type":"ioBroker out","name":"","topic":"Tanke2_e10_kurz","ack":"true","autoCreate":"true","x":1229.8333206176758,"y":928.57958984375,"z":"5542285c.aabdd8","wires":[]},{"id":"d22e1c20.2dd1e","type":"ioBroker out","name":"","topic":"Tanke2_e10_3stelle","ack":"true","autoCreate":"true","x":1238.8333206176758,"y":961.46875,"z":"5542285c.aabdd8","wires":[]},{"id":"1988bb67.e67745","type":"ioBroker out","name":"","topic":"Tanke2_geöffnet","ack":"true","autoCreate":"true","x":1216.7222366333008,"y":1016.4686279296875,"z":"5542285c.aabdd8","wires":[]},{"id":"6243dd1c.9dbc24","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1427.7222366333008,"y":1015.468505859375,"z":"5542285c.aabdd8","wires":[]},{"id":"91d0da32.6e2f28","type":"ioBroker out","name":"","topic":"Tanke2_ganztags_auf","ack":"true","autoCreate":"true","x":1219.7222366333008,"y":1058.468505859375,"z":"5542285c.aabdd8","wires":[]},{"id":"a2681b3c.5d97e8","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1426.7222366333008,"y":1057.4686279296875,"z":"5542285c.aabdd8","wires":[]},{"id":"60cd66b2.9f3298","type":"ioBroker out","name":"","topic":"Tanke2_ÖffnungszeitText","ack":"true","autoCreate":"true","x":1217.7222290039062,"y":1107.9127807617188,"z":"5542285c.aabdd8","wires":[]},{"id":"d2c44e5f.2d3bb","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1424.7222290039062,"y":1106.9129028320312,"z":"5542285c.aabdd8","wires":[]},{"id":"42d9cee5.bd263","type":"ioBroker out","name":"","topic":"Tanke2_ÖffnungszeitStart","ack":"true","autoCreate":"true","x":1216.7222290039062,"y":1158.9127807617188,"z":"5542285c.aabdd8","wires":[]},{"id":"493ad822.b6c528","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1423.7222290039062,"y":1157.9129028320312,"z":"5542285c.aabdd8","wires":[]},{"id":"65503aa7.9aafc4","type":"ioBroker out","name":"","topic":"Tanke2_ÖffnungszeitEnd","ack":"true","autoCreate":"true","x":1216.7222290039062,"y":1204.9127807617188,"z":"5542285c.aabdd8","wires":[]},{"id":"7c85786b.837a88","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1423.7222290039062,"y":1203.9129028320312,"z":"5542285c.aabdd8","wires":[]},{"id":"fb05b4f9.04fa48","type":"debug","name":"","active":true,"console":"false","complete":"false","x":1039.7222366333008,"y":770.0235595703125,"z":"5542285c.aabdd8","wires":[]},{"id":"5c678e0e.a3987","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1046.7222366333008,"y":853.0238037109375,"z":"5542285c.aabdd8","wires":[]},{"id":"235189d4.dcae76","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1041.7222366333008,"y":932.0238037109375,"z":"5542285c.aabdd8","wires":[]},{"id":"6c3a1816.93c5e8","type":"http request","name":"Details - Esso Ulmenstr.","method":"GET","ret":"obj","url":"","x":489.89683532714844,"y":1274.9921875,"z":"5542285c.aabdd8","wires":[["66a38ec6.995c7","c9d0fccc.362f","b39cc035.4c634","c8d3457.f372cb8","2400d41c.dbff2c","7b74dd02.848b24","cdbf3d78.3240c","c40832e4.3bf7d","a40a4231.5bf5c"]]},{"id":"66a38ec6.995c7","type":"function","name":"Diesel Preis extrahieren","func":"msg.payload = parseFloat(msg.payload.station.diesel);\nreturn msg;","outputs":"1","x":701.8968734741211,"y":1369.4365844726562,"z":"5542285c.aabdd8","wires":[["6e3ad2ce.91c52c","85e980de.7a168","eb4247b9.14bdb8"]]},{"id":"c9d0fccc.362f","type":"debug","name":"","active":false,"console":"false","complete":"false","x":792.8968734741211,"y":1273.436767578125,"z":"5542285c.aabdd8","wires":[]},{"id":"b39cc035.4c634","type":"function","name":"E10 extrahieren","func":"msg.payload = parseFloat(msg.payload.station.e10);\nreturn msg;","outputs":"1","x":667.8968734741211,"y":1494.103515625,"z":"5542285c.aabdd8","wires":[["7c1f6566.83e09c","df460984.20b9f8","ccfb7a4a.330488"]]},{"id":"c8d3457.f372cb8","type":"function","name":"E5 extrahieren","func":"msg.payload = parseFloat(msg.payload.station.e5);\nreturn msg;","outputs":"1","x":673.8968734741211,"y":1430.103515625,"z":"5542285c.aabdd8","wires":[["ae3f5b32.51c0a8","dbc3f8ed.243c08","3d67888d.c29878"]]},{"id":"2400d41c.dbff2c","type":"function","name":"ist auf","func":"msg.payload = msg.payload.station.isOpen;\nreturn msg;","outputs":"1","x":641.8968734741211,"y":1577.1034851074219,"z":"5542285c.aabdd8","wires":[["c2dabf05.3d254","5d838f07.a27c7"]]},{"id":"7b74dd02.848b24","type":"function","name":"ganztags auf","func":"msg.payload = msg.payload.station.wholeDay;\nreturn msg;","outputs":"1","x":655.8968734741211,"y":1615.1034545898438,"z":"5542285c.aabdd8","wires":[["35e505a0.ca1afa","e0209f4f.1fdf6"]]},{"id":"cdbf3d78.3240c","type":"function","name":"Öffnungszeiten Text","func":"msg.payload = msg.payload.station.openingTimes[0].text;\nreturn msg;","outputs":"1","x":663.8968734741211,"y":1671.32568359375,"z":"5542285c.aabdd8","wires":[["1c93ca93.e36c35","b6d32028.492ce"]]},{"id":"c40832e4.3bf7d","type":"function","name":"Start","func":"msg.payload = msg.payload.station.openingTimes[0].start;\nreturn msg;","outputs":"1","x":660.8968734741211,"y":1730.3257751464844,"z":"5542285c.aabdd8","wires":[["488622ae.b779dc","ffe02b82.001fd8"]]},{"id":"a40a4231.5bf5c","type":"function","name":"End","func":"msg.payload = msg.payload.station.openingTimes[0].end;\nreturn msg;","outputs":"1","x":661.8968734741211,"y":1763.3257751464844,"z":"5542285c.aabdd8","wires":[["46330be2.b9ccf4","624f183d.9db0e8"]]},{"id":"6e3ad2ce.91c52c","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":984.8968658447266,"y":1372.3255004882812,"z":"5542285c.aabdd8","wires":[["660d7bd4.99f284","5c3100e8.a3cf"],["660d7bd4.99f284","27e527da.d81ad8"]]},{"id":"660d7bd4.99f284","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1422.896873474121,"y":1368.3255004882812,"z":"5542285c.aabdd8","wires":[]},{"id":"85e980de.7a168","type":"ioBroker out","name":"","topic":"Tanke3_diesel","ack":"true","autoCreate":"true","x":883.0079574584961,"y":1331.4365234375,"z":"5542285c.aabdd8","wires":[]},{"id":"5c3100e8.a3cf","type":"ioBroker out","name":"","topic":"Tanke3_diesel_kurz","ack":"true","autoCreate":"true","x":1237.007957458496,"y":1336.4366455078125,"z":"5542285c.aabdd8","wires":[]},{"id":"27e527da.d81ad8","type":"ioBroker out","name":"","topic":"Tanke3_diesel_3stelle","ack":"true","autoCreate":"true","x":1243.007957458496,"y":1368.32568359375,"z":"5542285c.aabdd8","wires":[]},{"id":"dbc3f8ed.243c08","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":982.0079498291016,"y":1450.3256225585938,"z":"5542285c.aabdd8","wires":[["cac37faf.353c8","50dacf89.af253"],["cac37faf.353c8","899c62a2.7663a"]]},{"id":"cac37faf.353c8","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1420.007957458496,"y":1446.3256225585938,"z":"5542285c.aabdd8","wires":[]},{"id":"ae3f5b32.51c0a8","type":"ioBroker out","name":"","topic":"Tanke3_e5","ack":"true","autoCreate":"true","x":874.1190414428711,"y":1415.4366455078125,"z":"5542285c.aabdd8","wires":[]},{"id":"50dacf89.af253","type":"ioBroker out","name":"","topic":"Tanke3_e5_kurz","ack":"true","autoCreate":"true","x":1234.119041442871,"y":1414.436767578125,"z":"5542285c.aabdd8","wires":[]},{"id":"899c62a2.7663a","type":"ioBroker out","name":"","topic":"Tanke3_e5_3stelle","ack":"true","autoCreate":"true","x":1240.119041442871,"y":1446.3258056640625,"z":"5542285c.aabdd8","wires":[]},{"id":"df460984.20b9f8","type":"function","name":"auf 2-Stellen, Nachkomma extra","func":"// Preis kürzen\n    var rechenwert = msg.payload * 100;   // 100facher Preis jetzt mit einer Nachkommastelle\n    var rechenwert2 = msg.payload * 1000; // 1000facher Preis ohne Nachkommastelle\n    rechenwert = Math.floor(rechenwert);  // Nachkommastelle (.x) wird abgeschnitten\n    rechenwert = rechenwert/100;          // es bleiben zwei Nachkommastellen\n    msg1 = {};\n    msg1.payload = rechenwert.toFixed(2); // Preis mit 2 Nachkommastellen ausgeben (abgeschnitten)\n    msg2 = {};\n    msg2.payload = rechenwert2 - (rechenwert * 1000); // Dritte Nachommastelle einzeln ermitteln\n\nreturn [msg1,msg2];","outputs":"2","x":979.0079498291016,"y":1528.3256225585938,"z":"5542285c.aabdd8","wires":[["39ef5ec8.c610a2","df422c4d.20bdd"],["39ef5ec8.c610a2","1c81b4c8.e37e4b"]]},{"id":"39ef5ec8.c610a2","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1417.007957458496,"y":1524.3256225585938,"z":"5542285c.aabdd8","wires":[]},{"id":"7c1f6566.83e09c","type":"ioBroker out","name":"","topic":"Tanke3_e10","ack":"true","autoCreate":"true","x":874.1190414428711,"y":1493.4366455078125,"z":"5542285c.aabdd8","wires":[]},{"id":"df422c4d.20bdd","type":"ioBroker out","name":"","topic":"Tanke3_e10_kurz","ack":"true","autoCreate":"true","x":1224.119041442871,"y":1491.436767578125,"z":"5542285c.aabdd8","wires":[]},{"id":"1c81b4c8.e37e4b","type":"ioBroker out","name":"","topic":"Tanke3_e10_3stelle","ack":"true","autoCreate":"true","x":1233.119041442871,"y":1524.325927734375,"z":"5542285c.aabdd8","wires":[]},{"id":"c2dabf05.3d254","type":"ioBroker out","name":"","topic":"Tanke3_geöffnet","ack":"true","autoCreate":"true","x":1211.007957458496,"y":1579.3258056640625,"z":"5542285c.aabdd8","wires":[]},{"id":"5d838f07.a27c7","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1422.007957458496,"y":1578.32568359375,"z":"5542285c.aabdd8","wires":[]},{"id":"35e505a0.ca1afa","type":"ioBroker out","name":"","topic":"Tanke3_ganztags_auf","ack":"true","autoCreate":"true","x":1214.007957458496,"y":1621.32568359375,"z":"5542285c.aabdd8","wires":[]},{"id":"e0209f4f.1fdf6","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1421.007957458496,"y":1620.3258056640625,"z":"5542285c.aabdd8","wires":[]},{"id":"1c93ca93.e36c35","type":"ioBroker out","name":"","topic":"Tanke3_ÖffnungszeitText","ack":"true","autoCreate":"true","x":1212.0079498291016,"y":1670.7699584960938,"z":"5542285c.aabdd8","wires":[]},{"id":"b6d32028.492ce","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1419.0079498291016,"y":1669.7700805664062,"z":"5542285c.aabdd8","wires":[]},{"id":"488622ae.b779dc","type":"ioBroker out","name":"","topic":"Tanke3_ÖffnungszeitStart","ack":"true","autoCreate":"true","x":1211.0079498291016,"y":1721.7699584960938,"z":"5542285c.aabdd8","wires":[]},{"id":"ffe02b82.001fd8","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1418.0079498291016,"y":1720.7700805664062,"z":"5542285c.aabdd8","wires":[]},{"id":"46330be2.b9ccf4","type":"ioBroker out","name":"","topic":"Tanke3_ÖffnungszeitEnd","ack":"true","autoCreate":"true","x":1211.0079498291016,"y":1767.7699584960938,"z":"5542285c.aabdd8","wires":[]},{"id":"624f183d.9db0e8","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1418.0079498291016,"y":1766.7700805664062,"z":"5542285c.aabdd8","wires":[]},{"id":"eb4247b9.14bdb8","type":"debug","name":"","active":true,"console":"false","complete":"false","x":1034.007957458496,"y":1332.8807373046875,"z":"5542285c.aabdd8","wires":[]},{"id":"3d67888d.c29878","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1041.007957458496,"y":1415.8809814453125,"z":"5542285c.aabdd8","wires":[]},{"id":"ccfb7a4a.330488","type":"debug","name":"","active":false,"console":"false","complete":"false","x":1036.007957458496,"y":1494.8809814453125,"z":"5542285c.aabdd8","wires":[]}]
                            

                            327_2015-05-01_tankstellen_detailabfrage.jpg

                            Ist als Basis vielleicht schneller, wenn Du in dem Flow die nicht benötigten Variablen löscht, als die Fleissarbeit die benötigten Variablen zusammen zu klicken.

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

                              Und ergänzend auch dafür die passende widgets bitte hier posten. 😄

                              Genau dafür habe ich import/export Funktionalität von einzelnen widgets implementiert (vis 0.3.0)

                              Gewünschte Widgets selektieren. Dann auf "Widgets exportieren" drucken:
                              48_export.png
                              Kopieren in Zwischenpuffer.

                              Danach View auswählen, wo dass sein wollte und "Widgets importieren" drucken:
                              48_import.png
                              :!: Nur die Bilder müssen noch getrennt kopiert werden.

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

                                Oh… das ist ja einfach... 😉

                                Dann kann ich Rainers Wunsch ja doch einfach nachkommen.

                                Anbei die Widgets:

                                [
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_e5_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke1_e5_3stelle",
                                      "html_prepend": "E5",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "310px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_diesel_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke1_diesel_3stelle",
                                      "html_prepend": "Diesel",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "210px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_e10_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke1_e10_3stelle",
                                      "html_prepend": "E10",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "260px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplImage",
                                    "data": {
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "refreshInterval": "0",
                                      "refreshOnWakeUp": "false",
                                      "refreshOnViewChange": "false",
                                      "src": "/vis.0/main/img/esso-logo-200px.png"
                                    },
                                    "style": {
                                      "left": "60px",
                                      "top": "80px",
                                      "width": "120px",
                                      "z-index": "1"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "Heinrich-
                                Eberhard-Str.",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "160px",
                                      "width": "170px",
                                      "height": "44px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "node-red.0.Tanke1_geöffnet",
                                      "html_prepend": "geöffnet",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "360px",
                                      "width": "180px",
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(0, 255, 0)",
                                      "padding-right": "",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": "0",
                                      "visibility-oid": "node-red.0.Tanke1_geöffnet",
                                      "html_prepend": "geschlossen",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "360px",
                                      "width": "180px",
                                      "height": "24px",
                                      "color": "white",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "red",
                                      "padding-right": "",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_ÖffnungszeitText",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "390px",
                                      "width": "170px",
                                      "height": "44px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_ÖffnungszeitStart",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "von ",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "440px",
                                      "width": "170px",
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_ÖffnungszeitEnd",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "bis ",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "470px",
                                      "width": "170px",
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_diesel_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke1_diesel_3stelle",
                                      "html_prepend": "Diesel",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "210px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_e10_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke1_e10_3stelle",
                                      "html_prepend": "E10",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "260px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_e5_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke2_e5_3stelle",
                                      "html_prepend": "E5",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "310px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_diesel_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke2_diesel_3stelle",
                                      "html_prepend": "Diesel",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "210px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_e10_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke2_e10_3stelle",
                                      "html_prepend": "E10",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "260px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "Nördlicher
                                Zubringer",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "160px",
                                      "width": "170px",
                                      "height": "44px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "node-red.0.Tanke2_geöffnet",
                                      "html_prepend": "geöffnet",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "360px",
                                      "width": 178,
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(0, 255, 0)",
                                      "padding-right": "",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": "0",
                                      "visibility-oid": "node-red.0.Tanke2_geöffnet",
                                      "html_prepend": "geschlossen",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "360px",
                                      "width": "180px",
                                      "height": "24px",
                                      "color": "white",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "red",
                                      "padding-right": "",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_ÖffnungszeitText",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "390px",
                                      "width": "170px",
                                      "height": "44px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_ÖffnungszeitStart",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "von ",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "440px",
                                      "width": "170px",
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_ÖffnungszeitEnd",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "bis ",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "470px",
                                      "width": "170px",
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_diesel_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke2_diesel_3stelle",
                                      "html_prepend": "Diesel",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "210px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_e10_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke2_e10_3stelle",
                                      "html_prepend": "E10",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "260px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke1_e5_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke1_e5_3stelle",
                                      "html_prepend": "E5",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "30px",
                                      "top": "310px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke2_e5_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke2_e5_3stelle",
                                      "html_prepend": "E5",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "240px",
                                      "top": "310px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_e5_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke3_e5_3stelle",
                                      "html_prepend": "E5",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "310px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_diesel_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke3_diesel_3stelle",
                                      "html_prepend": "Diesel",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "210px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_e10_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke3_e10_3stelle",
                                      "html_prepend": "E10",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "260px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "Tankstelle
                                Ulmenstr.",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "160px",
                                      "width": "170px",
                                      "height": "44px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "node-red.0.Tanke3_geöffnet",
                                      "html_prepend": "geöffnet",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "360px",
                                      "width": 178,
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(0, 255, 0)",
                                      "padding-right": "",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": "0",
                                      "visibility-oid": "node-red.0.Tanke3_geöffnet",
                                      "html_prepend": "geschlossen",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "360px",
                                      "width": "180px",
                                      "height": "24px",
                                      "color": "white",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "red",
                                      "padding-right": "",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_ÖffnungszeitText",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "390px",
                                      "width": "170px",
                                      "height": "44px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_ÖffnungszeitStart",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "von ",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "440px",
                                      "width": "170px",
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_ÖffnungszeitEnd",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "bis ",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "470px",
                                      "width": "170px",
                                      "height": "24px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "10px",
                                      "padding-top": "0px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_diesel_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke3_diesel_3stelle",
                                      "html_prepend": "Diesel",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "210px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_e10_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "4",
                                      "visibility-oid": "node-red.0.Tanke3_e10_3stelle",
                                      "html_prepend": "E10",
                                      "html_append": "<sup>4</sup> €"
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "260px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "node-red.0.Tanke3_e5_kurz",
                                      "visibility-cond": "==",
                                      "visibility-val": "9",
                                      "visibility-oid": "node-red.0.Tanke3_e5_3stelle",
                                      "html_prepend": "E5",
                                      "html_append": "<sup>9</sup> €"
                                    },
                                    "style": {
                                      "left": "450px",
                                      "top": "310px",
                                      "width": "170px",
                                      "height": "40px",
                                      "color": "ghostwhite",
                                      "text-align": "right",
                                      "font-size": "30px",
                                      "background": "darkslategray",
                                      "padding-right": "10px",
                                      "padding-top": "4px",
                                      "z-index": "5"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplImage",
                                    "data": {
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "refreshInterval": "0",
                                      "refreshOnWakeUp": "false",
                                      "refreshOnViewChange": "false",
                                      "src": "/vis.0/main/img/esso-logo-200px.png"
                                    },
                                    "style": {
                                      "left": "270px",
                                      "top": "80px",
                                      "width": "120px",
                                      "z-index": "1"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplImage",
                                    "data": {
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "refreshInterval": "0",
                                      "refreshOnWakeUp": "false",
                                      "refreshOnViewChange": "false",
                                      "src": "/vis.0/main/img/esso-logo-200px.png"
                                    },
                                    "style": {
                                      "left": "480px",
                                      "top": "80px",
                                      "width": "120px",
                                      "z-index": "1"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "440px",
                                      "top": "150px",
                                      "width": "200px",
                                      "height": "355px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "whitesmoke",
                                      "padding-right": "",
                                      "padding-top": "0px",
                                      "z-index": "",
                                      "border-radius": "20px"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "230px",
                                      "top": "150px",
                                      "width": "200px",
                                      "height": "355px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(245, 245, 245) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "",
                                      "padding-top": "0px",
                                      "z-index": "",
                                      "border-radius": "20px"
                                    },
                                    "widgetSet": "basic"
                                  },
                                  {
                                    "tpl": "tplValueString",
                                    "data": {
                                      "oid": "",
                                      "visibility-cond": "==",
                                      "visibility-val": 1,
                                      "visibility-oid": "",
                                      "html_prepend": "",
                                      "html_append": ""
                                    },
                                    "style": {
                                      "left": "20px",
                                      "top": "150px",
                                      "width": "200px",
                                      "height": "355px",
                                      "color": "rgb(68, 68, 68)",
                                      "text-align": "center",
                                      "font-size": "18px",
                                      "background": "rgb(245, 245, 245) none repeat scroll 0% 0% / auto padding-box border-box",
                                      "padding-right": "",
                                      "padding-top": "0px",
                                      "z-index": "",
                                      "border-radius": "20px"
                                    },
                                    "widgetSet": "basic"
                                  }
                                ]
                                
                                1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators last edited by

                                  Super!

                                  Jetzt muss ich nur noch mal eben den Dachausbau fertig machen, dann werde ich es bei testen.

                                  DANKE

                                  Rainer

                                  Gesendet von meinem Cynus T7 mit Tapatalk

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

                                    Na dann viel Spaß beim der Arbeit 😉

                                    Ich nehme die Widgets aber mal zum Anlass für eine Frage nach einer Optimierung.

                                    327_2015-05-01_zust_nde_anzeigen.jpg

                                    Um Zustände offen (true) und geschlossen (false) zu visualisieren nutze ich bei mir immer zwei Widgets übereinander.

                                    Das geht mit hoher Sicherheit auch mit einem Widget.

                                    Diverse Versuche scheiterten bei mir immer. Ich habe nicht das gewünschte Aussehen mit einem Widget hinbekommen.
                                    327_2015-05-01_zust_nde_2.jpg
                                    Ein Versuch (siehe das OK oben) war z.B.:

                                    Bei Basic Bool html kann ich zwar zwei Zustände mit unterschiedlichem Text und unterschiedlicher Farbe darstellen, bekomme es aber nicht hin, dass die Formatierung so ist, wie bei dem Tankstellenbeispiel.

                                    Wahrscheinlich "nur" CSS.

                                    Ein kleiner Tipp würde meine Views so um geschätzte 100 Widgets optimieren 😉

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

                                      @ruhr70:

                                      Um Zustände offen (true) und geschlossen (false) zu visualisieren nutze ich bei mir immer zwei Widgets übereinander.

                                      Das geht mit hoher Sicherheit auch mit einem Widget. `
                                      Moin,

                                      ich nutze das für z.B. An-/Abwesenheit, Fenster auf/zu, usw.

                                      Das geht mit dem Widget "basic - val ValueList HTML Style"

                                      Dabei kannst Du dann angeben, was bei true/false ausgegeben wird (welcher Text) und mit html-Formatierung auch die Farbe anpassen.

                                      Für An-Abwesend habe ich z.B. folgende Werte drin (siehe auch Screenshot):

                                      Werteanzahl bis = 1

                                      Wert[0] = abwesend

                                      Wert[1] = anwesend

                                      Stil für [0] = background-color:yellow; color:black; padding:1px

                                      Stil für [1] = background-color:green; color:white; padding:1px

                                      Dadurch bekommen ich den jeweiligen Text in Schwarz auf entweder gelben oder grünen Hintergrund.

                                      Gruß,

                                      Eric

                                      355_screen_valuelisthtml.png

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

                                        danke Eric 😉 das probiere ich nachher

                                        Gesendet von iPhone mit Tapatalk

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

                                          @eric2905:

                                          Werteanzahl bis = 1

                                          Wert[0] = abwesend

                                          Wert[1] = anwesend `

                                          Hi Eric,

                                          ich danke Dir!

                                          Ich hatte mir das Widget auch schon angeschaut, hatte aber die Felder Wert[0] und Wert[0] falsch interpretiert.

                                          Ich dachte immer, dass da der Wert drinstehen muss, der das Feld aktiviert. Also habe ich dort entweder true & false reingeschrieben, bzw. 0 und 1.

                                          Im Ergebnis habe ich dann natürlich kein Text mehr eintragen können und hatte immer true oder false im Widget stehen.

                                          Danke, dass Du diesen Knoten gelöst hast 😉

                                          VG,

                                          Michael

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

                                            Immer gerne.

                                            Gruß,

                                            Eric

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            24
                                            125
                                            33973
                                            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