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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    ASTRO function. Does not work again

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

      @ap2017 sagte in ASTRO function:

      @iomountain Here is the log from running your script Astro Time for Today, if it helps.

      shows that the AstroFunktion works

      What about the log of your script?

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

        @iomountain Here is my complete log from yesterday. Notice that in 18:58 I added your script with ASTRO Time for Day. Thank you for your help!
        10-20-19 Log.txt

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

          something going wrong with ASTRO, still testing.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            686
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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