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.
    • iomountain
      iomountain last edited by

      Could you please test this for 24 hours:

      <xml xmlns="http://www.w3.org/1999/xhtml">
       <block type="comment" id="dZ/@oL!i0(@/:!$Ikw{J" x="13" y="13">
         <field name="COMMENT">Test Astro</field>
         <next>
           <block type="astro" id="sxZ*u!O2O8lf$a?qgNf%">
             <field name="TYPE">sunrise</field>
             <field name="OFFSET">0</field>
             <statement name="STATEMENT">
               <block type="debug" id="f0h|hnMOj,t0a9F4R/*u">
                 <field name="Severity">error</field>
                 <value name="TEXT">
                   <shadow type="text" id="t~{SzkO:N+m/c:_aXvF_">
                     <field name="TEXT">Sonnenaufgang</field>
                   </shadow>
                 </value>
                 <next>
                   <block type="debug" id=";Kc+}!GR24eQ4F1zvsqz">
                     <field name="Severity">error</field>
                     <value name="TEXT">
                       <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                         <field name="TEXT">test</field>
                       </shadow>
                       <block type="time_get" id="0}ve}|zeLByf%Wn1)Z~N">
                         <mutation format="true" language="false"></mutation>
                         <field name="OPTION">custom</field>
                         <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                       </block>
                     </value>
                   </block>
                 </next>
               </block>
             </statement>
             <next>
               <block type="astro" id="e%0Te`wUBXm0Z(Tm~(uK">
                 <field name="TYPE">sunriseEnd</field>
                 <field name="OFFSET">0</field>
                 <statement name="STATEMENT">
                   <block type="debug" id="~yMY;Z`RDhY|PgL8aLYT">
                     <field name="Severity">error</field>
                     <value name="TEXT">
                       <shadow type="text" id="{(iRk-Wgsniu)/OWNuec">
                         <field name="TEXT">Sonnenaufgang ende</field>
                       </shadow>
                     </value>
                     <next>
                       <block type="debug" id="q|N1he7_#J*z!t:Lxbq4">
                         <field name="Severity">error</field>
                         <value name="TEXT">
                           <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                             <field name="TEXT">test</field>
                           </shadow>
                           <block type="time_get" id="tJ*UF;cM+aI^pYR^Qa;1">
                             <mutation format="true" language="false"></mutation>
                             <field name="OPTION">custom</field>
                             <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <next>
                   <block type="astro" id="7-p8CPh^EAGz7TZ[HE=f">
                     <field name="TYPE">goldenHourEnd</field>
                     <field name="OFFSET">0</field>
                     <statement name="STATEMENT">
                       <block type="debug" id="#jT`iz!Nlmm:r|h0-a;{">
                         <field name="Severity">error</field>
                         <value name="TEXT">
                           <shadow type="text" id="sF]?KilHL=/lQ@|f$!#B">
                             <field name="TEXT">Golden hour Ende</field>
                           </shadow>
                         </value>
                         <next>
                           <block type="debug" id="?jcK[-lRY6m67kH94cJ8">
                             <field name="Severity">error</field>
                             <value name="TEXT">
                               <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                 <field name="TEXT">test</field>
                               </shadow>
                               <block type="time_get" id=":6c/3{e5w_Qr@--(F2,$">
                                 <mutation format="true" language="false"></mutation>
                                 <field name="OPTION">custom</field>
                                 <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <next>
                       <block type="astro" id="tK}:wS(k,Xmf4I2Ms^,]">
                         <field name="TYPE">solarNoon</field>
                         <field name="OFFSET">0</field>
                         <statement name="STATEMENT">
                           <block type="debug" id="sYbNw@$;Db5D:)VF)*b}">
                             <field name="Severity">error</field>
                             <value name="TEXT">
                               <shadow type="text" id="h9Pt!n;uDsK%[C8H0T:-">
                                 <field name="TEXT">Sonnenmittag</field>
                               </shadow>
                             </value>
                             <next>
                               <block type="debug" id="0z@Vv^UhX8S(2Uk.L}AX">
                                 <field name="Severity">error</field>
                                 <value name="TEXT">
                                   <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                     <field name="TEXT">test</field>
                                   </shadow>
                                   <block type="time_get" id="63mXGB7G3:L?++1KLilu">
                                     <mutation format="true" language="false"></mutation>
                                     <field name="OPTION">custom</field>
                                     <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </statement>
                         <next>
                           <block type="astro" id="2X-czA2y[$Ug?5[Q_aUV">
                             <field name="TYPE">goldenHour</field>
                             <field name="OFFSET">0</field>
                             <statement name="STATEMENT">
                               <block type="debug" id="VvR2BxdbZn.+TuU)7yLe">
                                 <field name="Severity">error</field>
                                 <value name="TEXT">
                                   <shadow type="text" id="#r/L5Io)*?Qz!Co)U:Jc">
                                     <field name="TEXT">Golden hour</field>
                                   </shadow>
                                 </value>
                                 <next>
                                   <block type="debug" id="vO^xDs|z,PXJo=OKQ=bY">
                                     <field name="Severity">error</field>
                                     <value name="TEXT">
                                       <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                         <field name="TEXT">test</field>
                                       </shadow>
                                       <block type="time_get" id="8b(z1|U:aT{s/-zQOG-O">
                                         <mutation format="true" language="false"></mutation>
                                         <field name="OPTION">custom</field>
                                         <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <next>
                               <block type="astro" id="dLczmmMSoFlkvb*/H*SF">
                                 <field name="TYPE">sunsetStart</field>
                                 <field name="OFFSET">0</field>
                                 <statement name="STATEMENT">
                                   <block type="debug" id="S%o3:;|MkGT:WNoq-5I/">
                                     <field name="Severity">error</field>
                                     <value name="TEXT">
                                       <shadow type="text" id="oZW7=ox`@zO:d)Qo`jM#">
                                         <field name="TEXT">Sonnenuntergang Anfang</field>
                                       </shadow>
                                     </value>
                                     <next>
                                       <block type="debug" id="88*2`mY-$F4-h46R$bsh">
                                         <field name="Severity">error</field>
                                         <value name="TEXT">
                                           <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                             <field name="TEXT">test</field>
                                           </shadow>
                                           <block type="time_get" id="=yV74{gTTEshyETA[YT+">
                                             <mutation format="true" language="false"></mutation>
                                             <field name="OPTION">custom</field>
                                             <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="astro" id="`E^X3.`tEYD#t?w3p[Y6">
                                     <field name="TYPE">sunset</field>
                                     <field name="OFFSET">0</field>
                                     <statement name="STATEMENT">
                                       <block type="debug" id="3y?c.oF8m3]qo`y^Sk2Y">
                                         <field name="Severity">error</field>
                                         <value name="TEXT">
                                           <shadow type="text" id="_^a1$PSDO%=0T$ouPs,z">
                                             <field name="TEXT">Sonnenuntergang</field>
                                           </shadow>
                                         </value>
                                         <next>
                                           <block type="debug" id="B{Xk(=sas9lxfcPeH~8l">
                                             <field name="Severity">error</field>
                                             <value name="TEXT">
                                               <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                 <field name="TEXT">test</field>
                                               </shadow>
                                               <block type="time_get" id="?;boy8-PvsRtK^R`i(d!">
                                                 <mutation format="true" language="false"></mutation>
                                                 <field name="OPTION">custom</field>
                                                 <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                               </block>
                                             </value>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                     <next>
                                       <block type="astro" id="yk2LFSH:M4]t,=g+r0Zr">
                                         <field name="TYPE">dusk</field>
                                         <field name="OFFSET">0</field>
                                         <statement name="STATEMENT">
                                           <block type="debug" id="JVc5|ie7ToL`o0+q*H6)">
                                             <field name="Severity">error</field>
                                             <value name="TEXT">
                                               <shadow type="text" id=":3i#l]vFr9mFH`8A9d40">
                                                 <field name="TEXT">Abenddämmerung</field>
                                               </shadow>
                                             </value>
                                             <next>
                                               <block type="debug" id="}#5$Eg5HxUq%N?JiZUB|">
                                                 <field name="Severity">error</field>
                                                 <value name="TEXT">
                                                   <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                     <field name="TEXT">test</field>
                                                   </shadow>
                                                   <block type="time_get" id="C8-_%?]~kLQbzj4$5M:w">
                                                     <mutation format="true" language="false"></mutation>
                                                     <field name="OPTION">custom</field>
                                                     <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="astro" id="o1Y86d?aD}-85W@_Bc{X">
                                             <field name="TYPE">nauticalDusk</field>
                                             <field name="OFFSET">0</field>
                                             <statement name="STATEMENT">
                                               <block type="debug" id="[y[=-3!xjqWbFILYTKrT">
                                                 <field name="Severity">error</field>
                                                 <value name="TEXT">
                                                   <shadow type="text" id="(Ka/nD(#:R%T5M;oQVo+">
                                                     <field name="TEXT">Nautische Abenddämmerung</field>
                                                   </shadow>
                                                 </value>
                                                 <next>
                                                   <block type="debug" id="hQnK;WRQD=[=PuGnpeC^">
                                                     <field name="Severity">error</field>
                                                     <value name="TEXT">
                                                       <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                         <field name="TEXT">test</field>
                                                       </shadow>
                                                       <block type="time_get" id="1*6{GuA}Ptl}@=:RYN8E">
                                                         <mutation format="true" language="false"></mutation>
                                                         <field name="OPTION">custom</field>
                                                         <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </next>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="astro" id="j8y_r:dEbMD7iY2.W7L,">
                                                 <field name="TYPE">night</field>
                                                 <field name="OFFSET">0</field>
                                                 <statement name="STATEMENT">
                                                   <block type="debug" id="76(?!SO)O1xP:}liKAC%">
                                                     <field name="Severity">error</field>
                                                     <value name="TEXT">
                                                       <shadow type="text" id="hkdb,q:hVvOIp?ukBqRa">
                                                         <field name="TEXT">Nacht</field>
                                                       </shadow>
                                                     </value>
                                                     <next>
                                                       <block type="debug" id="K`Fpc2JYxRBNQEc[yo9_">
                                                         <field name="Severity">error</field>
                                                         <value name="TEXT">
                                                           <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                             <field name="TEXT">test</field>
                                                           </shadow>
                                                           <block type="time_get" id="f.=BzucV$CL,2#_}W7wU">
                                                             <mutation format="true" language="false"></mutation>
                                                             <field name="OPTION">custom</field>
                                                             <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                                 <next>
                                                   <block type="astro" id=",EU+9{ySUaqT/?CfG5ap">
                                                     <field name="TYPE">nightEnd</field>
                                                     <field name="OFFSET">0</field>
                                                     <statement name="STATEMENT">
                                                       <block type="debug" id="nk=,IYJu$$)~c%9EMNZL">
                                                         <field name="Severity">error</field>
                                                         <value name="TEXT">
                                                           <shadow type="text" id="?@=$%L4#!G}2|rgS]c=?">
                                                             <field name="TEXT">Nachtende</field>
                                                           </shadow>
                                                         </value>
                                                         <next>
                                                           <block type="debug" id="U_1^p,G9]J.];Zq9X~LM">
                                                             <field name="Severity">error</field>
                                                             <value name="TEXT">
                                                               <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                                 <field name="TEXT">test</field>
                                                               </shadow>
                                                               <block type="time_get" id="Wq.(8ZwGLimw6:lfSa!V">
                                                                 <mutation format="true" language="false"></mutation>
                                                                 <field name="OPTION">custom</field>
                                                                 <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </statement>
                                                     <next>
                                                       <block type="astro" id="Sz%RA[al07GBMdE@p1Gz">
                                                         <field name="TYPE">nauticalDawn</field>
                                                         <field name="OFFSET">0</field>
                                                         <statement name="STATEMENT">
                                                           <block type="debug" id="`y(OGo$-nPG8Ej5m[BHG">
                                                             <field name="Severity">error</field>
                                                             <value name="TEXT">
                                                               <shadow type="text" id="EOoN^Uh$_,d+JSl]lGUh">
                                                                 <field name="TEXT">Nautische Morgendämmerung</field>
                                                               </shadow>
                                                             </value>
                                                             <next>
                                                               <block type="debug" id="0S99AV1F|DJLUd,(d?qc">
                                                                 <field name="Severity">error</field>
                                                                 <value name="TEXT">
                                                                   <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                                     <field name="TEXT">test</field>
                                                                   </shadow>
                                                                   <block type="time_get" id="YOyQlgY?b(gtz4v^}j+H">
                                                                     <mutation format="true" language="false"></mutation>
                                                                     <field name="OPTION">custom</field>
                                                                     <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </statement>
                                                         <next>
                                                           <block type="astro" id="Vw^5UMBH6vtWJyaq53.]">
                                                             <field name="TYPE">dawn</field>
                                                             <field name="OFFSET">0</field>
                                                             <statement name="STATEMENT">
                                                               <block type="debug" id="19?SR^q{j;E8z!!;D7[)">
                                                                 <field name="Severity">error</field>
                                                                 <value name="TEXT">
                                                                   <shadow type="text" id="Ar4KDdxuaHRys!_~m2WV">
                                                                     <field name="TEXT">Morgendämmerung</field>
                                                                   </shadow>
                                                                 </value>
                                                                 <next>
                                                                   <block type="debug" id="=m0|q1#NNjFK3(dAk!Ad">
                                                                     <field name="Severity">error</field>
                                                                     <value name="TEXT">
                                                                       <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                                         <field name="TEXT">test</field>
                                                                       </shadow>
                                                                       <block type="time_get" id="78Wc.sXU9AC;tMV..MwN">
                                                                         <mutation format="true" language="false"></mutation>
                                                                         <field name="OPTION">custom</field>
                                                                         <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </statement>
                                                             <next>
                                                               <block type="astro" id="i`FUoNopylwQy:QgoJ}v">
                                                                 <field name="TYPE">nadir</field>
                                                                 <field name="OFFSET">0</field>
                                                                 <statement name="STATEMENT">
                                                                   <block type="debug" id="r(e93[h_`7D!QfmFL~Mf">
                                                                     <field name="Severity">error</field>
                                                                     <value name="TEXT">
                                                                       <shadow type="text" id="|P[TC/:yl.5FkD_HO*./">
                                                                         <field name="TEXT">Nadir</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <next>
                                                                       <block type="debug" id="Dhca#mXRR2KV}e}.Opj$">
                                                                         <field name="Severity">error</field>
                                                                         <value name="TEXT">
                                                                           <shadow type="text" id="d7@Q.7Mu+wBczv=iaKT?">
                                                                             <field name="TEXT">test</field>
                                                                           </shadow>
                                                                           <block type="time_get" id="f[j$/@]5]_7kP7mnP#ds">
                                                                             <mutation format="true" language="false"></mutation>
                                                                             <field name="OPTION">custom</field>
                                                                             <field name="FORMAT">JJJJ-MM-TT SS:mm:ss.sss</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </statement>
                                                               </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>
             </next>
           </block>
         </next>
       </block>
      </xml>
      

      A 2 Replies 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
        


        if you dont have all these "errors" in your log, we try next ideas, or compare Versions.

        A 1 Reply Last reply Reply Quote 0
        • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            674
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

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