Hallo!
Seit der Zeitumstellung am Sonntag habe ich das Problem, dass Twilight die Events eine Stunde früher auslöst. (Habe FHEM auf einem Rasberry laufen)
Beispiel:
SS_Civil ist heute um 20:06:37, trotzdem gehen meine Rollläden um 19:06 runter.
Die Epoc Zeiten von FHEM und Twilight sind miteinander konsistent.
Hat jemand eine Idee?
Ich habe nach der Zeitumstellung noch nicht neugestartet (Weder FHEM noch Raspi)
Danke euch!
Ciao
Twilight lässt die Zeiten seit Mitte 2015 vom Modul sunrise ermitteln
In sunrise hat es in 11/2016 eine Änderung mit folgendem Text gegeben:
Zitat99_SUNRISE_EL.pm: Fix next-day summertime chnage, compute todays value in
*abs even after after the event (Forum #42920)
Ich weiß nicht ob es da einen Zusammenhang gibt.
TW ist nicht geändert worden.
Möglicherweise ist diese Änderung mit meinem Modul nicht ganz kompatibel. Ich weiß es aber nicht.
https://forum.fhem.de/index.php/topic,42920.msg513665.html#msg513665 (https://forum.fhem.de/index.php/topic,42920.msg513665.html#msg513665)
--- /tmp/99_SUNRISE_EL-12485.3.pm
+++ /tmp/99_SUNRISE_EL-11984.2.pm
@@ -1,5 +1,5 @@
##############################################
-# $Id: 99_SUNRISE_EL.pm 12485 2016-11-01 15:18:51Z rudolfkoenig $
+# $Id: 99_SUNRISE_EL.pm 11984 2016-08-19 12:47:50Z rudolfkoenig $
# This code is derived from DateTime::Event::Sunrise, version 0.0501.
# Simplified and removed further package # dependency (DateTime,
# Params::Validate, etc). For comments see the original code.
@@ -116,7 +116,7 @@
$nt += 86400;
@lt = localtime($nt);
my $ngmtoff = _calctz($nt,@lt); # in hour
- $diff = 24;
+ $diff = 24+$gmtoff-$ngmtoff;
($rt,$st) = _sr_alt($altit,$needrise,$needset,
$lt[5]+1900,$lt[4]+1,$lt[3], $ngmtoff);
@@ -384,8 +384,8 @@
sub sunrise_rel(@) { return sr_alt(time(),1,1,0,1,shift,shift,shift,shift); }
sub sunset_rel (@) { return sr_alt(time(),0,1,0,1,shift,shift,shift,shift); }
-sub sunrise_abs(@) { return sr_alt(time(),1,0,0,0,shift,shift,shift,shift); }
-sub sunset_abs (@) { return sr_alt(time(),0,0,0,0,shift,shift,shift,shift); }
+sub sunrise_abs(@) { return sr_alt(time(),1,0,0,1,shift,shift,shift,shift); }
+sub sunset_abs (@) { return sr_alt(time(),0,0,0,1,shift,shift,shift,shift); }
sub sunrise (@) { return sr_alt(time(),1,2,0,1,shift,shift,shift,shift); }
sub sunset (@) { return sr_alt(time(),0,2,0,1,shift,shift,shift,shift); }
sub isday (@) { return sr_alt(time(),1,0,1,1,shift,shift,shift,shift); }
Ich bekomme seit der Zeitumstellung bei der Berechung von "light" bei Twilight doppelte Zeitstempel oder auch eine merkwürdige Reihenfolge (6,4,3,5,2) . Vor der Zeitumstellung hatte ich das nicht so...
2017-03-26_04:17:06 MyTwilight light: 1
2017-03-26_05:00:39 MyTwilight light: 2
2017-03-26_05:41:46 MyTwilight light: 3
2017-03-26_06:21:43 MyTwilight light: 4
2017-03-26_06:48:06 MyTwilight light: 5
2017-03-26_07:58:40 MyTwilight light: 6
2017-03-26_18:18:01 MyTwilight light: 4
2017-03-26_18:44:30 MyTwilight light: 3
2017-03-26_18:56:49 MyTwilight light: 5
2017-03-26_19:24:35 MyTwilight light: 2
2017-03-26_19:44:30 MyTwilight light: 3
2017-03-26_20:24:35 MyTwilight light: 2
2017-03-26_21:05:55 MyTwilight light: 1
2017-03-26_21:49:48 MyTwilight light: 0
2017-03-27_05:14:16 MyTwilight light: 1
2017-03-27_05:58:04 MyTwilight light: 2
2017-03-27_06:39:21 MyTwilight light: 3
2017-03-27_07:19:21 MyTwilight light: 4
2017-03-27_07:45:45 MyTwilight light: 5
2017-03-27_07:45:45 MyTwilight light: 6
2017-03-27_19:19:47 MyTwilight light: 5
2017-03-27_19:19:48 MyTwilight light: 4
2017-03-27_19:46:16 MyTwilight light: 3
2017-03-27_20:26:25 MyTwilight light: 2
2017-03-27_21:07:54 MyTwilight light: 1
2017-03-27_21:52:03 MyTwilight light: 0
2017-03-28_05:11:25 MyTwilight light: 1
2017-03-28_05:55:30 MyTwilight light: 2
2017-03-28_06:36:55 MyTwilight light: 3
2017-03-28_07:16:59 MyTwilight light: 4
2017-03-28_07:43:24 MyTwilight light: 5
2017-03-28_07:53:57 MyTwilight light: 6
2017-03-28_19:21:32 MyTwilight light: 5
2017-03-28_19:21:32 MyTwilight light: 4
2017-03-28_19:48:02 MyTwilight light: 3
Daher löst mein DOIF falsch aus, dort wird light abgefragt.
LG Sille
Sollte nur am Sonntag passiert sein.
Vermutlich wird die Sommerzeit doppelt berücksichtigt.
Kannst du sagen, das das Verhalten heute auch noch so ist?
Heute Abend gab es wieder den doppelten Zeitstempel:
2017-03-28_19:21:32 MyTwilight light: 5
2017-03-28_19:21:32 MyTwilight light: 4
LG Sille
Das ist normal
Zur Info:
Bei mir hat ein Shutdown restart das Problem "gelöst".
Ciao
Bei einen "shutdown restart" holt sich das twilight Modul erneut die Informationen vom Server.
So mache ich das auch immer wenn ich Probleme mit dem Modul habe.
Gibt es eigentlich eine Möglichkeit die Serververbindung manuell zu triggern?