Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Hilfe für Dummy gesucht (gelöst)

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    788

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.2k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Hilfe für Dummy gesucht (gelöst)

Geplant Angeheftet Gesperrt Verschoben Blockly
16 Beiträge 6 Kommentatoren 1.0k Aufrufe 4 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • P ps1304

    Hallo liebes Forum, bin nicht auslachen - meine Frage/Fehler ist vermutlich "Peanuts" - bin aber noch Einsteiger.
    Folgende Aufgabenstellung:
    habe einen Datenpunkt - String angelegt UV-Index
    Diesen will ich auslesen und in die Variable "UV-Wert" schreiben; dann in Abhängigkeit der Variablen "UV-Wert" eine 2.teVariable "UV-Text" mit Text befüllen.
    Diese Variable will ich dann in den Datenpunkt - String UV-Text schreiben.

    Fehlermeldung: script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined

    Anbei das Blocky als Bild und Script:
    Blocky-UV-Fehler.PNG


    BlocklyJavascriptTypeScriptRules
    12:17:57.035 info javascript.0 (31146) Start javascript script.js.UV-Text
    12:17:57.054 info javascript.0 (31146) script.js.UV-Text: registered 0 subscriptions and 1 schedule
    12:18:00.008 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:18:00.011 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:19:00.488 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:19:00.505 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:20:00.228 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:20:00.255 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:21:00.559 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:21:00.568 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:22:00.182 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:22:00.186 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:23:00.448 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:23:00.461 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:24:00.200 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:24:00.205 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:25:00.634 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:25:00.635 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:26:00.159 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:26:00.162 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    12:27:00.435 error javascript.0 (31146) script.js.UV-Text: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
    12:27:00.448 error javascript.0 (31146) at Object.<anonymous> (script.js.UV-Text:15:3)
    Ausgewählte Blöcke exportieren

    <xml xmlns="https://developers.google.com/blockly/xml">
    <variables>
    <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
    <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
    </variables>
    <block type="schedule" id=":n}(Nb!1S^+OMcnoP_:" x="-13" y="37"> <field name="SCHEDULE">*/60 * * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="]qaB]m_Yc-OjQ*Gk,ax]"> <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field> <value name="VALUE"> <block type="field_oid" id="970QW1O:HdPiSIX-~SyE"> <field name="oid">admin.0.info.UV-Index</field> </block> </value> <next> <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!"> <value name="IF0"> <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
    <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
    </block>
    </value>
    <value name="B">
    <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
    <field name="NUM">2</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
    <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
    <value name="VALUE">
    <block type="text" id="RS{m|vjt~Vm2y?CYh(."> <field name="TEXT">Kein Schutz erforderlich</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="KoQO160P*4oN$4^@?nNp"> <value name="IF0"> <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu"> <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field> </block> </value> <value name="B"> <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="rP~[TTmnAL*sGDKD3o@1"> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> <value name="VALUE"> <block type="text" id="(d0%*O9JE}@mrr.-3[gv"> <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="P#IQTmD,zx*1Afe.N+@x"> <value name="IF0"> <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="ZjNx~U=Np42A6$$bvge="> <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field> </block> </value> <value name="B"> <block type="math_number" id="3)8EF{g./R;q,sjm4h@O"> <field name="NUM">7</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="#/,!3jwQbulyWS4J}H3("> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> <value name="VALUE"> <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
    <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme. Die WHO empfiehlt, mittags den Schatten zu suchen. </field>
    </block>
    </value>
    </block>
    </statement>
    <next>
    <block type="exec" id="OMwQ%7n75x_${4hBZ!c" inline="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation> <field name="WITH_STATEMENT">TRUE</field> <field name="LOG"></field> <value name="COMMAND"> <shadow type="text" id="668Wbm%~rygt2*$8vPg">
    <field name="TEXT"></field>
    </shadow>
    <block type="variables_get" id="6gg-WkzGFJiqCfwl@lx"> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> </block> </value> <statement name="STATEMENT"> <block type="control_ex" id=".V|0VVOY)Pf$w!21)S+L"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="OID"> <shadow type="field_oid" id="lnv)UkZ70(0@KYW:f(Qj"> <field name="oid">admin.0.info.UV-Text</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id=";;ei{w51%hYrLQU6!~ZH"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="3$%I1Ju.xh%}W#dn)-+0"> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="(,_HlvXu1sk5?*OcLZ@">
    <field name="NUM">100</field>
    </shadow>
    </value>
    </block>
    </statement>
    </block>
    </next>
    </block>
    </next>
    </block>
    </next>
    </block>
    </next>
    </block>
    </statement>
    </block>
    </xml>

    <xml xmlns="https://developers.google.com/blockly/xml">
    <variables>
    <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
    <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
    </variables>
    <block type="schedule" id=":n}(Nb!1S^+OMcnoP_:" x="-13" y="37"> <field name="SCHEDULE">*/60 * * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="]qaB]m_Yc-OjQ*Gk,ax]"> <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field> <value name="VALUE"> <block type="field_oid" id="970QW1O:HdPiSIX-~SyE"> <field name="oid">admin.0.info.UV-Index</field> </block> </value> <next> <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!"> <value name="IF0"> <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
    <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
    </block>
    </value>
    <value name="B">
    <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
    <field name="NUM">2</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
    <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
    <value name="VALUE">
    <block type="text" id="RS{m|vjt~Vm2y?CYh(."> <field name="TEXT">Kein Schutz erforderlich</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="KoQO160P*4oN$4^@?nNp"> <value name="IF0"> <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu"> <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field> </block> </value> <value name="B"> <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="rP~[TTmnAL*sGDKD3o@1"> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> <value name="VALUE"> <block type="text" id="(d0%*O9JE}@mrr.-3[gv"> <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="P#IQTmD,zx*1Afe.N+@x"> <value name="IF0"> <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="ZjNx~U=Np42A6$$bvge="> <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field> </block> </value> <value name="B"> <block type="math_number" id="3)8EF{g./R;q,sjm4h@O"> <field name="NUM">7</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="#/,!3jwQbulyWS4J}H3("> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> <value name="VALUE"> <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
    <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme. Die WHO empfiehlt, mittags den Schatten zu suchen. </field>
    </block>
    </value>
    </block>
    </statement>
    <next>
    <block type="exec" id="OMwQ%7n75x_${4hBZ!c" inline="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation> <field name="WITH_STATEMENT">TRUE</field> <field name="LOG"></field> <value name="COMMAND"> <shadow type="text" id="668Wbm%~rygt2*$8vPg">
    <field name="TEXT"></field>
    </shadow>
    <block type="variables_get" id="6gg-WkzGFJiqCfwl@lx"> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> </block> </value> <statement name="STATEMENT"> <block type="control_ex" id=".V|0VVOY)Pf$w!21)S+L"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="OID"> <shadow type="field_oid" id="lnv)UkZ70(0@KYW:f(Qj"> <field name="oid">admin.0.info.UV-Text</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id=";;ei{w51%hYrLQU6!~ZH"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="3$%I1Ju.xh%}W#dn)-+0"> <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="(,_HlvXu1sk5?*OcLZ@">
    <field name="NUM">100</field>
    </shadow>
    </value>
    </block>
    </statement>
    </block>
    </next>
    </block>
    </next>
    </block>
    </next>
    </block>
    </next>
    </block>
    </statement>
    </block>
    </xml>

    Danke für Eure Hilfe vorab

    AsgothianA Offline
    AsgothianA Offline
    Asgothian
    Developer
    schrieb am zuletzt editiert von
    #3

    @ps1304
    So weit weg von dem was du willst bist du nicht.

    • der "exec" block scheint unnötig. Damit würdest Du einen Systembefehl ausführen. Das willst Du laut deiner Beschreibung nicht.
    • der "Schreibe" Block kann also direkt unter den Falls Blöcken eingetragen werden.
    • Deine Falls Schleife funktioniert so nicht, da immer der letzte Fall angenommen wird. Da müssten also noch sonst Bäume rein.

    Damit sollte es dann gehen.

    Eine Verbesserung noch: Ich würde statt des Zeitplans das ganze einmal bei skriptstart durchführen und danach immer dann wenn der UV-Index wert geändert wurde. Also Z.Bsp. so:
    Screenshot 2021-06-17 at 12.53.45.png

    Wichtig dabei: der Baustein "state value" kommt aus dem "trigger" Bereich, und ist da mit "Objekt ID" vorbeuget, kann aber auf "Wert" umgestellt werden.

    ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
    "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

    P 1 Antwort Letzte Antwort
    0
    • AsgothianA Asgothian

      @ps1304
      So weit weg von dem was du willst bist du nicht.

      • der "exec" block scheint unnötig. Damit würdest Du einen Systembefehl ausführen. Das willst Du laut deiner Beschreibung nicht.
      • der "Schreibe" Block kann also direkt unter den Falls Blöcken eingetragen werden.
      • Deine Falls Schleife funktioniert so nicht, da immer der letzte Fall angenommen wird. Da müssten also noch sonst Bäume rein.

      Damit sollte es dann gehen.

      Eine Verbesserung noch: Ich würde statt des Zeitplans das ganze einmal bei skriptstart durchführen und danach immer dann wenn der UV-Index wert geändert wurde. Also Z.Bsp. so:
      Screenshot 2021-06-17 at 12.53.45.png

      Wichtig dabei: der Baustein "state value" kommt aus dem "trigger" Bereich, und ist da mit "Objekt ID" vorbeuget, kann aber auf "Wert" umgestellt werden.

      P Offline
      P Offline
      ps1304
      schrieb am zuletzt editiert von
      #4

      @asgothian cool danke dir - kannst du mir den Code noch zur Verfügung stellen?

      AsgothianA 1 Antwort Letzte Antwort
      0
      • P ps1304

        @asgothian cool danke dir - kannst du mir den Code noch zur Verfügung stellen?

        AsgothianA Offline
        AsgothianA Offline
        Asgothian
        Developer
        schrieb am zuletzt editiert von
        #5

        @ps1304

        Können schon. Selber nachbauen ist aber besser - dann findest Du die Sachen ggf. später auch mal selber. Und durch Fehler die Du dabei machst lernst Du dann vielleicht noch etwas.

        Deswegen habe ich den absichtlich weg gelassen.

        A.

        ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
        "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

        P 1 Antwort Letzte Antwort
        1
        • AsgothianA Asgothian

          @ps1304

          Können schon. Selber nachbauen ist aber besser - dann findest Du die Sachen ggf. später auch mal selber. Und durch Fehler die Du dabei machst lernst Du dann vielleicht noch etwas.

          Deswegen habe ich den absichtlich weg gelassen.

          A.

          P Offline
          P Offline
          ps1304
          schrieb am zuletzt editiert von
          #6

          @asgothian fairer Punkt, will ich ja auch. Frage: wie bekomme ich den ersten "Punkt" im Blocky generiert?
          also: to UV Meldung with: UV-Index
          die Funktion nach - etwas tun - gib zurück habe ich gefunden

          AsgothianA 1 Antwort Letzte Antwort
          0
          • P ps1304

            @asgothian fairer Punkt, will ich ja auch. Frage: wie bekomme ich den ersten "Punkt" im Blocky generiert?
            also: to UV Meldung with: UV-Index
            die Funktion nach - etwas tun - gib zurück habe ich gefunden

            AsgothianA Offline
            AsgothianA Offline
            Asgothian
            Developer
            schrieb am zuletzt editiert von
            #7

            @ps1304 Ja, dann nimm den Baustein.
            Screenshot 2021-06-17 at 14.55.43.png

            Umbenennen sollte einfach sein. Über das Zahnrad kannst du auch den "Übergabeparameter" UV Index definieren.Screenshot 2021-06-17 at 14.55.08.png

            A.

            ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
            "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

            1 Antwort Letzte Antwort
            0
            • P Offline
              P Offline
              ps1304
              schrieb am zuletzt editiert von
              #8

              @asgothian perfekt Danke für Deine Hilfe und "Motivation" :-)) - habe mal etwas gebastelt und getestet. Warte mal heute den Tag ab, ob das jetzt so funktioniert.

              Das ist jetzt mein Bloky Script
              Blocky-UV-neu.PNG
              Das Objekt "uv-index" beinhaltet die Zahl des UV-Wertes und wird per 2.tem Script gefüllt
              Das Objekt "uv-text" wird mit dem Blocky berechnet und gefüllt

              Mal schauen ob das so läuft

              BBTownB 1 Antwort Letzte Antwort
              0
              • P ps1304

                @asgothian perfekt Danke für Deine Hilfe und "Motivation" :-)) - habe mal etwas gebastelt und getestet. Warte mal heute den Tag ab, ob das jetzt so funktioniert.

                Das ist jetzt mein Bloky Script
                Blocky-UV-neu.PNG
                Das Objekt "uv-index" beinhaltet die Zahl des UV-Wertes und wird per 2.tem Script gefüllt
                Das Objekt "uv-text" wird mit dem Blocky berechnet und gefüllt

                Mal schauen ob das so läuft

                BBTownB Offline
                BBTownB Offline
                BBTown
                schrieb am zuletzt editiert von
                #9

                @ps1304
                wenn Du den Datenpunkt "UV-index" schreibfähig machst ("write" = "true") dann kannst Du das auch testen indem Du manuell Werte einträgst

                ioBroker auf NUC (VM debian v13 (Trixie ), node v22.22.2 npm v10.9.4, js-controller v7.1.1 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                P 1 Antwort Letzte Antwort
                0
                • BBTownB BBTown

                  @ps1304
                  wenn Du den Datenpunkt "UV-index" schreibfähig machst ("write" = "true") dann kannst Du das auch testen indem Du manuell Werte einträgst

                  P Offline
                  P Offline
                  ps1304
                  schrieb am zuletzt editiert von
                  #10

                  @bbtown hab ich gestern auch schon probiert - danke trotzdem. Das Script funktioniert :-))

                  UV-Index.png

                  Horst BöttcherH AsgothianA 2 Antworten Letzte Antwort
                  0
                  • P ps1304

                    @bbtown hab ich gestern auch schon probiert - danke trotzdem. Das Script funktioniert :-))

                    UV-Index.png

                    Horst BöttcherH Offline
                    Horst BöttcherH Offline
                    Horst Böttcher
                    schrieb am zuletzt editiert von
                    #11

                    @ps1304
                    Ich ab schon vor Tagen versucht etwas ähnliches zu machen

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
                        <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
                      </variables>
                      <block type="on_ext" id="W(z,yg-Ow^f7t{8WQK(s" x="-88" y="-62">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="E?[HmCB=0[zmvV},7AEX">
                            <field name="oid">openuv.0.UV</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="variables_set" id="]qaB]m_Yc-OjQ*Gk,ax]">
                            <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                            <value name="VALUE">
                              <block type="field_oid" id="970QW1O:HdPiSIX-~SyE">
                                <field name="oid">openuv.0.UV</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!" collapsed="true">
                                <value name="IF0">
                                  <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk">
                                    <field name="OP">LTE</field>
                                    <value name="A">
                                      <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
                                        <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
                                        <field name="NUM">2</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
                                    <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                    <value name="VALUE">
                                      <block type="text" id="RS{m|vjt~Vm2y?CYh(.">
                                        <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#C0FFA0; text-align:center;"&gt;0–2&lt;/td&gt;                 &lt;td&gt;niedrig&lt;/td&gt;                 &lt;td&gt;Kein Schutz erforderlich.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="KoQO160P*4oN$4^@?nNp" collapsed="true">
                                    <value name="IF0">
                                      <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs">
                                        <field name="OP">LTE</field>
                                        <value name="A">
                                          <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu">
                                            <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_">
                                            <field name="NUM">5</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="rP~[TTmnAL*sGDKD3o@1">
                                        <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                        <value name="VALUE">
                                          <block type="text" id="(d0%*O9JE}@mrr.-3[gv">
                                            <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F8F040; text-align:center;"&gt;3–5&lt;/td&gt;                 &lt;td&gt;mäßig&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme                 &lt;/td&gt;&lt;/tr&gt;</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_if" id="P#IQTmD,zx*1Afe.N+@x" collapsed="true">
                                        <value name="IF0">
                                          <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1">
                                            <field name="OP">LTE</field>
                                            <value name="A">
                                              <block type="variables_get" id="ZjNx~U=Np42A6$$bvge=">
                                                <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="3)8EF{g./R;q,sjm4h@O">
                                                <field name="NUM">7</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="#/,!3jwQbulyWS4J}H3(">
                                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                            <value name="VALUE">
                                              <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
                                                <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F87820; text-align:center;"&gt;6–7&lt;/td&gt;                 &lt;td&gt;hoch&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme.&lt;br&gt; Mittagssonne meiden.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="controls_if" id="5aY6UDu1g(*_,~8y0)Z[" collapsed="true">
                                            <value name="IF0">
                                              <block type="logic_compare" id="JJm@T!hf4IfCa7YvZ/*w">
                                                <field name="OP">LTE</field>
                                                <value name="A">
                                                  <block type="variables_get" id="Mh}Hdf#:%VJ;P:TrFi%P">
                                                    <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="MGFd}fUFz[D3x8TXGe3%">
                                                    <field name="NUM">10</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="variables_set" id="y-)%r2HB6!^GOIm2/40q">
                                                <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                <value name="VALUE">
                                                  <block type="text" id="79M;KP(7:`,R1=iKOPdo">
                                                    <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#D80020; text-align:center;"&gt;8–10&lt;/td&gt;                 &lt;td&gt;sehr hoch&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Den Aufenthalt im Freien zwischen 11 und 15 Uhr vermeiden; auch im Schatten gehören ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut zum sonnengerechten Verhalten.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="controls_if" id="LMpBq7kdOi+%%6{3-0%m" collapsed="true">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="}_I?*{?[DIl_.@dPkYu)">
                                                    <field name="OP">LTE</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="zLI]@$|?ml3_wNKO)v8@">
                                                        <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="#AbcvOG19]fPmt6Bt#?G">
                                                        <field name="NUM">11</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="variables_set" id="y!2guum{^*z|e/^r]!lN">
                                                    <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                    <value name="VALUE">
                                                      <block type="text" id=")%/Z3Z)tLv)C*wAL7Z%D">
                                                        <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#A80080; text-align:center;"&gt;≥ 11&lt;/td&gt;                 &lt;td&gt;extrem&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Die WHO rät, zwischen 11 und 15 Uhr im Schutz eines Hauses zu bleiben und auch außerhalb dieser Zeit unbedingt Schatten zu suchen. Auch im Schatten gelten ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut als unerlässlich.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="control_ex" id=".V|0VVOY)Pf$w!21)S+L">
                                                    <field name="TYPE">true</field>
                                                    <field name="CLEAR_RUNNING">TRUE</field>
                                                    <value name="OID">
                                                      <shadow type="field_oid" id="lnv)UkZ70(0@KYW:f(Qj">
                                                        <field name="oid">0_userdata.0.Eigenescripte.uv</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="VALUE">
                                                      <shadow type="logic_boolean" id=";;ei{w51%hYrLQU6!~ZH">
                                                        <field name="BOOL">TRUE</field>
                                                      </shadow>
                                                      <block type="variables_get" id="3$%I1Ju.xh%}W#dn)-+0">
                                                        <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                      </block>
                                                    </value>
                                                    <value name="DELAY_MS">
                                                      <shadow type="math_number" id="(,_HlvXu1sk5?*OcLZ@">
                                                        <field name="NUM">100</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    

                    in der objekten komme ich nur die meldung
                    d5efd6c97704ef78990f27a725a29ebf.png

                    ioBroker auf Proxmox (Debian) auf LENOVO PC Thinkcentre als Produktivsystem

                    paul53P P 2 Antworten Letzte Antwort
                    0
                    • Horst BöttcherH Horst Böttcher

                      @ps1304
                      Ich ab schon vor Tagen versucht etwas ähnliches zu machen

                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
                          <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
                        </variables>
                        <block type="on_ext" id="W(z,yg-Ow^f7t{8WQK(s" x="-88" y="-62">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id="E?[HmCB=0[zmvV},7AEX">
                              <field name="oid">openuv.0.UV</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="variables_set" id="]qaB]m_Yc-OjQ*Gk,ax]">
                              <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                              <value name="VALUE">
                                <block type="field_oid" id="970QW1O:HdPiSIX-~SyE">
                                  <field name="oid">openuv.0.UV</field>
                                </block>
                              </value>
                              <next>
                                <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!" collapsed="true">
                                  <value name="IF0">
                                    <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk">
                                      <field name="OP">LTE</field>
                                      <value name="A">
                                        <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
                                          <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
                                          <field name="NUM">2</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
                                      <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                      <value name="VALUE">
                                        <block type="text" id="RS{m|vjt~Vm2y?CYh(.">
                                          <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#C0FFA0; text-align:center;"&gt;0–2&lt;/td&gt;                 &lt;td&gt;niedrig&lt;/td&gt;                 &lt;td&gt;Kein Schutz erforderlich.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="controls_if" id="KoQO160P*4oN$4^@?nNp" collapsed="true">
                                      <value name="IF0">
                                        <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs">
                                          <field name="OP">LTE</field>
                                          <value name="A">
                                            <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu">
                                              <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_">
                                              <field name="NUM">5</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="rP~[TTmnAL*sGDKD3o@1">
                                          <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                          <value name="VALUE">
                                            <block type="text" id="(d0%*O9JE}@mrr.-3[gv">
                                              <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F8F040; text-align:center;"&gt;3–5&lt;/td&gt;                 &lt;td&gt;mäßig&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme                 &lt;/td&gt;&lt;/tr&gt;</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="controls_if" id="P#IQTmD,zx*1Afe.N+@x" collapsed="true">
                                          <value name="IF0">
                                            <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1">
                                              <field name="OP">LTE</field>
                                              <value name="A">
                                                <block type="variables_get" id="ZjNx~U=Np42A6$$bvge=">
                                                  <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="3)8EF{g./R;q,sjm4h@O">
                                                  <field name="NUM">7</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id="#/,!3jwQbulyWS4J}H3(">
                                              <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                              <value name="VALUE">
                                                <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
                                                  <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F87820; text-align:center;"&gt;6–7&lt;/td&gt;                 &lt;td&gt;hoch&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme.&lt;br&gt; Mittagssonne meiden.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="controls_if" id="5aY6UDu1g(*_,~8y0)Z[" collapsed="true">
                                              <value name="IF0">
                                                <block type="logic_compare" id="JJm@T!hf4IfCa7YvZ/*w">
                                                  <field name="OP">LTE</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="Mh}Hdf#:%VJ;P:TrFi%P">
                                                      <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="MGFd}fUFz[D3x8TXGe3%">
                                                      <field name="NUM">10</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="variables_set" id="y-)%r2HB6!^GOIm2/40q">
                                                  <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                  <value name="VALUE">
                                                    <block type="text" id="79M;KP(7:`,R1=iKOPdo">
                                                      <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#D80020; text-align:center;"&gt;8–10&lt;/td&gt;                 &lt;td&gt;sehr hoch&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Den Aufenthalt im Freien zwischen 11 und 15 Uhr vermeiden; auch im Schatten gehören ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut zum sonnengerechten Verhalten.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="controls_if" id="LMpBq7kdOi+%%6{3-0%m" collapsed="true">
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="}_I?*{?[DIl_.@dPkYu)">
                                                      <field name="OP">LTE</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="zLI]@$|?ml3_wNKO)v8@">
                                                          <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="#AbcvOG19]fPmt6Bt#?G">
                                                          <field name="NUM">11</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="variables_set" id="y!2guum{^*z|e/^r]!lN">
                                                      <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                      <value name="VALUE">
                                                        <block type="text" id=")%/Z3Z)tLv)C*wAL7Z%D">
                                                          <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#A80080; text-align:center;"&gt;≥ 11&lt;/td&gt;                 &lt;td&gt;extrem&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Die WHO rät, zwischen 11 und 15 Uhr im Schutz eines Hauses zu bleiben und auch außerhalb dieser Zeit unbedingt Schatten zu suchen. Auch im Schatten gelten ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut als unerlässlich.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="control_ex" id=".V|0VVOY)Pf$w!21)S+L">
                                                      <field name="TYPE">true</field>
                                                      <field name="CLEAR_RUNNING">TRUE</field>
                                                      <value name="OID">
                                                        <shadow type="field_oid" id="lnv)UkZ70(0@KYW:f(Qj">
                                                          <field name="oid">0_userdata.0.Eigenescripte.uv</field>
                                                        </shadow>
                                                      </value>
                                                      <value name="VALUE">
                                                        <shadow type="logic_boolean" id=";;ei{w51%hYrLQU6!~ZH">
                                                          <field name="BOOL">TRUE</field>
                                                        </shadow>
                                                        <block type="variables_get" id="3$%I1Ju.xh%}W#dn)-+0">
                                                          <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                        </block>
                                                      </value>
                                                      <value name="DELAY_MS">
                                                        <shadow type="math_number" id="(,_HlvXu1sk5?*OcLZ@">
                                                          <field name="NUM">100</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </xml>
                      

                      in der objekten komme ich nur die meldung
                      d5efd6c97704ef78990f27a725a29ebf.png

                      paul53P Offline
                      paul53P Offline
                      paul53
                      schrieb am zuletzt editiert von paul53
                      #12

                      @horst-böttcher sagte: versucht etwas ähnliches zu machen

                      UV-Wert muss den Wert (unter "Trigger") des Datenpunktes erhalten, nicht die ID. Die Prüfung muss in dieser Reihenfolge auf > erfolgen, nicht auf <=.

                      Bild_2021-06-18_172101.png

                      <xml xmlns="https://developers.google.com/blockly/xml">
                       <variables>
                         <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
                         <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
                       </variables>
                       <block type="on_ext" id="W(z,yg-Ow^f7t{8WQK(s" x="-88" y="-62">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                         <field name="CONDITION">ne</field>
                         <field name="ACK_CONDITION"></field>
                         <value name="OID0">
                           <shadow type="field_oid" id="E?[HmCB=0[zmvV},7AEX">
                             <field name="oid">openuv.0.UV</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="variables_set" id="]qaB]m_Yc-OjQ*Gk,ax]">
                             <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                             <value name="VALUE">
                               <block type="on_source" id="J}T{tJY(4iwQMYA.60$5">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <next>
                               <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
                                 <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                 <value name="VALUE">
                                   <block type="text" id="RS{m|vjt~Vm2y?CYh(.">
                                     <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#C0FFA0; text-align:center;"&gt;0–2&lt;/td&gt;                 &lt;td&gt;niedrig&lt;/td&gt;                 &lt;td&gt;Kein Schutz erforderlich.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!">
                                     <value name="IF0">
                                       <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk">
                                         <field name="OP">GT</field>
                                         <value name="A">
                                           <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
                                             <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
                                             <field name="NUM">2</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="variables_set" id="rP~[TTmnAL*sGDKD3o@1">
                                         <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                         <value name="VALUE">
                                           <block type="text" id="(d0%*O9JE}@mrr.-3[gv">
                                             <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F8F040; text-align:center;"&gt;3–5&lt;/td&gt;                 &lt;td&gt;mäßig&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme                 &lt;/td&gt;&lt;/tr&gt;</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <next>
                                       <block type="controls_if" id="KoQO160P*4oN$4^@?nNp">
                                         <value name="IF0">
                                           <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs">
                                             <field name="OP">GT</field>
                                             <value name="A">
                                               <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu">
                                                 <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_">
                                                 <field name="NUM">5</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="variables_set" id="#/,!3jwQbulyWS4J}H3(">
                                             <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                             <value name="VALUE">
                                               <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
                                                 <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F87820; text-align:center;"&gt;6–7&lt;/td&gt;                 &lt;td&gt;hoch&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme.&lt;br&gt; Mittagssonne meiden.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="controls_if" id="P#IQTmD,zx*1Afe.N+@x">
                                             <value name="IF0">
                                               <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1">
                                                 <field name="OP">GT</field>
                                                 <value name="A">
                                                   <block type="variables_get" id="ZjNx~U=Np42A6$$bvge=">
                                                     <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="3)8EF{g./R;q,sjm4h@O">
                                                     <field name="NUM">7</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <statement name="DO0">
                                               <block type="variables_set" id="y-)%r2HB6!^GOIm2/40q">
                                                 <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                 <value name="VALUE">
                                                   <block type="text" id="79M;KP(7:`,R1=iKOPdo">
                                                     <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#D80020; text-align:center;"&gt;8–10&lt;/td&gt;                 &lt;td&gt;sehr hoch&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Den Aufenthalt im Freien zwischen 11 und 15 Uhr vermeiden; auch im Schatten gehören ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut zum sonnengerechten Verhalten.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="controls_if" id="5aY6UDu1g(*_,~8y0)Z[">
                                                 <value name="IF0">
                                                   <block type="logic_compare" id="JJm@T!hf4IfCa7YvZ/*w">
                                                     <field name="OP">GT</field>
                                                     <value name="A">
                                                       <block type="variables_get" id="Mh}Hdf#:%VJ;P:TrFi%P">
                                                         <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="math_number" id="MGFd}fUFz[D3x8TXGe3%">
                                                         <field name="NUM">10</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO0">
                                                   <block type="variables_set" id="y!2guum{^*z|e/^r]!lN">
                                                     <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                     <value name="VALUE">
                                                       <block type="text" id=")%/Z3Z)tLv)C*wAL7Z%D">
                                                         <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#A80080; text-align:center;"&gt;≥ 11&lt;/td&gt;                 &lt;td&gt;extrem&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Die WHO rät, zwischen 11 und 15 Uhr im Schutz eines Hauses zu bleiben und auch außerhalb dieser Zeit unbedingt Schatten zu suchen. Auch im Schatten gelten ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut als unerlässlich.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </statement>
                                                 <next>
                                                   <block type="control_ex" id=".V|0VVOY)Pf$w!21)S+L">
                                                     <field name="TYPE">true</field>
                                                     <field name="CLEAR_RUNNING">TRUE</field>
                                                     <value name="OID">
                                                       <shadow type="field_oid" id="lnv)UkZ70(0@KYW:f(Qj">
                                                         <field name="oid">0_userdata.0.Eigenescripte.uv</field>
                                                       </shadow>
                                                     </value>
                                                     <value name="VALUE">
                                                       <shadow type="logic_boolean" id=";;ei{w51%hYrLQU6!~ZH">
                                                         <field name="BOOL">TRUE</field>
                                                       </shadow>
                                                       <block type="variables_get" id="3$%I1Ju.xh%}W#dn)-+0">
                                                         <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                       </block>
                                                     </value>
                                                     <value name="DELAY_MS">
                                                       <shadow type="math_number" id="(,_HlvXu1sk5?*OcLZ@">
                                                         <field name="NUM">100</field>
                                                       </shadow>
                                                     </value>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                      </xml>
                      

                      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                      1 Antwort Letzte Antwort
                      1
                      • P ps1304

                        @bbtown hab ich gestern auch schon probiert - danke trotzdem. Das Script funktioniert :-))

                        UV-Index.png

                        AsgothianA Offline
                        AsgothianA Offline
                        Asgothian
                        Developer
                        schrieb am zuletzt editiert von
                        #13

                        @ps1304 sagte in Hilfe für Dummy gesucht:

                        @bbtown hab ich gestern auch schon probiert - danke trotzdem. Das Script funktioniert :-))

                        Freut mich das es funktioniert. Ich hoffe das das selber Bauen Dir auch etwas gebracht hat. Wenn du deinem Post jetzt noch ein [gelöst] mitgeben kannst wäre das toll :)

                        A.

                        ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
                        "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

                        P 1 Antwort Letzte Antwort
                        0
                        • AsgothianA Asgothian

                          @ps1304 sagte in Hilfe für Dummy gesucht:

                          @bbtown hab ich gestern auch schon probiert - danke trotzdem. Das Script funktioniert :-))

                          Freut mich das es funktioniert. Ich hoffe das das selber Bauen Dir auch etwas gebracht hat. Wenn du deinem Post jetzt noch ein [gelöst] mitgeben kannst wäre das toll :)

                          A.

                          P Offline
                          P Offline
                          ps1304
                          schrieb am zuletzt editiert von
                          #14

                          @asgothian gerne - wie macht man das ?

                          1 Antwort Letzte Antwort
                          0
                          • Horst BöttcherH Horst Böttcher

                            @ps1304
                            Ich ab schon vor Tagen versucht etwas ähnliches zu machen

                            <xml xmlns="https://developers.google.com/blockly/xml">
                              <variables>
                                <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
                                <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
                              </variables>
                              <block type="on_ext" id="W(z,yg-Ow^f7t{8WQK(s" x="-88" y="-62">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                <field name="CONDITION">ne</field>
                                <field name="ACK_CONDITION"></field>
                                <value name="OID0">
                                  <shadow type="field_oid" id="E?[HmCB=0[zmvV},7AEX">
                                    <field name="oid">openuv.0.UV</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="variables_set" id="]qaB]m_Yc-OjQ*Gk,ax]">
                                    <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                    <value name="VALUE">
                                      <block type="field_oid" id="970QW1O:HdPiSIX-~SyE">
                                        <field name="oid">openuv.0.UV</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!" collapsed="true">
                                        <value name="IF0">
                                          <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk">
                                            <field name="OP">LTE</field>
                                            <value name="A">
                                              <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
                                                <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
                                                <field name="NUM">2</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
                                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                            <value name="VALUE">
                                              <block type="text" id="RS{m|vjt~Vm2y?CYh(.">
                                                <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#C0FFA0; text-align:center;"&gt;0–2&lt;/td&gt;                 &lt;td&gt;niedrig&lt;/td&gt;                 &lt;td&gt;Kein Schutz erforderlich.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="controls_if" id="KoQO160P*4oN$4^@?nNp" collapsed="true">
                                            <value name="IF0">
                                              <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs">
                                                <field name="OP">LTE</field>
                                                <value name="A">
                                                  <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu">
                                                    <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_">
                                                    <field name="NUM">5</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="variables_set" id="rP~[TTmnAL*sGDKD3o@1">
                                                <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                <value name="VALUE">
                                                  <block type="text" id="(d0%*O9JE}@mrr.-3[gv">
                                                    <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F8F040; text-align:center;"&gt;3–5&lt;/td&gt;                 &lt;td&gt;mäßig&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="controls_if" id="P#IQTmD,zx*1Afe.N+@x" collapsed="true">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1">
                                                    <field name="OP">LTE</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="ZjNx~U=Np42A6$$bvge=">
                                                        <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="3)8EF{g./R;q,sjm4h@O">
                                                        <field name="NUM">7</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="variables_set" id="#/,!3jwQbulyWS4J}H3(">
                                                    <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                    <value name="VALUE">
                                                      <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
                                                        <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F87820; text-align:center;"&gt;6–7&lt;/td&gt;                 &lt;td&gt;hoch&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme.&lt;br&gt; Mittagssonne meiden.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="controls_if" id="5aY6UDu1g(*_,~8y0)Z[" collapsed="true">
                                                    <value name="IF0">
                                                      <block type="logic_compare" id="JJm@T!hf4IfCa7YvZ/*w">
                                                        <field name="OP">LTE</field>
                                                        <value name="A">
                                                          <block type="variables_get" id="Mh}Hdf#:%VJ;P:TrFi%P">
                                                            <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="MGFd}fUFz[D3x8TXGe3%">
                                                            <field name="NUM">10</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="variables_set" id="y-)%r2HB6!^GOIm2/40q">
                                                        <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                        <value name="VALUE">
                                                          <block type="text" id="79M;KP(7:`,R1=iKOPdo">
                                                            <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#D80020; text-align:center;"&gt;8–10&lt;/td&gt;                 &lt;td&gt;sehr hoch&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Den Aufenthalt im Freien zwischen 11 und 15 Uhr vermeiden; auch im Schatten gehören ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut zum sonnengerechten Verhalten.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="controls_if" id="LMpBq7kdOi+%%6{3-0%m" collapsed="true">
                                                        <value name="IF0">
                                                          <block type="logic_compare" id="}_I?*{?[DIl_.@dPkYu)">
                                                            <field name="OP">LTE</field>
                                                            <value name="A">
                                                              <block type="variables_get" id="zLI]@$|?ml3_wNKO)v8@">
                                                                <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="#AbcvOG19]fPmt6Bt#?G">
                                                                <field name="NUM">11</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="variables_set" id="y!2guum{^*z|e/^r]!lN">
                                                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                            <value name="VALUE">
                                                              <block type="text" id=")%/Z3Z)tLv)C*wAL7Z%D">
                                                                <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#A80080; text-align:center;"&gt;≥ 11&lt;/td&gt;                 &lt;td&gt;extrem&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Die WHO rät, zwischen 11 und 15 Uhr im Schutz eines Hauses zu bleiben und auch außerhalb dieser Zeit unbedingt Schatten zu suchen. Auch im Schatten gelten ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut als unerlässlich.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="control_ex" id=".V|0VVOY)Pf$w!21)S+L">
                                                            <field name="TYPE">true</field>
                                                            <field name="CLEAR_RUNNING">TRUE</field>
                                                            <value name="OID">
                                                              <shadow type="field_oid" id="lnv)UkZ70(0@KYW:f(Qj">
                                                                <field name="oid">0_userdata.0.Eigenescripte.uv</field>
                                                              </shadow>
                                                            </value>
                                                            <value name="VALUE">
                                                              <shadow type="logic_boolean" id=";;ei{w51%hYrLQU6!~ZH">
                                                                <field name="BOOL">TRUE</field>
                                                              </shadow>
                                                              <block type="variables_get" id="3$%I1Ju.xh%}W#dn)-+0">
                                                                <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                              </block>
                                                            </value>
                                                            <value name="DELAY_MS">
                                                              <shadow type="math_number" id="(,_HlvXu1sk5?*OcLZ@">
                                                                <field name="NUM">100</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </xml>
                            

                            in der objekten komme ich nur die meldung
                            d5efd6c97704ef78990f27a725a29ebf.png

                            P Offline
                            P Offline
                            ps1304
                            schrieb am zuletzt editiert von
                            #15

                            @horst-böttcher bei mir funktioniert das Blocky jetzt. Folgendes Setup:
                            2 Datenpunkte: uv-index und uv-text
                            Den DP uv-index befülle ich mit einem anderen Script
                            Das aktuelle UV-Text Blocky als Bild und Code:
                            Blocky-UV-neu.PNG


                            <xml xmlns="https://developers.google.com/blockly/xml">
                            <variables>
                            <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
                            <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
                            </variables>
                            <block type="comment" id="K.rfIskkC92GV5jo[=B" x="13" y="-2937">
                            <field name="COMMENT">Schleife zur Berechnung des Schutz-Textes</field>
                            </block>
                            <block type="procedures_defreturn" id="{E{kBl$;YA
                            0QmyXKcW" x="13" y="-2912">
                            <mutation>
                            <arg name="UV-Wert" varid="=^M8DHr?F3o8992onF=}"></arg>
                            </mutation>
                            <field name="NAME">UV-Text berechnen</field>
                            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                            <statement name="STACK">
                            <block type="variables_set" id="sGgM;C,DVf+d
                            kr(|,y)">
                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                            <value name="VALUE">
                            <block type="text" id="RS{m|vjt~Vm2y?CYh(.">
                            <field name="TEXT">Kein Schutz notwendig oder bei (Null) keine Daten vorhanden</field>
                            </block>
                            </value>
                            <next>
                            <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!">
                            <value name="IF0">
                            <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk">
                            <field name="OP">GT</field>
                            <value name="A">
                            <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
                            <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
                            <field name="NUM">2</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO0">
                            <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                            <value name="VALUE">
                            <block type="text" id="(d0%O9JE}@mrr.-3[gv">
                            <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme</field>
                            </block>
                            </value>
                            </block>
                            </statement>
                            <next>
                            <block type="controls_if" id="KoQO160P
                            4oN$4^@?nNp">
                            <value name="IF0">
                            <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs">
                            <field name="OP">GT</field>
                            <value name="A">
                            <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu">
                            <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_">
                            <field name="NUM">5</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO0">
                            <block type="variables_set" id="rP~[TTmnALsGDKD3o@1">
                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                            <value name="VALUE">
                            <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
                            <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme. Die WHO empfiehlt, mittags den Schatten zu suchen. </field>
                            </block>
                            </value>
                            </block>
                            </statement>
                            <next>
                            <block type="controls_if" id="P#IQTmD,zx
                            1Afe.N+@x">
                            <value name="IF0">
                            <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1">
                            <field name="OP">GT</field>
                            <value name="A">
                            <block type="variables_get" id="ZjNx~U=Np42A6$$bvge=">
                            <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="math_number" id="3)8EF{g./R;q,sjm4h@O">
                            <field name="NUM">7</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO0">
                            <block type="variables_set" id="#/,!3jwQbulyWS4J}H3(">
                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                            <value name="VALUE">
                            <block type="text" id="6[7:R|~91D6.15?%xg#">
                            <field name="TEXT">zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden Die WHO empfiehlt, den Aufenthalt im Freien zwischen 11 und 15 Uhr zu vermeiden; auch im Schatten gehören ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut zum sonnengerechten Verhalten. </field>
                            </block>
                            </value>
                            </block>
                            </statement>
                            <next>
                            <block type="controls_if" id="-o:-WW!*|kol6I$NuB5D">
                            <value name="IF0">
                            <block type="logic_compare" id="dP`{+mRH2=I}1vQixDmJ">
                            <field name="OP">GT</field>
                            <value name="A">
                            <block type="variables_get" id="NyQLu-Y]7@5^qjU^=@p-">
                            <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="math_number" id="^X|BbvE)jUeyrZt!441R">
                            <field name="NUM">11</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO0">
                            <block type="variables_set" id="AIO/FMg1?{O,J.+Cn!G!">
                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                            <value name="VALUE">
                            <block type="text" id="fnTfvmXh#Zp~b2%Othul">
                            <field name="TEXT">zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden Die WHO rät, zwischen 11 und 15 Uhr im Schutz eines Hauses zu bleiben und auch außerhalb dieser Zeit unbedingt Schatten zu suchen. Auch im Schatten gelten ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut als unerlässlich. </field>
                            </block>
                            </value>
                            </block>
                            </statement>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </statement>
                            <value name="RETURN">
                            <block type="variables_get" id="Fx5J|,2m0gb+O`^^+Xk">
                            <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                            </block>
                            </value>
                            </block>
                            <block type="comment" id="0:
                            `PN#0$+C8o]zCNrzf" x="13" y="-2487">
                            <field name="COMMENT">Trigger Update Schutztextes, "uv-index" wird von einem 2.ten Script befüllt</field>
                            <next>
                            <block type="update" id="|
                            ^w6/@XKd,Tz)0pUyqp">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                            <field name="OID">0_userdata.0.uv.uv-text</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">1000</field>
                            <field name="UNIT">ms</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                            <block type="procedures_callreturn" id="-ko5Hh`f{-p5=WSpJg?r">
                            <mutation name="UV-Text berechnen">
                            <arg name="UV-Wert"></arg>
                            </mutation>
                            <value name="ARG0">
                            <block type="get_value" id="T6U/a]AP#p5QYH$LPfp?">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.uv.uv-index</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <next>
                            <block type="comment" id="F2Q$JDis6(3y+$/:`v:5">
                            <field name="COMMENT">Trigger-ist "uv-index" geändert?</field>
                            <next>
                            <block type="on" id="lMenhSHOGKfWB|isVq_3">
                            <field name="OID">0_userdata.0.uv.uv-index</field>
                            <field name="CONDITION">ne</field>
                            <field name="ACK_CONDITION"></field>
                            <statement name="STATEMENT">
                            <block type="comment" id="S+m9)ld4rL~Z6Zq8ex|V">
                            <field name="COMMENT">"uv-text" Update mit Ergebnis Schleife</field>
                            <next>
                            <block type="update" id="IZyLnqU$q6AvPjtUE(FA">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                            <field name="OID">0_userdata.0.uv.uv-text</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">1000</field>
                            <field name="UNIT">ms</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                            <block type="procedures_callreturn" id="k:+t7T$zsS,Fn)16sv">
                            <mutation name="UV-Text berechnen">
                            <arg name="UV-Wert"></arg>
                            </mutation>
                            <value name="ARG0">
                            <block type="on_source" id="#;X-;3BWR1qE{#Rw0k19">
                            <field name="ATTR">state.val</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            </block>
                            </next>
                            </block>
                            </statement>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </xml>

                            Horst BöttcherH 1 Antwort Letzte Antwort
                            0
                            • P ps1304

                              @horst-böttcher bei mir funktioniert das Blocky jetzt. Folgendes Setup:
                              2 Datenpunkte: uv-index und uv-text
                              Den DP uv-index befülle ich mit einem anderen Script
                              Das aktuelle UV-Text Blocky als Bild und Code:
                              Blocky-UV-neu.PNG


                              <xml xmlns="https://developers.google.com/blockly/xml">
                              <variables>
                              <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
                              <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
                              </variables>
                              <block type="comment" id="K.rfIskkC92GV5jo[=B" x="13" y="-2937">
                              <field name="COMMENT">Schleife zur Berechnung des Schutz-Textes</field>
                              </block>
                              <block type="procedures_defreturn" id="{E{kBl$;YA
                              0QmyXKcW" x="13" y="-2912">
                              <mutation>
                              <arg name="UV-Wert" varid="=^M8DHr?F3o8992onF=}"></arg>
                              </mutation>
                              <field name="NAME">UV-Text berechnen</field>
                              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                              <statement name="STACK">
                              <block type="variables_set" id="sGgM;C,DVf+d
                              kr(|,y)">
                              <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                              <value name="VALUE">
                              <block type="text" id="RS{m|vjt~Vm2y?CYh(.">
                              <field name="TEXT">Kein Schutz notwendig oder bei (Null) keine Daten vorhanden</field>
                              </block>
                              </value>
                              <next>
                              <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!">
                              <value name="IF0">
                              <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk">
                              <field name="OP">GT</field>
                              <value name="A">
                              <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
                              <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                              </block>
                              </value>
                              <value name="B">
                              <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
                              <field name="NUM">2</field>
                              </block>
                              </value>
                              </block>
                              </value>
                              <statement name="DO0">
                              <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
                              <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                              <value name="VALUE">
                              <block type="text" id="(d0%O9JE}@mrr.-3[gv">
                              <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme</field>
                              </block>
                              </value>
                              </block>
                              </statement>
                              <next>
                              <block type="controls_if" id="KoQO160P
                              4oN$4^@?nNp">
                              <value name="IF0">
                              <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs">
                              <field name="OP">GT</field>
                              <value name="A">
                              <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu">
                              <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                              </block>
                              </value>
                              <value name="B">
                              <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_">
                              <field name="NUM">5</field>
                              </block>
                              </value>
                              </block>
                              </value>
                              <statement name="DO0">
                              <block type="variables_set" id="rP~[TTmnALsGDKD3o@1">
                              <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                              <value name="VALUE">
                              <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
                              <field name="TEXT">Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme. Die WHO empfiehlt, mittags den Schatten zu suchen. </field>
                              </block>
                              </value>
                              </block>
                              </statement>
                              <next>
                              <block type="controls_if" id="P#IQTmD,zx
                              1Afe.N+@x">
                              <value name="IF0">
                              <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1">
                              <field name="OP">GT</field>
                              <value name="A">
                              <block type="variables_get" id="ZjNx~U=Np42A6$$bvge=">
                              <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                              </block>
                              </value>
                              <value name="B">
                              <block type="math_number" id="3)8EF{g./R;q,sjm4h@O">
                              <field name="NUM">7</field>
                              </block>
                              </value>
                              </block>
                              </value>
                              <statement name="DO0">
                              <block type="variables_set" id="#/,!3jwQbulyWS4J}H3(">
                              <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                              <value name="VALUE">
                              <block type="text" id="6[7:R|~91D6.15?%xg#">
                              <field name="TEXT">zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden Die WHO empfiehlt, den Aufenthalt im Freien zwischen 11 und 15 Uhr zu vermeiden; auch im Schatten gehören ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut zum sonnengerechten Verhalten. </field>
                              </block>
                              </value>
                              </block>
                              </statement>
                              <next>
                              <block type="controls_if" id="-o:-WW!*|kol6I$NuB5D">
                              <value name="IF0">
                              <block type="logic_compare" id="dP`{+mRH2=I}1vQixDmJ">
                              <field name="OP">GT</field>
                              <value name="A">
                              <block type="variables_get" id="NyQLu-Y]7@5^qjU^=@p-">
                              <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                              </block>
                              </value>
                              <value name="B">
                              <block type="math_number" id="^X|BbvE)jUeyrZt!441R">
                              <field name="NUM">11</field>
                              </block>
                              </value>
                              </block>
                              </value>
                              <statement name="DO0">
                              <block type="variables_set" id="AIO/FMg1?{O,J.+Cn!G!">
                              <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                              <value name="VALUE">
                              <block type="text" id="fnTfvmXh#Zp~b2%Othul">
                              <field name="TEXT">zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden Die WHO rät, zwischen 11 und 15 Uhr im Schutz eines Hauses zu bleiben und auch außerhalb dieser Zeit unbedingt Schatten zu suchen. Auch im Schatten gelten ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut als unerlässlich. </field>
                              </block>
                              </value>
                              </block>
                              </statement>
                              </block>
                              </next>
                              </block>
                              </next>
                              </block>
                              </next>
                              </block>
                              </next>
                              </block>
                              </statement>
                              <value name="RETURN">
                              <block type="variables_get" id="Fx5J|,2m0gb+O`^^+Xk">
                              <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                              </block>
                              </value>
                              </block>
                              <block type="comment" id="0:
                              `PN#0$+C8o]zCNrzf" x="13" y="-2487">
                              <field name="COMMENT">Trigger Update Schutztextes, "uv-index" wird von einem 2.ten Script befüllt</field>
                              <next>
                              <block type="update" id="|
                              ^w6/@XKd,Tz)0pUyqp">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">0_userdata.0.uv.uv-text</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                              <block type="procedures_callreturn" id="-ko5Hh`f{-p5=WSpJg?r">
                              <mutation name="UV-Text berechnen">
                              <arg name="UV-Wert"></arg>
                              </mutation>
                              <value name="ARG0">
                              <block type="get_value" id="T6U/a]AP#p5QYH$LPfp?">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.uv.uv-index</field>
                              </block>
                              </value>
                              </block>
                              </value>
                              <next>
                              <block type="comment" id="F2Q$JDis6(3y+$/:`v:5">
                              <field name="COMMENT">Trigger-ist "uv-index" geändert?</field>
                              <next>
                              <block type="on" id="lMenhSHOGKfWB|isVq_3">
                              <field name="OID">0_userdata.0.uv.uv-index</field>
                              <field name="CONDITION">ne</field>
                              <field name="ACK_CONDITION"></field>
                              <statement name="STATEMENT">
                              <block type="comment" id="S+m9)ld4rL~Z6Zq8ex|V">
                              <field name="COMMENT">"uv-text" Update mit Ergebnis Schleife</field>
                              <next>
                              <block type="update" id="IZyLnqU$q6AvPjtUE(FA">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">0_userdata.0.uv.uv-text</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                              <block type="procedures_callreturn" id="k:+t7T$zsS,Fn)16sv">
                              <mutation name="UV-Text berechnen">
                              <arg name="UV-Wert"></arg>
                              </mutation>
                              <value name="ARG0">
                              <block type="on_source" id="#;X-;3BWR1qE{#Rw0k19">
                              <field name="ATTR">state.val</field>
                              </block>
                              </value>
                              </block>
                              </value>
                              </block>
                              </next>
                              </block>
                              </statement>
                              </block>
                              </next>
                              </block>
                              </next>
                              </block>
                              </next>
                              </block>
                              </xml>

                              Horst BöttcherH Offline
                              Horst BöttcherH Offline
                              Horst Böttcher
                              schrieb am zuletzt editiert von
                              #16

                              @ps1304

                              bei mir jetzt auch
                              @paul53 sagte in Hilfe für Dummy gesucht (gelöst):

                              @horst-böttcher sagte: versucht etwas ähnliches zu machen

                              UV-Wert muss den Wert (unter "Trigger") des Datenpunktes erhalten, nicht die ID. Die Prüfung muss in dieser Reihenfolge auf > erfolgen, nicht auf <=.

                              Bild_2021-06-18_172101.png

                              <xml xmlns="https://developers.google.com/blockly/xml">
                               <variables>
                                 <variable id="=^M8DHr?F3o8992onF=}">UV-Wert</variable>
                                 <variable id="Qk1eJXH})rn~U0!-L?a,">UV-Text</variable>
                               </variables>
                               <block type="on_ext" id="W(z,yg-Ow^f7t{8WQK(s" x="-88" y="-62">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                 <field name="CONDITION">ne</field>
                                 <field name="ACK_CONDITION"></field>
                                 <value name="OID0">
                                   <shadow type="field_oid" id="E?[HmCB=0[zmvV},7AEX">
                                     <field name="oid">openuv.0.UV</field>
                                   </shadow>
                                 </value>
                                 <statement name="STATEMENT">
                                   <block type="variables_set" id="]qaB]m_Yc-OjQ*Gk,ax]">
                                     <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                     <value name="VALUE">
                                       <block type="on_source" id="J}T{tJY(4iwQMYA.60$5">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="b-lOXQ^1?%h(b,E!x;3r">
                                         <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                         <value name="VALUE">
                                           <block type="text" id="RS{m|vjt~Vm2y?CYh(.">
                                             <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#C0FFA0; text-align:center;"&gt;0–2&lt;/td&gt;                 &lt;td&gt;niedrig&lt;/td&gt;                 &lt;td&gt;Kein Schutz erforderlich.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="controls_if" id="~j(!-iB/(W{x-w];CU%!">
                                             <value name="IF0">
                                               <block type="logic_compare" id="w|,#7kYfgC{6)M-gf$Uk">
                                                 <field name="OP">GT</field>
                                                 <value name="A">
                                                   <block type="variables_get" id="+lIBZWO|,6^BK+Q?P.O">
                                                     <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="LEx,%HhAw#ccBEPP(v1b">
                                                     <field name="NUM">2</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <statement name="DO0">
                                               <block type="variables_set" id="rP~[TTmnAL*sGDKD3o@1">
                                                 <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                 <value name="VALUE">
                                                   <block type="text" id="(d0%*O9JE}@mrr.-3[gv">
                                                     <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F8F040; text-align:center;"&gt;3–5&lt;/td&gt;                 &lt;td&gt;mäßig&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="controls_if" id="KoQO160P*4oN$4^@?nNp">
                                                 <value name="IF0">
                                                   <block type="logic_compare" id="$eZ?.YAkm~bEp+h+w]gs">
                                                     <field name="OP">GT</field>
                                                     <value name="A">
                                                       <block type="variables_get" id=".13r0{C67=xSeH,7x$Bu">
                                                         <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="math_number" id="HJr,Ly?CF7cw2grc{HF_">
                                                         <field name="NUM">5</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO0">
                                                   <block type="variables_set" id="#/,!3jwQbulyWS4J}H3(">
                                                     <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                     <value name="VALUE">
                                                       <block type="text" id="q~n/yM+Y/!LLH{1l?ap">
                                                         <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#F87820; text-align:center;"&gt;6–7&lt;/td&gt;                 &lt;td&gt;hoch&lt;/td&gt;                 &lt;td&gt;Schutz erforderlich: Hut, T-Shirt, Sonnenbrille, Sonnencreme.&lt;br&gt; Mittagssonne meiden.                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </statement>
                                                 <next>
                                                   <block type="controls_if" id="P#IQTmD,zx*1Afe.N+@x">
                                                     <value name="IF0">
                                                       <block type="logic_compare" id="Sz_cu})85D~1E,/MHaF1">
                                                         <field name="OP">GT</field>
                                                         <value name="A">
                                                           <block type="variables_get" id="ZjNx~U=Np42A6$$bvge=">
                                                             <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="math_number" id="3)8EF{g./R;q,sjm4h@O">
                                                             <field name="NUM">7</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <statement name="DO0">
                                                       <block type="variables_set" id="y-)%r2HB6!^GOIm2/40q">
                                                         <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                         <value name="VALUE">
                                                           <block type="text" id="79M;KP(7:`,R1=iKOPdo">
                                                             <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#D80020; text-align:center;"&gt;8–10&lt;/td&gt;                 &lt;td&gt;sehr hoch&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Den Aufenthalt im Freien zwischen 11 und 15 Uhr vermeiden; auch im Schatten gehören ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut zum sonnengerechten Verhalten.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </statement>
                                                     <next>
                                                       <block type="controls_if" id="5aY6UDu1g(*_,~8y0)Z[">
                                                         <value name="IF0">
                                                           <block type="logic_compare" id="JJm@T!hf4IfCa7YvZ/*w">
                                                             <field name="OP">GT</field>
                                                             <value name="A">
                                                               <block type="variables_get" id="Mh}Hdf#:%VJ;P:TrFi%P">
                                                                 <field name="VAR" id="=^M8DHr?F3o8992onF=}">UV-Wert</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="math_number" id="MGFd}fUFz[D3x8TXGe3%">
                                                                 <field name="NUM">10</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO0">
                                                           <block type="variables_set" id="y!2guum{^*z|e/^r]!lN">
                                                             <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                             <value name="VALUE">
                                                               <block type="text" id=")%/Z3Z)tLv)C*wAL7Z%D">
                                                                 <field name="TEXT">&lt;tr&gt;                 &lt;td style="background:#A80080; text-align:center;"&gt;≥ 11&lt;/td&gt;                 &lt;td&gt;extrem&lt;/td&gt;                 &lt;td&gt;zusätzlicher Schutz erforderlich: Aufenthalt im Freien möglichst vermeiden&lt;br&gt;                 &lt;p&gt;Die WHO rät, zwischen 11 und 15 Uhr im Schutz eines Hauses zu bleiben und auch außerhalb dieser Zeit unbedingt Schatten zu suchen. Auch im Schatten gelten ein sonnendichtes Oberteil, lange Hosen, Sonnencreme, Sonnenbrille und ein breitkrempiger Hut als unerlässlich.                 &lt;/p&gt;                 &lt;/td&gt;&lt;/tr&gt;</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </statement>
                                                         <next>
                                                           <block type="control_ex" id=".V|0VVOY)Pf$w!21)S+L">
                                                             <field name="TYPE">true</field>
                                                             <field name="CLEAR_RUNNING">TRUE</field>
                                                             <value name="OID">
                                                               <shadow type="field_oid" id="lnv)UkZ70(0@KYW:f(Qj">
                                                                 <field name="oid">0_userdata.0.Eigenescripte.uv</field>
                                                               </shadow>
                                                             </value>
                                                             <value name="VALUE">
                                                               <shadow type="logic_boolean" id=";;ei{w51%hYrLQU6!~ZH">
                                                                 <field name="BOOL">TRUE</field>
                                                               </shadow>
                                                               <block type="variables_get" id="3$%I1Ju.xh%}W#dn)-+0">
                                                                 <field name="VAR" id="Qk1eJXH})rn~U0!-L?a,">UV-Text</field>
                                                               </block>
                                                             </value>
                                                             <value name="DELAY_MS">
                                                               <shadow type="math_number" id="(,_HlvXu1sk5?*OcLZ@">
                                                                 <field name="NUM">100</field>
                                                               </shadow>
                                                             </value>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                              </xml>
                              

                              ioBroker auf Proxmox (Debian) auf LENOVO PC Thinkcentre als Produktivsystem

                              1 Antwort Letzte Antwort
                              0

                              Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                              Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                              Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                              Registrieren Anmelden
                              Antworten
                              • In einem neuen Thema antworten
                              Anmelden zum Antworten
                              • Älteste zuerst
                              • Neuste zuerst
                              • Meiste Stimmen


                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              586

                              Online

                              32.8k

                              Benutzer

                              82.7k

                              Themen

                              1.3m

                              Beiträge
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                              ioBroker Community 2014-2025
                              logo
                              • Anmelden

                              • Du hast noch kein Konto? Registrieren

                              • Anmelden oder registrieren, um zu suchen
                              • Erster Beitrag
                                Letzter Beitrag
                              0
                              • Home
                              • Aktuell
                              • Tags
                              • Ungelesen 0
                              • Kategorien
                              • Unreplied
                              • Beliebt
                              • GitHub
                              • Docu
                              • Hilfe