@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
@watcherkb
there you go
Spoiler
<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>
@watcherkb
there you go
Spoiler
<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>
@Albert-K
habs mal implementiert. Bei welchem Wert lässt du denn die Rolläden runterfahren?
@x3l4 danke für den adapter
@sigi234 danke für das widget
daten kommen - bin gespannt, was morgen so angezeigt wird
@Albert-K
habs mal implementiert. Bei welchem Wert lässt du denn die Rolläden runterfahren?
@watcherkb
bei LokalerUV >5 fahren die Rollläden in die Beschattung, und bei 0 wieder hoch
@watcherkb
bei LokalerUV >5 fahren die Rollläden in die Beschattung, und bei 0 wieder hoch
@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 hab ich es richtig gesehen dass du die Cloud in den nächsten 2 Stunden auswertest? Warum nicht den aktuellen Wert.?
@watcherkb
weil ich möchte dass die Rollläden schon herunterfahren bevor die große Hitze kommt.
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.
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.
@pk68
Schau mal im ersten Post ganz oben, dort ist der Link.
@pk68
Schau mal im ersten Post ganz oben, dort ist der Link.
@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?
@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?
@pk68 ja, noch eine Instanz hinzufügen.
@pk68 ja, noch eine Instanz hinzufügen.
@ilovegym Wieder was gelernt. Danke.
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