- Home
- English
- Scripting / Logic
- Blockly
- ASTRO function. Does not work again
ASTRO function. Does not work again
-
@iomountain My system:
Script Engine 4.3.1
Node.js 10.16.3
NPM 6.9.0 -
My script is a Blockly:
-
@iomountain Thank you, will enter and start it tonight
-
@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.My script:
-
you can check the times at https://www.suncalc.org if you can get them.
-
@iomountain I mean is there a way to check how ioBroker see my location? Maybe ASTRO gets screwed up because location is screwed up.
-
I am not sure, but i think what astro uses is only this:
Is the Date and Time of your Operating System set right? -
@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 -
@iomountain In all my tests location in Overview Settings set to my address, see picture. Not sure what you mean by Date and Time
-
@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.
-
If you config:
you also will find Astro Settings for your location. -
-
@iomountain In adapter config I set location to Germany to make ASTRO work. So, why does it works for Germany but does not work for my location in US?
-
I set my location to:
restartet the Host.
Run this Blockly:
<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="create" id="v72H-N1#%w_zseA#CMc" x="-212" y="-38"> <field name="NAME">01-Nachtende</field> <statement name="STATEMENT"> <block type="create" id="@kYi)AXak/ydmJCF!oo]"> <field name="NAME">02-Morgendämmerung</field> <statement name="STATEMENT"> <block type="create" id=";T8PP:ZCKeM4+U5?yi"> <field name="NAME">03-Sonnenaufgang</field> <statement name="STATEMENT"> <block type="create" id="gIfB:POQ4@(+!BTUapf"> <field name="NAME">04-Sonneneaufgang_Ende</field> <statement name="STATEMENT"> <block type="create" id="MFJk^e%f2^,QG[vUK4ee"> <field name="NAME">05-Golden_Houer_Ende</field> <statement name="STATEMENT"> <block type="create" id="hO7B(a7I~WK~vu8.7gDH"> <field name="NAME">06-Mittag</field> <statement name="STATEMENT"> <block type="create" id="eYe;t8x=FwBT4B,.|k."> <field name="NAME">07-Golden_Houer</field> <statement name="STATEMENT"> <block type="create" id="tVROR/kUT3MINh%SOcdY"> <field name="NAME">08-Sonnenuntergang_Anfang</field> <statement name="STATEMENT"> <block type="create" id="kCb|+j}(0FzG/abd,q1"> <field name="NAME">09-Sonnenuntergang</field> <statement name="STATEMENT"> <block type="create" id="4UBzNj{JG:saTpO/G"> <field name="NAME">10-Abenddämmerung</field> <statement name="STATEMENT"> <block type="create" id="%kf8::E|Nt2icPYM.aB"> <field name="NAME">11-Nacht</field> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> <next> <block type="on_ext" id="CJC}fNA0]pCZXm3|IQhw"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="~WnQKdX*p;3`gh]~Gv|}"> <field name="oid">default</field> </shadow> <block type="field_oid" id="sLj^7q(fyKCJ@uKYgne@"> <field name="oid">javascript.0.Datenpunkte_own.Alarm.Alarm_AUS</field> </block> </value> <statement name="STATEMENT"> <block type="debug" id="^Q)xU7M#5MVip9{Y2$hP"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="%kcngJ7d=5*$asYlS~T|"> <field name="TEXT">03_Astro test start</field> </shadow> </value> <next> <block type="update" id="QIMsUa0@3?Vo;jj}r-U"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.01-Nachtende</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="^E3;~IY|ubg5}Cw9eYrO"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="J0d,%PB7t8lb@8mXXXZ("> <field name="TYPE">nightEnd</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="HB^8MQ(4ds+W5/u^OW4m"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.02-Morgendämmerung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="oN=Uv}fYcHBCDPHtpXiw"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id=":/y;e5awTDC:Cev;TUCS"> <field name="TYPE">dawn</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="+A7|YpLw]g_!(9]PC@UH"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.03-Sonnenaufgang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="AMyc:3Tp9XP+4kq(nv-"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id=",4bKmH_J8szFEb.4u{OB"> <field name="TYPE">sunrise</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="DwtR_scz+f42pEJ/sKn?"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.04-Sonneneaufgang_Ende</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="a~M9OAt|LRQe5:d]~}H?"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="7/scA1O-iX|.x-iB_~X3"> <field name="TYPE">sunriseEnd</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="F.Y:ABQw?pppVIMuzXC4"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.05-Golden_Houer_Ende</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="jgDe(t)05^f2gQyGIaI6"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="]qS[Z+Pab*WUXun969T"> <field name="TYPE">goldenHourEnd</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="FjU7x+vB-{|nz?Ntgi]B"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.06-Mittag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="Ewd,fX4o;ftqhEAKr)^"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="}2iN_uE[d~xeJMc]9~%p"> <field name="TYPE">solarNoon</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="(slH?vH:Tx73fJ(J2HY]"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.07-Golden_Houer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="kh1//%:x4My;~kFU,E^"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="~MgPI%%B44O6EzrHu._C"> <field name="TYPE">goldenHour</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="g|Q7g?g_fO6AjzFr(le"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.08-Sonnenuntergang_Anfang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="r6N{VKoWDb6,=S=QyNF"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="!nNaC0sNkzDc_CZkch6"> <field name="TYPE">sunsetStart</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="5k::E!c_Nzjkf_4MU}_U"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.09-Sonnenuntergang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id=",z]tcWXKDj7^syvxRkU["> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="e.#C/a~nk+lc9h!VRKIG"> <field name="TYPE">sunset</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="okk0X1l~(0(nUW+Re46b"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.10-Abenddämmerung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="jT6:rKIF[@`bgdN2Ei+R"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="CeiV[rNfs^|Wwo/^8]}L"> <field name="TYPE">dusk</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="y3QMbYJ8biR5l7@~Vd92"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.11-Nacht</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="5z?E1xsLp;YRIJ6YIaB!"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="Y[SLp]Z~a7!a0aht:]j?"> <field name="TYPE">night</field> <field name="OFFSET">0</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>
and got this
seems OK for your location.
What else could I check? -
@iomountain Please run with both system ASTRO and adapter ASTRO set to my location. Thank you.
-
I set the location to:
ssh on HOST sudo reboot -h now
Run this Blockly:
<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="create" id="v72H-N1#%w_zseA#CMc" x="-212" y="-38"> <field name="NAME">01-Nachtende</field> <statement name="STATEMENT"> <block type="create" id="@kYi)AXak/ydmJCF!oo]"> <field name="NAME">02-Morgendämmerung</field> <statement name="STATEMENT"> <block type="create" id=";T8PP:ZCKeM4+U5?yi"> <field name="NAME">03-Sonnenaufgang</field> <statement name="STATEMENT"> <block type="create" id="gIfB:POQ4@(+!BTUapf"> <field name="NAME">04-Sonneneaufgang_Ende</field> <statement name="STATEMENT"> <block type="create" id="MFJk^e%f2^,QG[vUK4ee"> <field name="NAME">05-Golden_Houer_Ende</field> <statement name="STATEMENT"> <block type="create" id="hO7B(a7I~WK~vu8.7gDH"> <field name="NAME">06-Mittag</field> <statement name="STATEMENT"> <block type="create" id="eYe;t8x=FwBT4B,.|k."> <field name="NAME">07-Golden_Houer</field> <statement name="STATEMENT"> <block type="create" id="tVROR/kUT3MINh%SOcdY"> <field name="NAME">08-Sonnenuntergang_Anfang</field> <statement name="STATEMENT"> <block type="create" id="kCb|+j}(0FzG/abd,q1"> <field name="NAME">09-Sonnenuntergang</field> <statement name="STATEMENT"> <block type="create" id="4UBzNj{JG:saTpO/G"> <field name="NAME">10-Abenddämmerung</field> <statement name="STATEMENT"> <block type="create" id="%kf8::E|Nt2icPYM.aB"> <field name="NAME">11-Nacht</field> <statement name="STATEMENT"> <block type="create" id="m8=S(!$%YPfP56~qYN-V"> <field name="NAME">12-Nadir</field> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </statement> <next> <block type="on_ext" id="CJC}fNA0]pCZXm3|IQhw"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="~WnQKdX*p;3`gh]~Gv|}"> <field name="oid">default</field> </shadow> <block type="field_oid" id="sLj^7q(fyKCJ@uKYgne@"> <field name="oid">javascript.0.Datenpunkte_own.Alarm.Alarm_AUS</field> </block> </value> <statement name="STATEMENT"> <block type="debug" id="^Q)xU7M#5MVip9{Y2$hP"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="%kcngJ7d=5*$asYlS~T|"> <field name="TEXT">03_Astro test start</field> </shadow> </value> <next> <block type="update" id="QIMsUa0@3?Vo;jj}r-U"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.01-Nachtende</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="^E3;~IY|ubg5}Cw9eYrO"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="J0d,%PB7t8lb@8mXXXZ("> <field name="TYPE">nightEnd</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="HB^8MQ(4ds+W5/u^OW4m"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.02-Morgendämmerung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="oN=Uv}fYcHBCDPHtpXiw"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id=":/y;e5awTDC:Cev;TUCS"> <field name="TYPE">dawn</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="+A7|YpLw]g_!(9]PC@UH"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.03-Sonnenaufgang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="AMyc:3Tp9XP+4kq(nv-"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id=",4bKmH_J8szFEb.4u{OB"> <field name="TYPE">sunrise</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="DwtR_scz+f42pEJ/sKn?"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.04-Sonneneaufgang_Ende</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="a~M9OAt|LRQe5:d]~}H?"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="7/scA1O-iX|.x-iB_~X3"> <field name="TYPE">sunriseEnd</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="F.Y:ABQw?pppVIMuzXC4"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.05-Golden_Houer_Ende</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="jgDe(t)05^f2gQyGIaI6"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="]qS[Z+Pab*WUXun969T"> <field name="TYPE">goldenHourEnd</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="FjU7x+vB-{|nz?Ntgi]B"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.06-Mittag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="Ewd,fX4o;ftqhEAKr)^"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="}2iN_uE[d~xeJMc]9~%p"> <field name="TYPE">solarNoon</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="(slH?vH:Tx73fJ(J2HY]"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.07-Golden_Houer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="kh1//%:x4My;~kFU,E^"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="~MgPI%%B44O6EzrHu._C"> <field name="TYPE">goldenHour</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="g|Q7g?g_fO6AjzFr(le"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.08-Sonnenuntergang_Anfang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="r6N{VKoWDb6,=S=QyNF"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="!nNaC0sNkzDc_CZkch6"> <field name="TYPE">sunsetStart</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="5k::E!c_Nzjkf_4MU}_U"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.09-Sonnenuntergang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id=",z]tcWXKDj7^syvxRkU["> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="e.#C/a~nk+lc9h!VRKIG"> <field name="TYPE">sunset</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="okk0X1l~(0(nUW+Re46b"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.10-Abenddämmerung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="jT6:rKIF[@`bgdN2Ei+R"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="CeiV[rNfs^|Wwo/^8]}L"> <field name="TYPE">dusk</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="y3QMbYJ8biR5l7@~Vd92"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.11-Nacht</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="5z?E1xsLp;YRIJ6YIaB!"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="Y[SLp]Z~a7!a0aht:]j?"> <field name="TYPE">night</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <next> <block type="update" id="r4Pp!x8AYRH2ByxfJ-uj"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.12-Nadir</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="70t2I`G4:U{os`6!_.!i"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> <value name="VALUE"> <block type="time_astro" id="s:0TbVo8LNISj)?5m=fr"> <field name="TYPE">nadir</field> <field name="OFFSET">0</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>
got this:
javascript was set to:
-
@iomountain Thanks! I will try again on new X64 computer with freshly loaded software.
-
@iomountain This script works fine when started, it creates objects, but I want to use ASTRO to turn ON my lights repeatably, that what I have trouble with.
-
@iomountain After all latest updates ASTRO seems to work fine. Don't exactly know what happened, but it works. Thank you for your help
-
schön das es jetzt läuft, hab noch viel Spass mit iobroker.
Vielleicht kannst du noch Deine Version posten und den Tread auf gelöst setzen.
Viele Grüße
Ralph