Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly followthesun Azimuth

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Blockly followthesun Azimuth

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

      @ionar sagte:

      • Szene Süden: 150 Grad
      • Szene Südwesten: 195 Grad
      • Szene Westen: 240 Grad

      Also 3 Szenen.

      @homoran sagte in Blockly followthesun Azimuth:

      Sperrvariable

      Bild_2022-05-11_192140142.png

      I Homoran 2 Replies Last reply Reply Quote 1
      • I
        ionar @paul53 last edited by

        @paul53 sagte in Blockly followthesun Azimuth:

        @ionar sagte:

        • Szene Süden: 150 Grad
        • Szene Südwesten: 195 Grad
        • Szene Westen: 240 Grad

        Also 3 Szenen.

        @homoran sagte in Blockly followthesun Azimuth:

        Sperrvariable

        Bild_2022-05-11_173357365.png

        Aber die Szene würde dann doch alle 60 Sekunden auslösen, weil der Datenpunkt sich aktualisiert und einen neuen Wert in irgendeinen Bereich hat oder?

        Homoran paul53 2 Replies Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @paul53 last edited by

          @paul53 ja

          @ionar
          Das ist die Luxus all in one Variante

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

            @ionar sagte in Blockly followthesun Azimuth:

            oder

            sueden usw. sind hier die Sperrvariablen

            uebrigens: Wert befindet sich unter Trigger, ist keine selbst angelegte Variable!

            1 Reply Last reply Reply Quote 1
            • paul53
              paul53 @ionar last edited by

              @ionar sagte: die Szene würde dann doch alle 60 Sekunden auslösen, weil der Datenpunkt sich aktualisiert

              Das verhindern die Sperrvariablen.

              I 1 Reply Last reply Reply Quote 1
              • I
                ionar @paul53 last edited by ionar

                @Homoran @paul53
                Vielen Dank euch beiden!

                @paul53 Könntest du mir das bitte zum Importieren bereitstellen?

                Homoran paul53 2 Replies Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @ionar last edited by

                  @ionar sagte in Blockly followthesun Azimuth:

                  Könntest du mir das bitte zum Importieren bereitstellen?

                  wird er zwar sicherlich machen, aber basteln bildet!

                  I 1 Reply Last reply Reply Quote 1
                  • I
                    ionar @Homoran last edited by

                    @homoran 😁

                    1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @ionar last edited by

                      @ionar sagte: zum Importieren bereitstellen?

                      <xml xmlns="https://developers.google.com/blockly/xml">
                       <variables>
                         <variable id="v0h7%r8PQ0sIyrT.;`.{">sueden</variable>
                         <variable id="~2:c{c/2MQcU=L3F]ckN">suedwest</variable>
                         <variable id="4:L8i@iCk_bW~?wb;k3A">westen</variable>
                       </variables>
                       <block type="on_ext" id="sE3IrQo$5M4][J@+SGfU" x="63" y="163">
                         <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="blbYra%e,aKA4[y+LB3u">
                             <field name="oid">javascript.1.Sonne.Azimut</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="4pPCeGZcHFL#t1G/g:Xz">
                             <value name="IF0">
                               <block type="logic_compare" id="Wx~[)j`YMM9[24wCnACA">
                                 <field name="OP">LT</field>
                                 <value name="A">
                                   <block type="on_source" id="f=e,D0;iz=l,1hJHq5hZ">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="C7RyBv;BH=nwsxsKI.XD">
                                     <field name="NUM">150</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="variables_set" id="J6*+Ml4k-{zCHv!y[?+r">
                                 <field name="VAR" id="v0h7%r8PQ0sIyrT.;`.{">sueden</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="A@#n~@~U*Y9)JKD9N,*,">
                                     <field name="BOOL">FALSE</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="variables_set" id="A=ApQRz{^nJF5C!nM4lI">
                                     <field name="VAR" id="~2:c{c/2MQcU=L3F]ckN">suedwest</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="IiY?uckc_Z/8eNn]Wr7!">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="~iKG/fB7d)DAAXP1Y9!u">
                                         <field name="VAR" id="4:L8i@iCk_bW~?wb;k3A">westen</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="zAQ4:Tb:-8:Cru4nJfXB">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <next>
                               <block type="controls_if" id="6M(F%:svgzId/6!hi[O^">
                                 <value name="IF0">
                                   <block type="logic_operation" id="`~25RE5nQ?+({%_pe5fB" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="logic_negate" id="3[0~QOsTLjz%zd77$*N?">
                                         <value name="BOOL">
                                           <block type="variables_get" id="RMH+~u,/j%SpS;z(ahR}">
                                             <field name="VAR" id="v0h7%r8PQ0sIyrT.;`.{">sueden</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_compare" id="^DTUdLJ8bCuU|5$[e#r6">
                                         <field name="OP">GTE</field>
                                         <value name="A">
                                           <block type="on_source" id="=4R,IBgLmmavNe50-|DY">
                                             <field name="ATTR">state.val</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="D_Gec]c$XPuiHWizL/xa">
                                             <field name="NUM">150</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="variables_set" id="Q?0;[Dl0^F0Q6#%bJ@7[">
                                     <field name="VAR" id="v0h7%r8PQ0sIyrT.;`.{">sueden</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="{-Be3|{./)FL96zZipvD">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="control" id=":2|RWYyzP[(J5Zlv!+@n">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">Object ID</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="5SbgI]I!7RG*Al8!ElGx">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="controls_if" id="/dRDS38Z$LDHklXk-I%%">
                                     <value name="IF0">
                                       <block type="logic_operation" id="o9c/XmyCGDIMVL+DK3m4" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="logic_negate" id="#Uo+4g4;{s)kXosgLq[U">
                                             <value name="BOOL">
                                               <block type="variables_get" id="nV=D{kD{F$_7l|dz]()u">
                                                 <field name="VAR" id="~2:c{c/2MQcU=L3F]ckN">suedwest</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="logic_compare" id="/fGOFKn]I.[^?Y@9[b{)">
                                             <field name="OP">GTE</field>
                                             <value name="A">
                                               <block type="on_source" id="$AoeQs5t@:}zQ~mx$6X2">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="ca2cF$oXe5(,x?$sM~,O">
                                                 <field name="NUM">195</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="variables_set" id="%N@$fxS};lB?DH@?,rZ2">
                                         <field name="VAR" id="~2:c{c/2MQcU=L3F]ckN">suedwest</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="f0Q1Dkx3QN,88ci$yDH0">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="control" id="K_m+q!CBkP@YyiPs,u_Z">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">Object ID</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="logic_boolean" id="!;Hn.B|GXvnGhMj/oD+~">
                                                 <field name="BOOL">TRUE</field>
                                               </block>
                                             </value>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                     <next>
                                       <block type="controls_if" id="W+?8c4Q3[zx0%wz`ny5H">
                                         <value name="IF0">
                                           <block type="logic_operation" id="20VLON[R!dK?cW5o7;H#" inline="false">
                                             <field name="OP">AND</field>
                                             <value name="A">
                                               <block type="logic_negate" id="vX}YME2NkbkQ9/9A^B;3">
                                                 <value name="BOOL">
                                                   <block type="variables_get" id="KbOSB3NWfN~JOyW;/Swa">
                                                     <field name="VAR" id="4:L8i@iCk_bW~?wb;k3A">westen</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="logic_compare" id="FOTHZK72dd8P.Hfkg{~M">
                                                 <field name="OP">GTE</field>
                                                 <value name="A">
                                                   <block type="on_source" id=".1dW1TT/.[_,.-1QR.]k">
                                                     <field name="ATTR">state.val</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="Lu?VHvR]0V_1Kb;y)Ta_">
                                                     <field name="NUM">240</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="variables_set" id="@A+j{DTGTEwVTkQC!;~F">
                                             <field name="VAR" id="4:L8i@iCk_bW~?wb;k3A">westen</field>
                                             <value name="VALUE">
                                               <block type="logic_boolean" id="jZdI)^7^{gIqSdtAUK;l">
                                                 <field name="BOOL">TRUE</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="nd{+w=-0FHlGxV7?8^%,">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">Object ID</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="logic_boolean" id="U,QBtmSi4uaZ=WjLM3*P">
                                                     <field name="BOOL">TRUE</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                      </xml>
                      

                      1 Reply Last reply Reply Quote 0
                      • I
                        ionar last edited by

                        Ich versuche es gerade selber zu machen. Was bedeutet "nicht" + "Variable"?

                        Homoran paul53 J 3 Replies Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @ionar last edited by

                          @ionar sagte in Blockly followthesun Azimuth:

                          Was bedeutet "nicht" + "Variable"?

                          dass der Wert nicht so ist wie der der in der Variable steht

                          1 Reply Last reply Reply Quote 1
                          • paul53
                            paul53 @ionar last edited by

                            @ionar sagte: Was bedeutet "nicht" + "Variable"?

                            Die Bedingung ist erfüllt, wenn die Variable nicht wahr, also falsch oder undefined ist.

                            1 Reply Last reply Reply Quote 1
                            • J
                              Jens Lattwesen @ionar last edited by

                              @ionar
                              Moin,

                              Verständnisfrage 😉 Richtest Du Dich "nur" nach dem Azimuth oder hast Du noch andere Sensoren am Start?

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              691
                              Online

                              31.7k
                              Users

                              79.8k
                              Topics

                              1.3m
                              Posts

                              4
                              31
                              1251
                              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