Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Scripting / Logic
    4. Blockly
    5. ASTRO function. Does not work again

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    ASTRO function. Does not work again

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ap2017 @iomountain last edited by

      @iomountain sorry, I am traveling now, will be able to try next week

      1 Reply Last reply Reply Quote 0
      • iomountain
        iomountain last edited by

        mine works:

        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Sonnenmittag
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Golden hour
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Sonnenuntergang Anfang
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Sonnenuntergang
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Abenddämmerung
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Nautische Abenddämmerung
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Nacht
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Nadir
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Nachtende
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Nautische Morgendämmerung
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Morgendämmerung
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Sonnenaufgang
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Sonnenaufgang ende
        javascript.0 (18374) script.js.Scripte_zum_Testen.01_ASTRO_TEST_01: Golden hour Ende
        
        


        my Versions of Software:
        2dfd82a3-bfa6-4aef-99fa-aafb3ab53b7f-image.png

        f0570abf-9ae7-4895-8d5c-b0c658ca7d30-image.png

        Node.js v10.16.3
        NPM 6.9.0

        A 1 Reply Last reply Reply Quote 0
        • A
          ap2017 @iomountain last edited by

          @iomountain I am getting this error while saving your script:

          10/27/2019, 10:30:21 PM.531 [error]: javascript.0 (18920) script.js.ASTRO compile failed:
          at script.js.ASTRO:1

          1 Reply Last reply Reply Quote 0
          • A
            ap2017 @iomountain last edited by

            @iomountain Actually, here is log after starting your script:


            2019-10-27 22:35:16.197 - info: javascript.0 (18920) Stop script script.js.ASTRO
            2019-10-27 22:35:20.358 - info: javascript.0 (18920) Start javascript script.js.ASTRO
            2019-10-27 22:35:20.358 - error: javascript.0 (18920) script.js.ASTRO compile failed:
            at script.js.ASTRO:1
            2019-10-27 22:35:20.358 - error: javascript.0 (18920)
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) ^
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) SyntaxError: Unexpected token <
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) at new Script (vm.js:83:7)
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) at Object.createScript (vm.js:277:10)
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) at compile (/opt/iobroker/node_modules/iobroker.javascript/main.js:961:28)
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) at prepareScript (/opt/iobroker/node_modules/iobroker.javascript/main.js:1184:37)
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) at createProblemObject (/opt/iobroker/node_modules/iobroker.javascript/main.js:1237:17)
            2019-10-27 22:35:20.359 - error: javascript.0 (18920) at adapter.getForeignState (/opt/iobroker/node_modules/iobroker.javascript/main.js:828:17)
            2019-10-27 22:35:20.360 - error: javascript.0 (18920) at client.get (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:433:21)
            2019-10-27 22:35:20.360 - error: javascript.0 (18920) at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
            2019-10-27 22:35:20.360 - error: javascript.0 (18920) at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
            2019-10-27 22:35:20.360 - error: javascript.0 (18920) at process._tickCallback (internal/process/next_tick.js:68:7)

            1 Reply Last reply Reply Quote 0
            • A
              ap2017 @iomountain last edited by

              @iomountain My system:
              Script Engine 4.3.1
              Node.js 10.16.3
              NPM 6.9.0

              1 Reply Last reply Reply Quote 0
              • iomountain
                iomountain last edited by

                My script is a Blockly:
                acc77183-9f46-4045-ae2b-61593bac36ca-image.png

                A 1 Reply Last reply Reply Quote 0
                • A
                  ap2017 @iomountain last edited by

                  @iomountain Thank you, will enter and start it tonight

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ap2017 @ap2017 last edited by ap2017

                    @ap2017 Please see log attached, ASTRO does not work. Server was restarted after scrip creation yesterday evening. Currently my script adapter configured for System ASTRO Settings, shows my street on the screen. I am wondering if possible to debug how system sees my location.
                    Tonight I will change Script Adapter ASTRO location to Germany and run same script over night.

                    10-29-19.txt

                    My script:

                    ae34605e-d43d-41d2-b5b9-bb4e92e9a299-image.png

                    8fd7f2cb-5fe1-43ef-b51f-050bc4e59978-image.png

                    6031b72f-e5fb-4b3a-aa6c-567c1932ff42-image.png

                    1 Reply Last reply Reply Quote 0
                    • iomountain
                      iomountain last edited by

                      you can check the times at https://www.suncalc.org if you can get them.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        ap2017 @iomountain last edited by ap2017

                        @iomountain I mean is there a way to check how ioBroker see my location? Maybe ASTRO gets screwed up because location is screwed up.

                        1 Reply Last reply Reply Quote 0
                        • iomountain
                          iomountain last edited by iomountain

                          I am not sure, but i think what astro uses is only this:
                          020b7c2e-5d3e-4214-a90d-3759d728326a-image.png
                          Is the Date and Time of your Operating System set right?

                          A 2 Replies Last reply Reply Quote 0
                          • A
                            ap2017 @iomountain last edited by ap2017

                            @iomountain Here is the log with location in adapter ASTRO set to Germany. ASTRO seems to be working fine. As you can see, script reports ALL ASTRO events, while when my location was set to US it reported only few and then died.
                            10-30-19 log.txt

                            1 Reply Last reply Reply Quote 0
                            • A
                              ap2017 @iomountain last edited by

                              @iomountain In all my tests location in Overview Settings set to my address, see picture. Not sure what you mean by Date and Time

                              a7411993-486e-43b3-b658-a9d8f8381e63-image.png

                              iomountain 1 Reply Last reply Reply Quote 0
                              • iomountain
                                iomountain @ap2017 last edited by

                                @ap2017 sagte in ASTRO function:

                                Not sure what you mean by Date and Time

                                i use timedatectl on the command line of iobroker host to see all is set correct.
                                44a90707-2b66-4941-be7f-6b1890639992-image.png

                                A 1 Reply Last reply Reply Quote 0
                                • iomountain
                                  iomountain last edited by

                                  If you config:
                                  f8dd1148-8e42-4153-9a1e-143262ec8b8f-image.png
                                  you also will find Astro Settings for your location.

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    ap2017 @iomountain last edited by

                                    @iomountain said in ASTRO function:

                                    timedatectl

                                    Here is my time and date, all good:

                                    6fd9bfb1-2c47-4bed-add6-83194a736f32-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      ap2017 @iomountain last edited by

                                      @iomountain In adapter config I set location to Germany to make ASTRO work. So, why does it works for Germany but does not work for my location in US?

                                      67a80c2f-2aca-4323-891d-35c6e377927c-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • iomountain
                                        iomountain last edited by

                                        I set my location to:
                                        3db6cdf4-b512-4ad0-8bf4-f10dc5cb48f1-image.png
                                        restartet the Host.
                                        Run this Blockly:

                                        <xml xmlns="http://www.w3.org/1999/xhtml">
                                         <block type="create" id="v72H-N1#%w_zseA#CMc" x="-212" y="-38">
                                           <field name="NAME">01-Nachtende</field>
                                           <statement name="STATEMENT">
                                             <block type="create" id="@kYi)AXak/ydmJCF!oo]">
                                               <field name="NAME">02-Morgendämmerung</field>
                                               <statement name="STATEMENT">
                                                 <block type="create" id=";T8PP:ZCKeM4+U5?yi">
                                                   <field name="NAME">03-Sonnenaufgang</field>
                                                   <statement name="STATEMENT">
                                                     <block type="create" id="gIfB:POQ4@(+!BTUapf">
                                                       <field name="NAME">04-Sonneneaufgang_Ende</field>
                                                       <statement name="STATEMENT">
                                                         <block type="create" id="MFJk^e%f2^,QG[vUK4ee">
                                                           <field name="NAME">05-Golden_Houer_Ende</field>
                                                           <statement name="STATEMENT">
                                                             <block type="create" id="hO7B(a7I~WK~vu8.7gDH">
                                                               <field name="NAME">06-Mittag</field>
                                                               <statement name="STATEMENT">
                                                                 <block type="create" id="eYe;t8x=FwBT4B,.|k.">
                                                                   <field name="NAME">07-Golden_Houer</field>
                                                                   <statement name="STATEMENT">
                                                                     <block type="create" id="tVROR/kUT3MINh%SOcdY">
                                                                       <field name="NAME">08-Sonnenuntergang_Anfang</field>
                                                                       <statement name="STATEMENT">
                                                                         <block type="create" id="kCb|+j}(0FzG/abd,q1">
                                                                           <field name="NAME">09-Sonnenuntergang</field>
                                                                           <statement name="STATEMENT">
                                                                             <block type="create" id="4UBzNj{JG:saTpO/G">
                                                                               <field name="NAME">10-Abenddämmerung</field>
                                                                               <statement name="STATEMENT">
                                                                                 <block type="create" id="%kf8::E|Nt2icPYM.aB">
                                                                                   <field name="NAME">11-Nacht</field>
                                                                                 </block>
                                                                               </statement>
                                                                             </block>
                                                                           </statement>
                                                                         </block>
                                                                       </statement>
                                                                     </block>
                                                                   </statement>
                                                                 </block>
                                                               </statement>
                                                             </block>
                                                           </statement>
                                                         </block>
                                                       </statement>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </statement>
                                             </block>
                                           </statement>
                                           <next>
                                             <block type="on_ext" id="CJC}fNA0]pCZXm3|IQhw">
                                               <mutation items="1"></mutation>
                                               <field name="CONDITION">any</field>
                                               <field name="ACK_CONDITION"></field>
                                               <value name="OID0">
                                                 <shadow type="field_oid" id="~WnQKdX*p;3`gh]~Gv|}">
                                                   <field name="oid">default</field>
                                                 </shadow>
                                                 <block type="field_oid" id="sLj^7q(fyKCJ@uKYgne@">
                                                   <field name="oid">javascript.0.Datenpunkte_own.Alarm.Alarm_AUS</field>
                                                 </block>
                                               </value>
                                               <statement name="STATEMENT">
                                                 <block type="debug" id="^Q)xU7M#5MVip9{Y2$hP">
                                                   <field name="Severity">log</field>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="%kcngJ7d=5*$asYlS~T|">
                                                       <field name="TEXT">03_Astro test start</field>
                                                     </shadow>
                                                   </value>
                                                   <next>
                                                     <block type="update" id="QIMsUa0@3?Vo;jj}r-U">
                                                       <mutation delay_input="false"></mutation>
                                                       <field name="OID">javascript.0.01-Nachtende</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="convert_from_date" id="^E3;~IY|ubg5}Cw9eYrO">
                                                           <mutation format="false" language="false"></mutation>
                                                           <field name="OPTION">hh:mm:ss</field>
                                                           <value name="VALUE">
                                                             <block type="time_astro" id="J0d,%PB7t8lb@8mXXXZ(">
                                                               <field name="TYPE">nightEnd</field>
                                                               <field name="OFFSET">0</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="update" id="HB^8MQ(4ds+W5/u^OW4m">
                                                           <mutation delay_input="false"></mutation>
                                                           <field name="OID">javascript.0.02-Morgendämmerung</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="convert_from_date" id="oN=Uv}fYcHBCDPHtpXiw">
                                                               <mutation format="false" language="false"></mutation>
                                                               <field name="OPTION">hh:mm:ss</field>
                                                               <value name="VALUE">
                                                                 <block type="time_astro" id=":/y;e5awTDC:Cev;TUCS">
                                                                   <field name="TYPE">dawn</field>
                                                                   <field name="OFFSET">0</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="update" id="+A7|YpLw]g_!(9]PC@UH">
                                                               <mutation delay_input="false"></mutation>
                                                               <field name="OID">javascript.0.03-Sonnenaufgang</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="convert_from_date" id="AMyc:3Tp9XP+4kq(nv-">
                                                                   <mutation format="false" language="false"></mutation>
                                                                   <field name="OPTION">hh:mm:ss</field>
                                                                   <value name="VALUE">
                                                                     <block type="time_astro" id=",4bKmH_J8szFEb.4u{OB">
                                                                       <field name="TYPE">sunrise</field>
                                                                       <field name="OFFSET">0</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="update" id="DwtR_scz+f42pEJ/sKn?">
                                                                   <mutation delay_input="false"></mutation>
                                                                   <field name="OID">javascript.0.04-Sonneneaufgang_Ende</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="convert_from_date" id="a~M9OAt|LRQe5:d]~}H?">
                                                                       <mutation format="false" language="false"></mutation>
                                                                       <field name="OPTION">hh:mm:ss</field>
                                                                       <value name="VALUE">
                                                                         <block type="time_astro" id="7/scA1O-iX|.x-iB_~X3">
                                                                           <field name="TYPE">sunriseEnd</field>
                                                                           <field name="OFFSET">0</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="update" id="F.Y:ABQw?pppVIMuzXC4">
                                                                       <mutation delay_input="false"></mutation>
                                                                       <field name="OID">javascript.0.05-Golden_Houer_Ende</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="convert_from_date" id="jgDe(t)05^f2gQyGIaI6">
                                                                           <mutation format="false" language="false"></mutation>
                                                                           <field name="OPTION">hh:mm:ss</field>
                                                                           <value name="VALUE">
                                                                             <block type="time_astro" id="]qS[Z+Pab*WUXun969T">
                                                                               <field name="TYPE">goldenHourEnd</field>
                                                                               <field name="OFFSET">0</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="update" id="FjU7x+vB-{|nz?Ntgi]B">
                                                                           <mutation delay_input="false"></mutation>
                                                                           <field name="OID">javascript.0.06-Mittag</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="convert_from_date" id="Ewd,fX4o;ftqhEAKr)^">
                                                                               <mutation format="false" language="false"></mutation>
                                                                               <field name="OPTION">hh:mm:ss</field>
                                                                               <value name="VALUE">
                                                                                 <block type="time_astro" id="}2iN_uE[d~xeJMc]9~%p">
                                                                                   <field name="TYPE">solarNoon</field>
                                                                                   <field name="OFFSET">0</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="update" id="(slH?vH:Tx73fJ(J2HY]">
                                                                               <mutation delay_input="false"></mutation>
                                                                               <field name="OID">javascript.0.07-Golden_Houer</field>
                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                               <value name="VALUE">
                                                                                 <block type="convert_from_date" id="kh1//%:x4My;~kFU,E^">
                                                                                   <mutation format="false" language="false"></mutation>
                                                                                   <field name="OPTION">hh:mm:ss</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="time_astro" id="~MgPI%%B44O6EzrHu._C">
                                                                                       <field name="TYPE">goldenHour</field>
                                                                                       <field name="OFFSET">0</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="update" id="g|Q7g?g_fO6AjzFr(le">
                                                                                   <mutation delay_input="false"></mutation>
                                                                                   <field name="OID">javascript.0.08-Sonnenuntergang_Anfang</field>
                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="convert_from_date" id="r6N{VKoWDb6,=S=QyNF">
                                                                                       <mutation format="false" language="false"></mutation>
                                                                                       <field name="OPTION">hh:mm:ss</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="time_astro" id="!nNaC0sNkzDc_CZkch6">
                                                                                           <field name="TYPE">sunsetStart</field>
                                                                                           <field name="OFFSET">0</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                   <next>
                                                                                     <block type="update" id="5k::E!c_Nzjkf_4MU}_U">
                                                                                       <mutation delay_input="false"></mutation>
                                                                                       <field name="OID">javascript.0.09-Sonnenuntergang</field>
                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="convert_from_date" id=",z]tcWXKDj7^syvxRkU[">
                                                                                           <mutation format="false" language="false"></mutation>
                                                                                           <field name="OPTION">hh:mm:ss</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="time_astro" id="e.#C/a~nk+lc9h!VRKIG">
                                                                                               <field name="TYPE">sunset</field>
                                                                                               <field name="OFFSET">0</field>
                                                                                             </block>
                                                                                           </value>
                                                                                         </block>
                                                                                       </value>
                                                                                       <next>
                                                                                         <block type="update" id="okk0X1l~(0(nUW+Re46b">
                                                                                           <mutation delay_input="false"></mutation>
                                                                                           <field name="OID">javascript.0.10-Abenddämmerung</field>
                                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="convert_from_date" id="jT6:rKIF[@`bgdN2Ei+R">
                                                                                               <mutation format="false" language="false"></mutation>
                                                                                               <field name="OPTION">hh:mm:ss</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="time_astro" id="CeiV[rNfs^|Wwo/^8]}L">
                                                                                                   <field name="TYPE">dusk</field>
                                                                                                   <field name="OFFSET">0</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </value>
                                                                                           <next>
                                                                                             <block type="update" id="y3QMbYJ8biR5l7@~Vd92">
                                                                                               <mutation delay_input="false"></mutation>
                                                                                               <field name="OID">javascript.0.11-Nacht</field>
                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="convert_from_date" id="5z?E1xsLp;YRIJ6YIaB!">
                                                                                                   <mutation format="false" language="false"></mutation>
                                                                                                   <field name="OPTION">hh:mm:ss</field>
                                                                                                   <value name="VALUE">
                                                                                                     <block type="time_astro" id="Y[SLp]Z~a7!a0aht:]j?">
                                                                                                       <field name="TYPE">night</field>
                                                                                                       <field name="OFFSET">0</field>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </next>
                                                                                         </block>
                                                                                       </next>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                             </block>
                                           </next>
                                         </block>
                                        </xml>
                                        


                                        and got this
                                        c314a3c4-3ad5-4184-b252-202866ccd96f-image.png
                                        seems OK for your location.
                                        What else could I check?

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          ap2017 @iomountain last edited by

                                          @iomountain Please run with both system ASTRO and adapter ASTRO set to my location. Thank you.

                                          1 Reply Last reply Reply Quote 0
                                          • iomountain
                                            iomountain last edited by iomountain

                                            I set the location to:
                                            f3d7b00c-ab64-48fe-8942-36c7cc69687f-image.png
                                            3a491ea1-9d37-442a-802b-70f06030008f-image.png
                                            ssh on HOST sudo reboot -h now
                                            Run this Blockly:

                                            <xml xmlns="http://www.w3.org/1999/xhtml">
                                             <block type="create" id="v72H-N1#%w_zseA#CMc" x="-212" y="-38">
                                               <field name="NAME">01-Nachtende</field>
                                               <statement name="STATEMENT">
                                                 <block type="create" id="@kYi)AXak/ydmJCF!oo]">
                                                   <field name="NAME">02-Morgendämmerung</field>
                                                   <statement name="STATEMENT">
                                                     <block type="create" id=";T8PP:ZCKeM4+U5?yi">
                                                       <field name="NAME">03-Sonnenaufgang</field>
                                                       <statement name="STATEMENT">
                                                         <block type="create" id="gIfB:POQ4@(+!BTUapf">
                                                           <field name="NAME">04-Sonneneaufgang_Ende</field>
                                                           <statement name="STATEMENT">
                                                             <block type="create" id="MFJk^e%f2^,QG[vUK4ee">
                                                               <field name="NAME">05-Golden_Houer_Ende</field>
                                                               <statement name="STATEMENT">
                                                                 <block type="create" id="hO7B(a7I~WK~vu8.7gDH">
                                                                   <field name="NAME">06-Mittag</field>
                                                                   <statement name="STATEMENT">
                                                                     <block type="create" id="eYe;t8x=FwBT4B,.|k.">
                                                                       <field name="NAME">07-Golden_Houer</field>
                                                                       <statement name="STATEMENT">
                                                                         <block type="create" id="tVROR/kUT3MINh%SOcdY">
                                                                           <field name="NAME">08-Sonnenuntergang_Anfang</field>
                                                                           <statement name="STATEMENT">
                                                                             <block type="create" id="kCb|+j}(0FzG/abd,q1">
                                                                               <field name="NAME">09-Sonnenuntergang</field>
                                                                               <statement name="STATEMENT">
                                                                                 <block type="create" id="4UBzNj{JG:saTpO/G">
                                                                                   <field name="NAME">10-Abenddämmerung</field>
                                                                                   <statement name="STATEMENT">
                                                                                     <block type="create" id="%kf8::E|Nt2icPYM.aB">
                                                                                       <field name="NAME">11-Nacht</field>
                                                                                       <statement name="STATEMENT">
                                                                                         <block type="create" id="m8=S(!$%YPfP56~qYN-V">
                                                                                           <field name="NAME">12-Nadir</field>
                                                                                         </block>
                                                                                       </statement>
                                                                                     </block>
                                                                                   </statement>
                                                                                 </block>
                                                                               </statement>
                                                                             </block>
                                                                           </statement>
                                                                         </block>
                                                                       </statement>
                                                                     </block>
                                                                   </statement>
                                                                 </block>
                                                               </statement>
                                                             </block>
                                                           </statement>
                                                         </block>
                                                       </statement>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </statement>
                                               <next>
                                                 <block type="on_ext" id="CJC}fNA0]pCZXm3|IQhw">
                                                   <mutation items="1"></mutation>
                                                   <field name="CONDITION">any</field>
                                                   <field name="ACK_CONDITION"></field>
                                                   <value name="OID0">
                                                     <shadow type="field_oid" id="~WnQKdX*p;3`gh]~Gv|}">
                                                       <field name="oid">default</field>
                                                     </shadow>
                                                     <block type="field_oid" id="sLj^7q(fyKCJ@uKYgne@">
                                                       <field name="oid">javascript.0.Datenpunkte_own.Alarm.Alarm_AUS</field>
                                                     </block>
                                                   </value>
                                                   <statement name="STATEMENT">
                                                     <block type="debug" id="^Q)xU7M#5MVip9{Y2$hP">
                                                       <field name="Severity">log</field>
                                                       <value name="TEXT">
                                                         <shadow type="text" id="%kcngJ7d=5*$asYlS~T|">
                                                           <field name="TEXT">03_Astro test start</field>
                                                         </shadow>
                                                       </value>
                                                       <next>
                                                         <block type="update" id="QIMsUa0@3?Vo;jj}r-U">
                                                           <mutation delay_input="false"></mutation>
                                                           <field name="OID">javascript.0.01-Nachtende</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="convert_from_date" id="^E3;~IY|ubg5}Cw9eYrO">
                                                               <mutation format="false" language="false"></mutation>
                                                               <field name="OPTION">hh:mm:ss</field>
                                                               <value name="VALUE">
                                                                 <block type="time_astro" id="J0d,%PB7t8lb@8mXXXZ(">
                                                                   <field name="TYPE">nightEnd</field>
                                                                   <field name="OFFSET">0</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="update" id="HB^8MQ(4ds+W5/u^OW4m">
                                                               <mutation delay_input="false"></mutation>
                                                               <field name="OID">javascript.0.02-Morgendämmerung</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="convert_from_date" id="oN=Uv}fYcHBCDPHtpXiw">
                                                                   <mutation format="false" language="false"></mutation>
                                                                   <field name="OPTION">hh:mm:ss</field>
                                                                   <value name="VALUE">
                                                                     <block type="time_astro" id=":/y;e5awTDC:Cev;TUCS">
                                                                       <field name="TYPE">dawn</field>
                                                                       <field name="OFFSET">0</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="update" id="+A7|YpLw]g_!(9]PC@UH">
                                                                   <mutation delay_input="false"></mutation>
                                                                   <field name="OID">javascript.0.03-Sonnenaufgang</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="convert_from_date" id="AMyc:3Tp9XP+4kq(nv-">
                                                                       <mutation format="false" language="false"></mutation>
                                                                       <field name="OPTION">hh:mm:ss</field>
                                                                       <value name="VALUE">
                                                                         <block type="time_astro" id=",4bKmH_J8szFEb.4u{OB">
                                                                           <field name="TYPE">sunrise</field>
                                                                           <field name="OFFSET">0</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="update" id="DwtR_scz+f42pEJ/sKn?">
                                                                       <mutation delay_input="false"></mutation>
                                                                       <field name="OID">javascript.0.04-Sonneneaufgang_Ende</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="convert_from_date" id="a~M9OAt|LRQe5:d]~}H?">
                                                                           <mutation format="false" language="false"></mutation>
                                                                           <field name="OPTION">hh:mm:ss</field>
                                                                           <value name="VALUE">
                                                                             <block type="time_astro" id="7/scA1O-iX|.x-iB_~X3">
                                                                               <field name="TYPE">sunriseEnd</field>
                                                                               <field name="OFFSET">0</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="update" id="F.Y:ABQw?pppVIMuzXC4">
                                                                           <mutation delay_input="false"></mutation>
                                                                           <field name="OID">javascript.0.05-Golden_Houer_Ende</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="convert_from_date" id="jgDe(t)05^f2gQyGIaI6">
                                                                               <mutation format="false" language="false"></mutation>
                                                                               <field name="OPTION">hh:mm:ss</field>
                                                                               <value name="VALUE">
                                                                                 <block type="time_astro" id="]qS[Z+Pab*WUXun969T">
                                                                                   <field name="TYPE">goldenHourEnd</field>
                                                                                   <field name="OFFSET">0</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="update" id="FjU7x+vB-{|nz?Ntgi]B">
                                                                               <mutation delay_input="false"></mutation>
                                                                               <field name="OID">javascript.0.06-Mittag</field>
                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                               <value name="VALUE">
                                                                                 <block type="convert_from_date" id="Ewd,fX4o;ftqhEAKr)^">
                                                                                   <mutation format="false" language="false"></mutation>
                                                                                   <field name="OPTION">hh:mm:ss</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="time_astro" id="}2iN_uE[d~xeJMc]9~%p">
                                                                                       <field name="TYPE">solarNoon</field>
                                                                                       <field name="OFFSET">0</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="update" id="(slH?vH:Tx73fJ(J2HY]">
                                                                                   <mutation delay_input="false"></mutation>
                                                                                   <field name="OID">javascript.0.07-Golden_Houer</field>
                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="convert_from_date" id="kh1//%:x4My;~kFU,E^">
                                                                                       <mutation format="false" language="false"></mutation>
                                                                                       <field name="OPTION">hh:mm:ss</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="time_astro" id="~MgPI%%B44O6EzrHu._C">
                                                                                           <field name="TYPE">goldenHour</field>
                                                                                           <field name="OFFSET">0</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                   <next>
                                                                                     <block type="update" id="g|Q7g?g_fO6AjzFr(le">
                                                                                       <mutation delay_input="false"></mutation>
                                                                                       <field name="OID">javascript.0.08-Sonnenuntergang_Anfang</field>
                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="convert_from_date" id="r6N{VKoWDb6,=S=QyNF">
                                                                                           <mutation format="false" language="false"></mutation>
                                                                                           <field name="OPTION">hh:mm:ss</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="time_astro" id="!nNaC0sNkzDc_CZkch6">
                                                                                               <field name="TYPE">sunsetStart</field>
                                                                                               <field name="OFFSET">0</field>
                                                                                             </block>
                                                                                           </value>
                                                                                         </block>
                                                                                       </value>
                                                                                       <next>
                                                                                         <block type="update" id="5k::E!c_Nzjkf_4MU}_U">
                                                                                           <mutation delay_input="false"></mutation>
                                                                                           <field name="OID">javascript.0.09-Sonnenuntergang</field>
                                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="convert_from_date" id=",z]tcWXKDj7^syvxRkU[">
                                                                                               <mutation format="false" language="false"></mutation>
                                                                                               <field name="OPTION">hh:mm:ss</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="time_astro" id="e.#C/a~nk+lc9h!VRKIG">
                                                                                                   <field name="TYPE">sunset</field>
                                                                                                   <field name="OFFSET">0</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </value>
                                                                                           <next>
                                                                                             <block type="update" id="okk0X1l~(0(nUW+Re46b">
                                                                                               <mutation delay_input="false"></mutation>
                                                                                               <field name="OID">javascript.0.10-Abenddämmerung</field>
                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="convert_from_date" id="jT6:rKIF[@`bgdN2Ei+R">
                                                                                                   <mutation format="false" language="false"></mutation>
                                                                                                   <field name="OPTION">hh:mm:ss</field>
                                                                                                   <value name="VALUE">
                                                                                                     <block type="time_astro" id="CeiV[rNfs^|Wwo/^8]}L">
                                                                                                       <field name="TYPE">dusk</field>
                                                                                                       <field name="OFFSET">0</field>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <next>
                                                                                                 <block type="update" id="y3QMbYJ8biR5l7@~Vd92">
                                                                                                   <mutation delay_input="false"></mutation>
                                                                                                   <field name="OID">javascript.0.11-Nacht</field>
                                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                                   <value name="VALUE">
                                                                                                     <block type="convert_from_date" id="5z?E1xsLp;YRIJ6YIaB!">
                                                                                                       <mutation format="false" language="false"></mutation>
                                                                                                       <field name="OPTION">hh:mm:ss</field>
                                                                                                       <value name="VALUE">
                                                                                                         <block type="time_astro" id="Y[SLp]Z~a7!a0aht:]j?">
                                                                                                           <field name="TYPE">night</field>
                                                                                                           <field name="OFFSET">0</field>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                   <next>
                                                                                                     <block type="update" id="r4Pp!x8AYRH2ByxfJ-uj">
                                                                                                       <mutation delay_input="false"></mutation>
                                                                                                       <field name="OID">javascript.0.12-Nadir</field>
                                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                                       <value name="VALUE">
                                                                                                         <block type="convert_from_date" id="70t2I`G4:U{os`6!_.!i">
                                                                                                           <mutation format="false" language="false"></mutation>
                                                                                                           <field name="OPTION">hh:mm:ss</field>
                                                                                                           <value name="VALUE">
                                                                                                             <block type="time_astro" id="s:0TbVo8LNISj)?5m=fr">
                                                                                                               <field name="TYPE">nadir</field>
                                                                                                               <field name="OFFSET">0</field>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                     </block>
                                                                                                   </next>
                                                                                                 </block>
                                                                                               </next>
                                                                                             </block>
                                                                                           </next>
                                                                                         </block>
                                                                                       </next>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                            </xml>
                                            

                                            got this:
                                            07542b6a-e1dd-4209-baf7-78d907b44770-image.png

                                            javascript was set to:
                                            80c4ed6b-a23a-4229-bdd1-6d817b2c3237-image.png

                                            A 3 Replies Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly
                                            6
                                            58
                                            4889
                                            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