NEWS
Bewegungsmelder blockly nach Zeit
-
@sandro_gera sagte:
Meiner Meinung nach ister der JS Adapter richtig konfiguriert,
Nimm mal den Haken bei "Verwenden Sie die Systemeinstellungen" raus und trage die Ortskoordinaten ein.
-
Mit allen Kommastellen?
-
-
Also mit 2 Nachkommastellen komme ich mitten im Wald raus.
-
Ok ich hab das mal so eingegeben. Mal sehen ob es morgen funktioniert.
Danke dir nochmals. -
Hallo Paul, Leider funktioniert das Blocky im Arbeitzimmer trotz der Änderung in den Javascrip Einstellungen totzdem nicht.
hier nochmal Das Script sowie die Einstellungen.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="bgX:Wxxn%S[O^9f,wDcC">computer</variable> <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable> </variables> <block type="procedures_defnoreturn" id="li@;?QwWuFbHVeb0uMoX" x="-813" y="-562"> <field name="NAME">wandlampe</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="vQFC4G#mtRRlX.VWnqrI"> <value name="IF0"> <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="Hjw[|jxFGlaK+tB[Xzic"> <value name="BOOL"> <block type="variables_get" id="}CE3k{LCn40h(vIrYV=x"> <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare_ex" id="ey-,zU=|GQ~-lu2{d?05"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="CW1)M1p;$JsM:Cj5%}.p"> <field name="TEXT">12:00</field> </shadow> <block type="time_astro" id="Q?9@xZ*n9t/b-X?z:FKX"> <field name="TYPE">sunrise</field> <field name="OFFSET">0</field> </block> </value> <value name="END_TIME"> <shadow type="text" id="Lrv[#^v+EiYT/RyF-38]"> <field name="TEXT">18:00</field> </shadow> <block type="time_astro" id="?M!.Ij2q~S:14)nF3-B5"> <field name="TYPE">sunset</field> <field name="OFFSET">-60</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="j{iYD3~l*zpr@KNEtMr["> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="Zeh(oy7gF`2K[w|gV%fs"> <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field> </block> </value> </block> </statement> </block> </statement> </block> <block type="variables_set" id="hP;B^;KNge^,;;UQNkIO" x="-813" y="-387"> <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field> <value name="VALUE"> <block type="get_value" id="lFgj?Q~fl8@x6QAW0Bp6"> <field name="ATTR">val</field> <field name="OID">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field> </block> </value> <next> <block type="procedures_callnoreturn" id="a:8axNpu=t@6Dgm|z$eI"> <mutation name="wandlampe"></mutation> <next> <block type="astro" id=";As25$]xOo`YtG[bxc^R"> <field name="TYPE">sunset</field> <field name="OFFSET">-60</field> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="Zedx!5eNEb4Piu^Zg*%;"> <mutation name="wandlampe"></mutation> </block> </statement> <next> <block type="on_ext" id="m^ctya_*xjD8-KQUH,61"> <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="_T7NQNq|6_KL]8~#AmPL"> <field name="oid">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="0s5m=A-i`}%1M~;LoAg;"> <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field> <value name="VALUE"> <block type="on_source" id="7[bt@dS+Kz?Lxlo-dOGP"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="procedures_callnoreturn" id="vGo?PRoGS~,Qg8tE26#e"> <mutation name="wandlampe"></mutation> </block> </next> </block> </statement> <next> <block type="on_ext" id="Cc5FGM]lHd;8*-vEl(87"> <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="J82_w$aysD(,n#TfjKi$"> <field name="oid">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G"> <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field> <value name="VALUE"> <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="on_source" id=";,DoXcaNX$3MumBC`(t%"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="avL^M)Ct_sI32]4a1]X."> <field name="ATTR">state.from</field> </block> </value> <value name="B"> <block type="text" id="g%jGCj+)5XnCikl8P}Ni"> <field name="TEXT">system.adapter.javascript.0</field> </block> </value> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
Vielleicht hast du noch eine Idee wo mein Fehler liegt.
-
@sandro_gera sagte:
Leider funktioniert das Blocky im Arbeitzimmer trotz der Änderung in den Javascrip Einstellungen totzdem nicht.
Nur bei Sonnenuntergang (-60 Minuten) ? Ich kann mir höchstens vorstellen, dass der Zeitversatz etwas unterschiedlich ermittelt wird. Dann versuche es mal mit "Aktuelle Zeit ist nicht zwischen SA und SU -61 min".
-
Du mienst so?
-
@sandro_gera sagte:
Du mienst so?
Nein, ganz rechts -60 ändern in -61 (den Nachtzeitraum um eine Minute nach vorn verlängern). Bei SA war doch bisher kein Versatz.
-
Ok hab ich gemacht mal sehen was morgen Abend passiert.