Dzvents utilisation de .afterSec()

Posez ici vos questions d'utilisation, de configuration de DomoticZ, de bugs, de conseils sur le logiciel lui même dans son utilisation et son paramétrage.
Des forums spécifiques sont ouverts ci-dessous pour regrouper les différents sujets.
jluc2808
Messages : 17
Inscription : 18 janv. 2018, 22:29

Dzvents utilisation de .afterSec()

Message par jluc2808 »

bonjour, dans un de mes script dzVents j'utilises l'option domoticz.openURL().afterSec()

Code : Tout sélectionner

local delai = 15                                                                        -- pour initialiser le timer, changer la valeur si trop rapide ou lent 
return {
	on = {
		timer = {
        			'every ' .. delai .. ' minutes'	                                    -- pour programmer la récurrence de la requête dans le temps 
		},
		httpResponses = {
			'trigger'                                                                   -- doit correspondre au  callback donné dans openURL command
		}
	},
	execute = function(domoticz, item)

		if (item.isTimer) then
			domoticz.openURL({
				url = 'http://192.168.1.xx:3002',                                       -- appel de myDomoAtHome
				method = 'GET',
				callback = 'trigger',                                                   -- regarder httpResponses plus loin.
			})
		end

		if (item.isHTTPResponse) then
			if (item.statusCode == 200) then                                            -- le service est opérationnel  
					local someValue = "MyDomoAtHome fonctionne correctement "           -- prépare le texte 
                    domoticz.log(someValue, domoticz.LOG_INFO)                          -- log l'info
					domoticz.devices('myDomoAtHome').updateText(someValue)	            -- écrire le text dans le dispositif Domoticz, le nom doit correspondre au dispositif virtuel 

		else
		       
		       local someValue = "MyDomoAtHome ne fonctionne pas, retour du status:" ..item.statusCode .. ", redémarrage lancé"     -- prépare le texte
		       
		            os.execute("echo MyPassword | sudo -S synoservice --start pkgctl-MyDomoAtHome")                                -- execute la relance du service dans SYNOLOGY
		                                                                                                                            -- changer le pswd par le votre, malheureusement en clair
                    domoticz.log(someValue, domoticz.LOG_INFO)                                                                      -- log l'info
					-- update some device in Domoticz
					domoticz.devices('myDomoAtHome').updateText(someValue)                                                          -- écrire le text dans le dispositif Domoticz, le nom doit correspondre au dispositif virtue
					domoticz.log('There was a problem handling the request', domoticz.LOG_ERROR)                                    -- log erreur 
				    domoticz.log(item, domoticz.LOG_ERROR)                                                                          -- uncomment seulement si nécessaire
				   
				   
				   -- on va laisser un délai pour permettre au service de redémarrer et immédiatement on va contrôler que ça fonctionne 
				    domoticz.openURL({
        				url = 'http://192.168.1.xx:3002',                                                                           -- appel myDomoAtHome 
        				method = 'GET',
        				callback = 'trigger',                                                                                       -- see httpResponses above.
        			}).afterSec(60)                                                                                                 -- appel de la requête après 60 secondes 
			end

		end
    end 

}
cependant dans mes logs je vois que cette requête est sans délai ?
me suis-je trompé ?

2019-07-20 07:27:12.580 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:12.617 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:12.735 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:12.742 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:12.779 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:12.897 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:17.563 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:17.600 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:17.718 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:18.925 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:18.961 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:19.084 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:23.415 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:23.451 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:23.568 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:23.576 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:23.614 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:23.732 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:23.739 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:23.825 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:23.935 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:24.290 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:24.328 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:24.446 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:25.940 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:25.977 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:26.061 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:26.095 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:26.133 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:26.252 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:28.852 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:28.888 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:29.008 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:30.416 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:30.452 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:30.571 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:32.056 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:32.093 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:32.177 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:32.211 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:32.249 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:32.369 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:38.494 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:38.549 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:38.721 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:41.133 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:41.169 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:41.287 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:43.489 Error: Error opening url: http://192.168.1.xx:3002
2019-07-20 07:27:43.542 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-20 07:27:43.661 Error: dzVents: Error: (2.4.24) There was a problem handling the request
2019-07-20 07:27:46.927 Error: Error opening url: http://192.168.1.xx:3002
papoo
Messages : 2029
Inscription : 10 janv. 2016, 11:29
Localisation : Limoges (87)
Contact :

Re: Dzvents utilisation de .afterSec()

Message par papoo »

il me semble (mais je peux me tromper) que aftersec ne peut s'utiliser qu'avec des commandes sur devices
domoticz beta/RaspBerry PI3 stretch
https://pon.fr github
boum
Messages : 233
Inscription : 18 janv. 2019, 11:34
Localisation : France

Re: Dzvents utilisation de .afterSec()

Message par boum »

https://www.domoticz.com/wiki/DzVents:_ ... ailability

La documentation dit que c'est la seule commande sur openURL qui marche (afterXXX et withinXXX), mais c'est peut-être un bug. On dirait que c'est la première requête qui échoue avant d'envoyer une réponse.
Je ne sais pas si le httpResponse est déclenché si le openURL échoue ou seulement si le serveur renvoie une réponse.

Peux-tu vérifier dans tes paramètres que tu as dans « Réseaux locaux (pas d'authentification) » l'entrée 127.0.0.*
Domoticz v2022.2 sur linux-mint / Z-Wave-JS / RFXCom / Zigbee2MQTT
jluc2808
Messages : 17
Inscription : 18 janv. 2018, 22:29

Re: Dzvents utilisation de .afterSec()

Message par jluc2808 »

merci de ta réponse, j'ai dans réseaux locaux (sans authentification) : 127.0.0.*;192.168.1.*

ensuite pour lever le doute j'ai testé un script tout bête avec openURL().afterSec(20) avec avant la requête un log domoticz et dans le trigger de réponse un autre log domoticz , je trouve bien mes 20 secondes entre les 2 logs. Sauf si le 60 secondes pose problème ça a l'air de faire comme dit la doc, mais là la requête était OK.

je vais voir si je test avec une requête qui est KO (volontairement) si je peux reproduire.
jluc2808
Messages : 17
Inscription : 18 janv. 2018, 22:29

Re: Dzvents utilisation de .afterSec()

Message par jluc2808 »

je viens de faire le test avec 2 appels à openURL (tous les 2 sont par construction en erreur) et en utilisant openURL().afterSec(20)

ça fonctionne comme prévu
je viens aussi de refaire le même test avec 60 secondes et c'est OK

donc ma conclusion c'est que le log s'est emmelé les pinceaux sur mon 1er exemple.

mon script:
return {
on = {
timer = {
'every 2 minutes' -- just an example to trigger the request
},
httpResponses = {
'trigger_test',
'trigger_error' -- must match with the callback passed to the openURL command
}
},
execute = function(domoticz, item)

if (item.isTimer) then
domoticz.log ("before openURL 3000", domoticz.LOG_INFO)
domoticz.openURL({
url = 'http://192.168.1.251:3000',
method = 'GET',
callback = 'trigger_test', -- see httpResponses above.
}).afterSec(20)
end

if (item.isHTTPResponse) then
domoticz.log ("after trigger_test", domoticz.LOG_INFO)
if (item.statusCode == 200) then
if (item.isJSON) then

local someValue = item.json.someValue -- just an example

-- update some device in Domoticz
domoticz.devices('myTextDevice').updateText(someValue)
end
else
domoticz.log ("in trigger_error", domoticz.LOG_INFO)

domoticz.log(item, domoticz.LOG_ERROR)
domoticz.log ("before openURL 3001", domoticz.LOG_INFO)
domoticz.openURL({
url = 'http://192.168.1.252:3001',
method = 'GET',
callback = 'trigger_error', -- see httpResponses above.
}).afterSec(20)
end

end

end
}
mon log:
2019-07-21 00:41:47.721 Status: dzVents: Write file: /usr/local/domoticz/var/scripts/dzVents/generated_scripts/Script #2.lua
2019-07-21 00:42:00.361 Status: dzVents: Info: ------ Start internal script: Script #2:, trigger: every 2 minutes
2019-07-21 00:42:00.362 Status: dzVents: Info: before openURL 3000
2019-07-21 00:42:00.381 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:42:00.381 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:42:23.429 Status: dzVents: Info: Handling httpResponse-events for: "trigger_test
2019-07-21 00:42:23.429 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_test"
2019-07-21 00:42:23.429 Status: dzVents: Info: after trigger_test
2019-07-21 00:42:23.429 Status: dzVents: Info: in trigger_error
2019-07-21 00:42:23.429 Status: dzVents: Info: before openURL 3001
2019-07-21 00:42:23.430 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:42:23.430 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:42:23.393 Error: Error opening url: http://192.168.1.251:3000
2019-07-21 00:42:23.429 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:42:23.429 Error: dzVents: Error: (2.4.24) {["_contentType"]="", ["isGroup"]=false, ["isHTTPResponse"]=true, ["isVariable"]=false, ["isDevice"]=false, ["baseType"]="httpResponse", ["statusText"]="Couldn't connect to server", ["protocol"]="HTTP/1.1", ["trigger"]="trigger_test", ["isJSON"]=false, ["callback"]="trigger_test", ["isSecurity"]=false, ["ok"]=false, ["statusCode"]=7, ["isScene"]=false, ["data"]="", ["headers"]={}, ["isTimer"]=false}
2019-07-21 00:42:46.507 Status: dzVents: Info: Handling httpResponse-events for: "trigger_error
2019-07-21 00:42:46.507 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_error"
2019-07-21 00:42:46.508 Status: dzVents: Info: after trigger_test
2019-07-21 00:42:46.508 Status: dzVents: Info: in trigger_error
2019-07-21 00:42:46.508 Status: dzVents: Info: before openURL 3001
2019-07-21 00:42:46.508 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:42:46.508 Status: dzVents: Info: ------ Start internal script: Script control fonctionnement mydomoAtHome: HTTPResponse: "trigger_error"
2019-07-21 00:42:46.471 Error: Error opening url: http://192.168.1.252:3001
2019-07-21 00:42:46.508 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:42:46.508 Error: dzVents: Error: (2.4.24) {["isDevice"]=false, ["data"]="", ["isGroup"]=false, ["isScene"]=false, ["trigger"]="trigger_error", ["_contentType"]="", ["isSecurity"]=false, ["isHTTPResponse"]=true, ["baseType"]="httpResponse", ["isJSON"]=false, ["isVariable"]=false, ["isTimer"]=false, ["statusCode"]=7, ["headers"]={}, ["ok"]=false, ["protocol"]="HTTP/1.1", ["statusText"]="Couldn't connect to server", ["callback"]="trigger_error"}
2019-07-21 00:42:46.509 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:42:48.201 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:42:48.170 Error: dzVents: Error: (2.4.24) {["isDevice"]=false, ["data"]="", ["isGroup"]=false, ["isScene"]=false, ["trigger"]="trigger_error", ["_contentType"]="", ["isSecurity"]=false, ["isHTTPResponse"]=true, ["baseType"]="httpResponse", ["isJSON"]=false, ["isVariable"]=false, ["isTimer"]=false, ["statusCode"]=7, ["headers"]={}, ["ok"]=false, ["protocol"]="HTTP/1.1", ["statusText"]="Couldn't connect to server", ["callback"]="trigger_error"}
2019-07-21 00:43:11.295 Status: dzVents: Info: Handling httpResponse-events for: "trigger_error
2019-07-21 00:43:11.295 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_error"
2019-07-21 00:43:11.295 Status: dzVents: Info: after trigger_test
2019-07-21 00:43:11.295 Status: dzVents: Info: in trigger_error
2019-07-21 00:43:11.295 Status: dzVents: Info: before openURL 3001
2019-07-21 00:43:11.296 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:43:11.296 Status: dzVents: Info: ------ Start internal script: Script control fonctionnement mydomoAtHome: HTTPResponse: "trigger_error"
2019-07-21 00:43:11.256 Error: Error opening url: http://192.168.1.252:3001
2019-07-21 00:43:11.295 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:43:11.295 Error: dzVents: Error: (2.4.24) {["statusText"]="Couldn't connect to server", ["headers"]={}, ["isSecurity"]=false, ["_contentType"]="", ["isDevice"]=false, ["isScene"]=false, ["isTimer"]=false, ["isHTTPResponse"]=true, ["protocol"]="HTTP/1.1", ["statusCode"]=7, ["baseType"]="httpResponse", ["trigger"]="trigger_error", ["ok"]=false, ["callback"]="trigger_error", ["isVariable"]=false, ["isGroup"]=false, ["data"]="", ["isJSON"]=false}
2019-07-21 00:43:11.296 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:43:12.984 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:43:12.950 Error: dzVents: Error: (2.4.24) {["statusText"]="Couldn't connect to server", ["headers"]={}, ["isSecurity"]=false, ["_contentType"]="", ["isDevice"]=false, ["isScene"]=false, ["isTimer"]=false, ["isHTTPResponse"]=true, ["protocol"]="HTTP/1.1", ["statusCode"]=7, ["baseType"]="httpResponse", ["trigger"]="trigger_error", ["ok"]=false, ["callback"]="trigger_error", ["isVariable"]=false, ["isGroup"]=false, ["data"]="", ["isJSON"]=false}
2019-07-21 00:43:13.022 Status: dzVents: Info: Handling httpResponse-events for: "trigger_error
2019-07-21 00:43:13.022 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_error"
2019-07-21 00:43:13.022 Status: dzVents: Info: after trigger_test
2019-07-21 00:43:13.022 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:43:13.022 Status: dzVents: Info: ------ Start internal script: Script control fonctionnement mydomoAtHome: HTTPResponse: "trigger_error"
2019-07-21 00:43:13.032 Status: dzVents: Info: ------ Finished Script control fonctionnement mydomoAtHome
2019-07-21 00:43:13.032 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:43:36.068 Status: dzVents: Info: Handling httpResponse-events for: "trigger_error
2019-07-21 00:43:36.068 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_error"
2019-07-21 00:43:36.069 Status: dzVents: Info: after trigger_test
2019-07-21 00:43:36.069 Status: dzVents: Info: in trigger_error
2019-07-21 00:43:36.069 Status: dzVents: Info: before openURL 3001
2019-07-21 00:43:36.070 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:43:36.070 Status: dzVents: Info: ------ Start internal script: Script control fonctionnement mydomoAtHome: HTTPResponse: "trigger_error"
2019-07-21 00:43:36.032 Error: Error opening url: http://192.168.1.252:3001
2019-07-21 00:43:36.069 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:43:36.069 Error: dzVents: Error: (2.4.24) {["data"]="", ["_contentType"]="", ["isHTTPResponse"]=true, ["isScene"]=false, ["isJSON"]=false, ["callback"]="trigger_error",
["protocol"]="HTTP/1.1", ["isSecurity"]=false, ["isVariable"]=false, ["statusCode"]=7, ["statusText"]="Couldn't connect to server", ["isGroup"]=false, ["headers"]={}, ["ok"]=false, ["trigger"]="trigger_error", ["isDevice"]=false, ["baseType"]="httpResponse", ["isTimer"]=false}
2019-07-21 00:43:36.070 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:43:37.766 Status: dzVents: Info: ------ Finished Script control fonctionnement mydomoAtHome
2019-07-21 00:43:37.766 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:43:37.804 Status: dzVents: Info: Handling httpResponse-events for: "trigger_error
2019-07-21 00:43:37.804 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_error"
2019-07-21 00:43:37.804 Status: dzVents: Info: after trigger_test
2019-07-21 00:43:37.805 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:43:37.805 Status: dzVents: Info: ------ Start internal script: Script control fonctionnement mydomoAtHome: HTTPResponse: "trigger_error"
2019-07-21 00:43:37.805 Status: dzVents: Info: MyDomoAtHome fonctionne correctement
2019-07-21 00:43:37.815 Status: dzVents: Info: ------ Finished Script control fonctionnement mydomoAtHome
2019-07-21 00:43:37.815 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:43:37.733 Error: dzVents: Error: (2.4.24) {["data"]="", ["_contentType"]="", ["isHTTPResponse"]=true, ["isScene"]=false, ["isJSON"]=false, ["callback"]="trigger_error",
["protocol"]="HTTP/1.1", ["isSecurity"]=false, ["isVariable"]=false, ["statusCode"]=7, ["statusText"]="Couldn't connect to server", ["isGroup"]=false, ["headers"]={}, ["ok"]=false, ["trigger"]="trigger_error", ["isDevice"]=false, ["baseType"]="httpResponse", ["isTimer"]=false}
2019-07-21 00:44:00.376 Status: dzVents: Info: ------ Start internal script: Script #2:, trigger: every 2 minutes
2019-07-21 00:44:00.377 Status: dzVents: Info: before openURL 3000
2019-07-21 00:44:00.413 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:44:00.413 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:44:00.831 Status: dzVents: Info: Handling httpResponse-events for: "trigger_error
2019-07-21 00:44:00.831 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_error"
2019-07-21 00:44:00.831 Status: dzVents: Info: after trigger_test
2019-07-21 00:44:00.831 Status: dzVents: Info: in trigger_error
2019-07-21 00:44:00.832 Status: dzVents: Info: before openURL 3001
2019-07-21 00:44:00.832 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:44:00.832 Status: dzVents: Info: ------ Start internal script: Script control fonctionnement mydomoAtHome: HTTPResponse: "trigger_error"
2019-07-21 00:44:00.794 Error: Error opening url: http://192.168.1.252:3001
2019-07-21 00:44:00.831 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:44:00.832 Error: dzVents: Error: (2.4.24) {["_contentType"]="", ["isGroup"]=false, ["isVariable"]=false, ["trigger"]="trigger_error",
["protocol"]="HTTP/1.1", ["ok"]=false, ["isTimer"]=false, ["statusText"]="Couldn't connect to server", ["isHTTPResponse"]=true, ["data"]="", ["headers"]={}, ["isJSON"]=false, ["baseType"]="httpResponse", ["isSecurity"]=false, ["isScene"]=false, ["statusCode"]=7, ["isDevice"]=false, ["callback"]="trigger_error"}
2019-07-21 00:44:00.833 Error: dzVents: Error: (2.4.24) HTTP/1.1 response: 7 ==>> Couldn't connect to server
2019-07-21 00:44:02.536 Status: dzVents: Info: ------ Finished Script control fonctionnement mydomoAtHome
2019-07-21 00:44:02.536 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:44:02.581 Status: dzVents: Info: Handling httpResponse-events for: "trigger_error
2019-07-21 00:44:02.581 Status: dzVents: Info: ------ Start internal script: Script #2: HTTPResponse: "trigger_error"
2019-07-21 00:44:02.581 Status: dzVents: Info: after trigger_test
2019-07-21 00:44:02.581 Status: dzVents: Info: ------ Finished Script #2
2019-07-21 00:44:02.581 Status: dzVents: Info: ------ Start internal script: Script control fonctionnement mydomoAtHome: HTTPResponse: "trigger_error"
2019-07-21 00:44:02.591 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2019-07-21 00:44:02.502 Error: dzVents: Error: (2.4.24) {["_contentType"]="", ["isGroup"]=false, ["isVariable"]=false, ["trigger"]="trigger_error",
["protocol"]="HTTP/1.1", ["ok"]=false, ["isTimer"]=false, ["statusText"]="Couldn't connect to server", ["isHTTPResponse"]=true, ["data"]="", ["headers"]={}, ["isJSON"]=false, ["baseType"]="httpResponse", ["isSecurity"]=false, ["isScene"]=false, ["statusCode"]=7, ["isDevice"]=false, ["callback"]="trigger_error"}
Répondre