Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter OpenUV v0.0.x

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Test Adapter OpenUV v0.0.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • Albert K
      Albert K @watcherkb last edited by

      @watcherkb

      das kann bei mir auch vorkommen da ich ja das Wetter bis zu 3 Stunden im voraus betrachte. Erst letzten Samstag fuhren die Läden so gegen 10:45 in die Beschattung obwohl alles wolkenverhangen war und es kurz davor noch geregnet hatte. 😕 Ein Blick auf die Wettervorhersage zeigte aber dass gegen 11:00 dann die Sonne richtig knallen sollte mit UVI 9. Und so war es dann auch, also alles richtig.

      Die Berechnung mache ich in diesem Blockly
      Lokaler UVI.png

      Der Roh UV Wert kommt aus OpenUV, der Cloud Wert aus "Das Wetter". Der Multiplikator ist in OpenUV beschrieben

      Die cloud Grenzwerte sind Durchschnitts Werte die ich mal über mehrere Tage aus "Das Wetter" ermittelt habe.

      W 1 Reply Last reply Reply Quote 0
      • W
        watcherkb @Albert K last edited by

        @Albert-K

        ja aber so wie es bei dir läuft ist es doch auch richtig. Heute fuhren die Rollläden fleißig hoch/runter, aber von Sonne keine Spur.
        Könntest du das Blockly noch als Script exportieren?

        DANKE

        Albert K 1 Reply Last reply Reply Quote 0
        • Albert K
          Albert K @watcherkb last edited by

          @watcherkb

          there you go


          <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="Ccu1kSo}}RMZK6BM({1:" x="-367" y="-583">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
          <shadow type="field_oid" id="DMKiTjBDj@].O;Z]a?iO">
          <field name="oid">daswetter.0.NextHours2.Location_1.Day_1.current.clouds</field>
          </shadow>
          </value>
          <value name="OID1">
          <shadow type="field_oid" id="fysH_M)gu:$qp{PoWO)"> <field name="oid">openuv.0.UV</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="21:,*-..GigU,Y.U|pQ">
          <mutation elseif="3"></mutation>
          <value name="IF0">
          <block type="logic_compare" id="z9}(X]Cm+svbb455%Sgl">
          <field name="OP">LTE</field>
          <value name="A">
          <block type="get_value" id="kkZHuJ-k;7R0[=wF6(I">
          <field name="ATTR">val</field>
          <field name="OID">daswetter.0.NextHours2.Location_1.Day_1.current.clouds</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="ek}ZjEV$.3Mn4)i4ho
          ;">
          <field name="NUM">10</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="update" id="{{k4|9fbb3N2xS5r?M4"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.LokalerUVI</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="%bSNIBP,6(:=^s|C)SWU"> <field name="OP">ROUND</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="jo%o1Q:?pE*2u2|C|^h9"> <field name="NUM">3.1</field> </shadow> <block type="get_value" id="*W1Gi9h8O)=hXL]AX6z}"> <field name="ATTR">val</field> <field name="OID">openuv.0.UV</field> </block> </value> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="Em(4M:gAakK!#pn3-;;]"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="3-F3pvZI~D8Pu$i|^n%N"> <field name="ATTR">val</field> <field name="OID">daswetter.0.NextHours2.Location_1.Day_1.current.clouds</field> </block> </value> <value name="B"> <block type="math_number" id="/$|iMb4t?JG9v312([[w"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id="K,k/Mq84=S5ys?mJA5t$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.LokalerUVI</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="N[ZCJrK{uAUu!3f-uuy_"> <field name="OP">ROUND</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="$RUbuhvt9|vl5TR}?tva"> <field name="NUM">3.1</field> </shadow> <block type="math_arithmetic" id="|+EM@G!c;9$[y(Q@WC)y"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="OO;Vn9884f=pa,G+5JnV"> <field name="NUM">1</field> </shadow> <block type="get_value" id="Rd/Hy3@d;4baY}0s7)y6"> <field name="ATTR">val</field> <field name="OID">openuv.0.UV</field> </block> </value> <value name="B"> <shadow type="math_number" id="8Tk:LP.lI^XjglTd+Hy">
          <field name="NUM">0.89</field>
          </shadow>
          </value>
          </block>
          </value>
          </block>
          </value>
          </block>
          </statement>
          <value name="IF2">
          <block type="logic_compare" id="h-IpD)-A90-fSmnXpzCZ">
          <field name="OP">LTE</field>
          <value name="A">
          <block type="get_value" id="KO{qHyCPGd7l-L5*^fen">
          <field name="ATTR">val</field>
          <field name="OID">daswetter.0.NextHours2.Location_1.Day_1.current.clouds</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="va:VpPx#raFrhG*jL-}"> <field name="NUM">95</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id=".tR@9X0KicXPRXx*rj2{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.LokalerUVI</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="w-ZGK}~(k/Qiw[A)Q^$">
          <field name="OP">ROUND</field>
          <value name="NUM">
          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f~W6(?io#hSF-n?GNwM4">
          <field name="NUM">3.1</field>
          </shadow>
          <block type="math_arithmetic" id="meOdH1WuG|w_{GL=eIIs">
          <field name="OP">MULTIPLY</field>
          <value name="A">
          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="OO;Vn9884f=pa,G+5JnV">
          <field name="NUM">1</field>
          </shadow>
          <block type="get_value" id="({OW]f8CaINF024,oE0?">
          <field name="ATTR">val</field>
          <field name="OID">openuv.0.UV</field>
          </block>
          </value>
          <value name="B">
          <shadow type="math_number" id="!w(m1QRrbbkA6[NL2d;"> <field name="NUM">0.73</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="rI}U|]*}DZxK0iM886,p"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="^.b);s2u)f+J/NRVI/_$"> <field name="ATTR">val</field> <field name="OID">daswetter.0.NextHours2.Location_1.Day_1.current.clouds</field> </block> </value> <value name="B"> <block type="math_number" id="1+nC+Gm~WY+9xPAqf[A">
          <field name="NUM">100</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO3">
          <block type="update" id="|c3Qpsr@{uu+l1W2LkqI">
          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
          <field name="OID">javascript.0.LokalerUVI</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="math_round" id="^k2kSz]PqJTsj4+u}[5;">
          <field name="OP">ROUND</field>
          <value name="NUM">
          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="lLMJ).OumyGVtlAnP;m7">
          <field name="NUM">3.1</field>
          </shadow>
          <block type="math_arithmetic" id="o@fu:p9aeN0sa1tQRuT~">
          <field name="OP">MULTIPLY</field>
          <value name="A">
          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="OO;Vn9884f=pa,G+5JnV">
          <field name="NUM">1</field>
          </shadow>
          <block type="get_value" id="1gV%^bXsCbmgDDGHGM~e">
          <field name="ATTR">val</field>
          <field name="OID">openuv.0.UV</field>
          </block>
          </value>
          <value name="B">
          <shadow type="math_number" id="XrOeqtk9uUR~WH8oZSxT">
          <field name="NUM">0.31</field>
          </shadow>
          </value>
          </block>
          </value>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </statement>
          </block>

          W 1 Reply Last reply Reply Quote 0
          • W
            watcherkb @Albert K last edited by

            @Albert-K
            habs mal implementiert. Bei welchem Wert lässt du denn die Rolläden runterfahren?

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

              @x3l4 danke für den adapter

              @sigi234 danke für das widget

              daten kommen - bin gespannt, was morgen so angezeigt wird

              1 Reply Last reply Reply Quote 0
              • Albert K
                Albert K @watcherkb last edited by

                @watcherkb

                bei LokalerUV >5 fahren die Rollläden in die Beschattung, und bei 0 wieder hoch

                W 1 Reply Last reply Reply Quote 0
                • W
                  watcherkb @Albert K last edited by

                  @Albert-K hab ich es richtig gesehen dass du die Cloud in den nächsten 2 Stunden auswertest? Warum nicht den aktuellen Wert.?

                  Albert K 1 Reply Last reply Reply Quote 0
                  • Albert K
                    Albert K @watcherkb last edited by

                    @watcherkb

                    weil ich möchte dass die Rollläden schon herunterfahren bevor die große Hitze kommt. 😊

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

                      Gibt es den Adapter noch? Ich finde ihn in der Liste der Adaper nicht, egal ob default oder latest. Auch über die Katze finde ich ihn nicht.

                      Albert K 1 Reply Last reply Reply Quote 0
                      • Albert K
                        Albert K @pk68 last edited by

                        @pk68

                        Schau mal im ersten Post ganz oben, dort ist der Link.

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          pk68 @Albert K last edited by

                          @Albert-K Danke für die Info. Die Seite auf Github hatte ich schon gesehen, aber konnte damit nichts anfangen. Habe erst jetzt gefunden, dass man auch bei "Adapter aus beliebiger Quelle installieren oder aktualisieren" eine url angeben kann. Darüber habe ich nun den Adapter installiert (Version 0.0.5). Allerdings finde ich ihn nicht unter Instanzen bzw. Objekte. Ist da noch etwas zu tun?

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @pk68 last edited by

                            @pk68 ja, noch eine Instanz hinzufügen.

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              pk68 @Guest last edited by

                              @ilovegym Wieder was gelernt. Danke.

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              562
                              Online

                              31.9k
                              Users

                              80.1k
                              Topics

                              1.3m
                              Posts

                              openuv iobroker uv uvindex
                              11
                              41
                              2848
                              Loading More Posts
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes
                              Reply
                              • Reply as topic
                              Log in to reply
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                              The ioBroker Community 2014-2023
                              logo