Trigger Eventghost - wget loop

Allgemeines zur HomeMatic Haussteuerung

Moderator: Co-Administratoren

Antworten
MaxMan23
Beiträge: 97
Registriert: 03.01.2014, 14:26

Trigger Eventghost - wget loop

Beitrag von MaxMan23 » 21.08.2017, 16:26

Hallo zusammen,

ich habe ein Problem mit dem Senden "eines" http Aufrufes über wget. Kennt jemand von euch das Problem, bzw. eine Lösung?

Eventghost Forum:
Hi, i have a problem with the Webserver. I got rigger loops.

I send a script one times from my homematic:

Code: Alles auswählen

string url="http://192.168.xxx.xx:xxxx/?KodiPause";
dom.GetObject("CUxD.CUX2801001:1.CMD_EXEC").State("wget -q -O - "#url);

And after i send it i got a trigger loop, every xx seconds, until i deaktivate the Webserver.

Code: Alles auswählen

19:53:02 HTTP.Started 'Webserver started as unsecured (http://) on port xxxx'
19:53:19 Task.Activated.firefox
19:53:27 HTTP.KodiPause []
19:53:27 Python Skript
19:53:28 HTTP.KodiPause []
19:53:28 Python Skript
19:53:29 Task.Deactivated.firefox
19:53:29 Task.Activated.EventGhost
19:53:30 HTTP.KodiPause []
19:53:30 Python Skript
19:53:33 HTTP.KodiPause []
19:53:33 Python Skript
19:53:37 HTTP.Stopped 'Webserver on port xxxx stopped'
-----------------------------------
Die Antwort ist:
well the only thing i can think of that would cause this behavior is homematic keeps on repeating the pause command. the webserver shouldn't behave like this all on it's own. and the fact that you keep on getting the events leads me to believe that they keep on being sent over. you can test this simply by manually sending the command yourself. open your browser on the PC that is running EG and the webserver plugin and key the following into the address bar and press enter. see if you only get an event one time in EG. if you do and it does not repeat that it means the issue is with homematic


Wäre schön wenn jemand eine Idee zur Lösung hätte.
Zuletzt geändert von alchy am 28.08.2017, 18:07, insgesamt 1-mal geändert.
Grund: Code in Codetags posten

MaxMan23
Beiträge: 97
Registriert: 03.01.2014, 14:26

Re: Trigger Eventghost - wget loop

Beitrag von MaxMan23 » 21.08.2017, 20:21

Wie muss ein curl Aufruf aussehen? Ich habe dies probiert, passiert aber nichts:

Code: Alles auswählen

var url="http://192.168.178.48:8080/?KodiPause";
var cURL="LD_LIBRARY_PATH=/usr/local/addons/cuxd /usr/local/addons/cuxd/curl";
dom.GetObject("CUxD.CUX2801001:3.CMD_EXEC").State(cURL#" -s -m 5 '"# url #"'");
Zuletzt geändert von alchy am 28.08.2017, 18:08, insgesamt 1-mal geändert.
Grund: Code in Codetags posten

MaxMan23
Beiträge: 97
Registriert: 03.01.2014, 14:26

Re: Trigger Eventghost - wget loop

Beitrag von MaxMan23 » 23.08.2017, 19:33

Keiner da der helfen kann?

MaxMan23
Beiträge: 97
Registriert: 03.01.2014, 14:26

Re: Trigger Eventghost - wget loop

Beitrag von MaxMan23 » 28.08.2017, 17:49

push

alchy
Beiträge: 10754
Registriert: 24.02.2011, 01:34
System: CCU
Hat sich bedankt: 65 Mal
Danksagung erhalten: 673 Mal

Re: Trigger Eventghost - wget loop

Beitrag von alchy » 28.08.2017, 18:14

Mehere Möglichkeiten zur Ursachenforschung.
  • >> Fehlerprotokoll << anschauen
  • Auf der Kommandozeile ausführen und Rückgabe anschauen.
  • statt mittels CUxD.exec mit _SETS & _RET usw. Arbeiten um Rückgabe zu erhalten.
  • hatte ich schon >> Fehlerprotokoll << anschauen :wink:
  • system.exec verwenden um z.b. stderr auswerten zu können
Alchy

Blacklist................... almost full
Ignoranz ist die Summe aller Maßnahmen die man ergreift, um bestehende Tatsachen nicht sehen zu müssen.

© Sandra Pulsfort (*1974)

Lies bitte die Logik von WebUI Programmen und die Tipps und Tricks für Anfänger.

Wichtig auch CUxD ersetzt System.exec. Die HM Script Doku (Downloadart Skripte) hilft auch weiter.
Zum Testen von Scripten den >> HomeMatic Script Executor << von Anli benutzen.

MaxMan23
Beiträge: 97
Registriert: 03.01.2014, 14:26

Re: Trigger Eventghost - wget loop

Beitrag von MaxMan23 » 03.09.2017, 06:29

Im Full Syslog steht dies:
Sep 3 06:25:41 homematic-ccu2 daemon.info cuxd[1397]: system(wget -q -O - http://192.168.178.xx:xxxx/?KodiPause) exit(4) 20s

Nur mir sagt dies nichts :-)

Gerti
Beiträge: 3035
Registriert: 28.01.2016, 18:06
System: CCU
Wohnort: Hürth
Hat sich bedankt: 16 Mal
Danksagung erhalten: 274 Mal

Re: Trigger Eventghost - wget loop

Beitrag von Gerti » 03.09.2017, 08:49

Hi!

Exit(4) bedeutet, dass das Ziel nicht erreichbar ist.

Gruß
Gerti

Antworten

Zurück zu „HomeMatic allgemein“