Probleme mit zeitgesteuerten Programmen (Cron)

Einrichtung, Nutzung und Hilfe zu RaspberryMatic (OCCU auf Raspberry Pi)

Moderatoren: jmaus, Co-Administratoren

Antworten
pedromania
Beiträge: 12
Registriert: 17.02.2017, 22:21

Probleme mit zeitgesteuerten Programmen (Cron)

Beitrag von pedromania » 17.02.2017, 22:50

Hallo,
Ich habe ein Problem mit der zeitgesteuerten Ausführung der Prgs. (z.B. Beim Holen der Wetterdaten von Weather Underground per Cuxd).

Zunächst laufen die Prgs wie gewollt, dann nach einer Weile werde diese nicht mehr ausgeführt.
Wenn ich mir das Prg anschauen und es dann erneut speichere (ohne eine Änderung getan zu haben), dann läuft es wieder mal ein paar mal.

Zum Test habe ich ein Script erstellt, welches über das Zeitprogramm jede Minute angetriggert und die aktuelle Zeit in eine Variable geschrieben wird. diese Variable wird protokolliert und ist im Systemprotokoll einsehbar.
Ich bin von einer CCU auf den Raspi3 umgestiegen und bin vollauf begeistert, bis auf dieses unschöne Phänomen....


hier das Test-Script:

var obj = dom.GetObject("Z_test_Zeit");
string datzeit = system.Date("%d.%m.%Y %T");
obj.State(datzeit);

hier das Systemprotokoll:

21:50:01 17.02.2017 Z_test_Zeit 17.02.2017 21:50:01
21:51:00 17.02.2017 Z_test_Zeit 17.02.2017 21:51:00
21:52:00 17.02.2017 Z_test_Zeit 17.02.2017 21:52:00
21:53:00 17.02.2017 Z_test_Zeit 17.02.2017 21:53:00
21:55:00 17.02.2017 Z_test_Zeit 17.02.2017 21:55:00
21:56:00 17.02.2017 Z_test_Zeit 17.02.2017 21:56:00
21:57:00 17.02.2017 Z_test_Zeit 17.02.2017 21:57:00

Jetzt ist es 21:26 und seit 21:57 ist es nicht mehr gelaufen.....

hier der Auszug aus dem Systemlog:

Feb 17 20:41:00 homematic-raspi local0.err ReGaHss: Error: IseESP::ExecError= Execution failed: [-1] 0 0x00 [0] 145 0x91 [1] 0 0x00 [2] 102 0x66 [3] 0 0x00 [4] 0 0x00 [../Platform/DOM/iseESPexec.cpp (11622)]
Feb 17 20:42:00 homematic-raspi local0.err ReGaHss: Error: IseESP::ExecError= Execution failed: [-1] 0 0x00 [0] 145 0x91 [1] 0 0x00 [2] 102 0x66 [3] 0 0x00 [4] 0 0x00 [../Platform/DOM/iseESPexec.cpp (11622)]
Feb 17 20:45:41 homematic-raspi user.err kernel: [ 906.957636] NOHZ: local_softirq_pending 80
Feb 17 20:49:47 homematic-raspi local0.err ReGaHss: Error: IseESP::ExecError= Execution failed: [-1] 0 0x00 [0] 97 0x61 [1] 0 0x00 [2] 99 0x63 [3] 0 0x00 [4] 100 0x64 [../Platform/DOM/iseESPexec.cpp (11622)]
Feb 17 20:54:02 homematic-raspi local0.err ReGaHss: Error: IseESP::SyntaxError= Error 1 at row 266 col 26 near ^(#datzeit#); WriteLine("Hallo Welt!");^M [../Platform/DOM/iseESP.cpp (1067)]
Feb 17 20:54:02 homematic-raspi local0.err ReGaHss: Error: ParseProgram: SyntaxError= (#datzeit#); WriteLine("Hallo Welt!"); [../Platform/DOM/iseESP.cpp (348)]
Feb 17 21:00:00 homematic-raspi cron.info crond[205]: USER root pid 3031 cmd /bin/SetInterfaceClock 127.0.0.1:2001
Feb 17 21:00:00 homematic-raspi cron.info crond[205]: USER root pid 3032 cmd /bin/setHWClock.sh
Feb 17 21:21:45 homematic-raspi local0.err ReGaHss: Error: IseESP::ExecError= Execution failed: [-1] 0 0x00 [0] 144 0x90 [1] 0 0x00 [2] 9 0x09 [3] 0 0x00 [4] 28 0x1c [../Platform/DOM/iseESPexec.cpp (11622)]
Feb 17 21:21:45 homematic-raspi local0.err ReGaHss: Error: IseESP::ExecError= Execution failed: [-1] 0 0x00 [0] 144 0x90 [1] 0 0x00 [2] 9 0x09 [3] 0 0x00 [4] 28 0x1c [../Platform/DOM/iseESPexec.cpp (11622)]
Feb 17 21:30:00 homematic-raspi cron.info crond[205]: USER root pid 5532 cmd /bin/SetInterfaceClock 127.0.0.1:2001
Feb 17 21:40:47 homematic-raspi user.err kernel: [ 4213.587011] NOHZ: local_softirq_pending 80
Feb 17 22:00:00 homematic-raspi cron.info crond[205]: USER root pid 8059 cmd /bin/SetInterfaceClock 127.0.0.1:2001
Feb 17 22:00:00 homematic-raspi cron.info crond[205]: USER root pid 8060 cmd /bin/setHWClock.sh
Feb 17 22:26:19 homematic-raspi local0.err ReGaHss: Error: IseESP::ExecError= Execution failed: [-1] 0 0x00 [0] 97 0x61 [1] 0 0x00 [2] 99 0x63 [3] 0 0x00 [4] 100 0x64 [../Platform/DOM/iseESPexec.cpp (11622)]


Hat jemand eine Idee ???

Bulli
Beiträge: 494
Registriert: 29.04.2014, 18:38
Hat sich bedankt: 2 Mal
Danksagung erhalten: 9 Mal

Re: Probleme mit zeitgesteuerten Programmen (Cron)

Beitrag von Bulli » 18.02.2017, 13:09

Hallo
benutz den CUxD Timer oder stell einen cronjob dafür ein.

Aktuell (stand heute) ist der CCU Timer unbrauchbar.
Nur einige Beispiele dazu es gibt bestimmt über 100 Beiträge im Forum.
http://homematic-forum.de/forum/viewtop ... 50#p312459
http://homematic-forum.de/forum/viewtop ... 26&t=32341
http://homematic-forum.de/forum/viewtop ... 20#p320911

Gruß
Bulli

Antworten

Zurück zu „RaspberryMatic“