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.
    • R
      RappiRN Most Active last edited by

      Ok, in the settings from the javascript-Adapter you must set your location, or check to use the ioBroker location.

      Enrico

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

        @RappiRN I am aware of this and it was done. Don't forget, in my case ASTRO work right once after fresh power up, it turns up the light in expected time.

        1 Reply Last reply Reply Quote 0
        • R
          RappiRN Most Active last edited by

          The right once working, is it also at the right time?
          Which location settings you are using, from the adapter or from ioBroker? Sometimes it was a problem to use the ioBroker settings instead the adapter settings.
          Sorry i have not really an idea what the matter with your astro-function.

          Enrico

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

            @RappiRN Yes, when I say it works right once, it means the timing is right. I tried both location settings, from the adapter as well as from system with same result.

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

              Have brand new ioBroker installation on different platform (x64) with same script as show above, the Astro function still does not work. What am I doing wrong?

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

                @ap2017 for debuging use debug, not telegram.
                substitute telegram whith debug to see what's going on.
                Look at the LOG.
                mine works:
                c8d8d908-8721-440c-b8e0-f1d21907f888-image.png ,
                Do you wanna Post an export of your Blockly?

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

                  @iomountain Thank you for your response. I changed my script as you suggested, where do I find debugging log?

                  1e4c6fe1-d922-40f0-9785-51ad80cee496-image.png

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

                    Try Log at main screen Admin
                    f48dbde0-adab-4a3e-8643-a33c864a7af0-image.png
                    There you will find your "debug output" Messages

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

                      @iomountain I think that after long time of straggling I am getting close to resolving the issue with ASTRO function that I am experiencing. It looks like ASTRO algorithm does not like GEO coordinates in North America since it started to work fine after I set ASTRO for Berlin, Germany. Maybe negative value of Longitude confuses the algorithm?

                      Could you do me a favor and try your script with GEO set to Hartford CT in USA? Thank you.

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

                        It works, United States Hartford 41.76 -72.68
                        If you wanna see all astro times try the Script

                        // Astrotime for today - V2.0
                        
                        console.log("=====================");
                        console.log("Astro time for today");
                        console.log("=====================");
                        
                        var nightEnd = getAstroDate("nightEnd");
                        console.log(" (0) nightEnd (End of night)........................: " + nightEnd.toLocaleTimeString());
                        var nauticalDawn = getAstroDate("nauticalDawn");
                        console.log(" (1) nauticalDawn (naut. Dämmerung Morgens)...........: " + nauticalDawn.toLocaleTimeString());
                        var dawn = getAstroDate("dawn");
                        console.log(" (2) dawn (Dämmerung Morgens).........................: " + dawn.toLocaleTimeString());
                        var sunrise = getAstroDate("sunrise");
                        console.log(" (3) sunrise (Sonnenaufgang)..........................: " + sunrise.toLocaleTimeString());
                        var sunriseEnd = getAstroDate("sunriseEnd");
                        console.log(" (4) sunriseEnd (Ende des Sonnenaufgangs).............: " + sunriseEnd.toLocaleTimeString());
                        var goldenHourEnd = getAstroDate("goldenHourEnd");
                        console.log(" (5) goldenHourEnd (Ende der Golden Hour VM)..........: " + goldenHourEnd.toLocaleTimeString()); 
                        var solarNoon = getAstroDate("solarNoon");
                        console.log(" (6) solarNoon (Mittag)...............................: " + solarNoon.toLocaleTimeString());
                        var goldenHour = getAstroDate("goldenHour");
                        console.log(" (7) goldenHour (Start der Golden Hour NM)............: " + goldenHour.toLocaleTimeString());
                        var sunsetStart = getAstroDate("sunsetStart");
                        console.log(" (8) sunsetStart (Start des Sonnenuntergangs).........: " + sunsetStart.toLocaleTimeString()); 
                        var sunset = getAstroDate("sunset");
                        console.log(" (9) sunset (Sonnenuntergang).........................: " + sunset.toLocaleTimeString());
                        var dusk = getAstroDate("dusk");
                        console.log("(10) dusk (Dämmerung Abends)..........................: " + dusk.toLocaleTimeString());
                        var nauticalDusk = getAstroDate("nauticalDusk");
                        console.log("(11) nauticalDusk (naut. Dämmerung Abends)............: " + nauticalDusk.toLocaleTimeString());
                        var night = getAstroDate("night");
                        console.log("(12) night (Start of night)..........................: " + night.toLocaleTimeString());
                        var nadir = getAstroDate("nadir");
                        console.log("(13) nadir (midnight)..............................: " + nadir.toLocaleTimeString());
                        console.log("=====================");
                        var today = new Date();
                        var tomorrow = today.setDate(today.getDate()+1);
                        var tomorrowNight = getAstroDate("night", tomorrow);
                        console.log("Night starts tomorrow at " + tomorrowNight.toLocaleTimeString());
                        
                        console.log(obj.id);
                        

                        @ap2017
                        Do you wanna Post an export of your Blockly?

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

                          @iomountain I will try to set ASTRO back to US, thanks

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

                            @ap2017 don't forget to restart iobroker. Like "iobroker stop" and "iobroker start"

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

                              @iomountain Day I switched to US the ASTRO stopped working (no ASTRO string in LOG file). I restarted computer after I made a change. I will try your ASTRO script

                              Here is my script:


                              // Living Room Light
                              schedule({astro: "goldenHour", shift: 0}, function () {
                              console.log('astro_on');
                              setState("zwave.0.NODE7.SWITCH_MULTILEVEL.Level_1"/Level/, 99);
                              });
                              schedule("0 18 * * *", function () {
                              console.log('schedule_on');
                              setState("zwave.0.NODE7.SWITCH_MULTILEVEL.Level_1"/Level/, 99);
                              });
                              schedule("30 23 * * *", function () {
                              console.log('schedule_off');
                              setState("zwave.0.NODE7.SWITCH_MULTILEVEL.Level_1"/Level/, 0);
                              });

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

                                @iomountain Here is the log from running your script Astro Time for Today, if it helps. So, script runs but shows error code at the end of each run.


                                2019-10-19 18:48:42.414 - info: mysensors.0 (18452) STARTED
                                2019-10-19 18:48:42.415 - info: mysensors.0 (18452) STARTED
                                2019-10-19 18:48:55.725 - info: javascript.0 (18920) Stop script script.js.ASTRO
                                2019-10-19 18:48:55.770 - info: javascript.0 (18920) Start javascript script.js.ASTRO
                                2019-10-19 18:48:55.773 - info: javascript.0 (18920) script.js.ASTRO: =====================
                                2019-10-19 18:48:55.773 - info: javascript.0 (18920) script.js.ASTRO: Astro time for today
                                2019-10-19 18:48:55.773 - info: javascript.0 (18920) script.js.ASTRO: =====================
                                2019-10-19 18:48:55.773 - info: javascript.0 (18920) script.js.ASTRO: (0) nightEnd (End of night)........................: 5:36:06 AM
                                2019-10-19 18:48:55.774 - info: javascript.0 (18920) script.js.ASTRO: (1) nauticalDawn (naut. Dämmerung Morgens)...........: 6:08:18 AM
                                2019-10-19 18:48:55.774 - info: javascript.0 (18920) script.js.ASTRO: (2) dawn (Dämmerung Morgens).........................: 6:40:39 AM
                                2019-10-19 18:48:55.774 - info: javascript.0 (18920) script.js.ASTRO: (3) sunrise (Sonnenaufgang)..........................: 7:08:50 AM
                                2019-10-19 18:48:55.774 - info: javascript.0 (18920) script.js.ASTRO: (4) sunriseEnd (Ende des Sonnenaufgangs).............: 7:11:46 AM
                                2019-10-19 18:48:55.775 - info: javascript.0 (18920) script.js.ASTRO: (5) goldenHourEnd (Ende der Golden Hour VM)..........: 7:46:57 AM
                                2019-10-19 18:48:55.775 - info: javascript.0 (18920) script.js.ASTRO: (6) solarNoon (Mittag)...............................: 12:37:25 PM
                                2019-10-19 18:48:55.775 - info: javascript.0 (18920) script.js.ASTRO: (7) goldenHour (Start der Golden Hour NM)............: 5:27:52 PM
                                2019-10-19 18:48:55.775 - info: javascript.0 (18920) script.js.ASTRO: (8) sunsetStart (Start des Sonnenuntergangs).........: 6:03:04 PM
                                2019-10-19 18:48:55.775 - info: javascript.0 (18920) script.js.ASTRO: (9) sunset (Sonnenuntergang).........................: 6:06:00 PM
                                2019-10-19 18:48:55.776 - info: javascript.0 (18920) script.js.ASTRO: (10) dusk (Dämmerung Abends)..........................: 6:34:11 PM
                                2019-10-19 18:48:55.776 - info: javascript.0 (18920) script.js.ASTRO: (11) nauticalDusk (naut. Dämmerung Abends)............: 7:06:31 PM
                                2019-10-19 18:48:55.776 - info: javascript.0 (18920) script.js.ASTRO: (12) night (Start of night)..........................: 7:38:44 PM
                                2019-10-19 18:48:55.776 - info: javascript.0 (18920) script.js.ASTRO: (13) nadir (midnight)..............................: 12:37:25 AM
                                2019-10-19 18:48:55.776 - info: javascript.0 (18920) script.js.ASTRO: =====================
                                2019-10-19 18:48:55.777 - info: javascript.0 (18920) script.js.ASTRO: Night starts tomorrow at 7:37:17 PM
                                2019-10-19 18:48:55.777 - error: javascript.0 (18920) script.js.ASTRO: script.js.ASTRO:41
                                2019-10-19 18:48:55.777 - error: javascript.0 (18920) console.log(obj.id);
                                2019-10-19 18:48:55.778 - error: javascript.0 (18920) ^
                                2019-10-19 18:48:55.778 - error: javascript.0 (18920) ReferenceError: obj is not defined
                                2019-10-19 18:48:55.778 - error: javascript.0 (18920) at script.js.ASTRO:41:13
                                2019-10-19 18:48:55.778 - error: javascript.0 (18920) at Script.runInContext (vm.js:133:20)

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            612
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly
                                            6
                                            58
                                            4889
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo