merci pour tout cet amour … si j’avais fait un nouveau post, on m’aurait dit qu’il y avait déjà 2 sujet ouvert, c’est vrai que ces sujet ne brille pas par leurs info, mais fournir des log vide, je ne voit pas l’interet, mais soit …
[2025-06-27 20:27:42] INFO : Refresh routes pour: waze
[2025-06-27 20:27:42] DEBUG : routeURL: https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxat=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At
[2025-06-27 20:27:42] DEBUG : requete 1: com_http Object ( [url:com_http:private] => https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxat=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At [username:com_http:private] => [password:com_http:private] => [logError:com_http:private] => [ping:com_http:private] => [noSslCheck:com_http:private] => 1 [sleepTime:com_http:private] => 500000 [post:com_http:private] => [put:com_http:private] => [patch:com_http:private] => [delete:com_http:private] => [header:com_http:private] => Array ( [0] => Connection: close ) [cookiesession:com_http:private] => [allowEmptyReponse:com_http:private] => [noReportError:com_http:private] => [userAgent:com_http:private] => User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 referer: https://www.waze.com [CURLOPT_HTTPAUTH:com_http:private] => [CURLOPT:com_http:private] => Array ( ) [getinfo:com_http:private] => [streamHeaders:com_http:private] => Array ( ) )
[2025-06-27 20:27:43] DEBUG : raw data:null
[2025-06-27 20:27:43] DEBUG : routeURL: https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxat=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At
[2025-06-27 20:27:43] DEBUG : requete 2: com_http Object ( [url:com_http:private] => https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxat=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At [username:com_http:private] => [password:com_http:private] => [logError:com_http:private] => [ping:com_http:private] => [noSslCheck:com_http:private] => 1 [sleepTime:com_http:private] => 500000 [post:com_http:private] => [put:com_http:private] => [patch:com_http:private] => [delete:com_http:private] => [header:com_http:private] => Array ( [0] => Connection: close ) [cookiesession:com_http:private] => [allowEmptyReponse:com_http:private] => [noReportError:com_http:private] => [userAgent:com_http:private] => User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 referer: https://www.waze.com [CURLOPT_HTTPAUTH:com_http:private] => [CURLOPT:com_http:private] => Array ( ) [getinfo:com_http:private] => [streamHeaders:com_http:private] => Array ( ) )
[2025-06-27 20:27:43] DEBUG : raw data:null
[2025-06-27 20:27:43] DEBUG : Data: Array ( [routename1] => NA [routename2] => NA [routename3] => NA [time1] => 0 [time2] => 0 [time3] => 0 [routeretname1] => NA [routeretname2] => NA [routeretname3] => NA [timeret1] => 0 [timeret2] => 0 [timeret3] => 0 )
voila un log qui fait strictement que qui a été expliqué avant, data null, je ne pense pas que cela va aider, mais bon, j’aime donner du plaisir au gent ^^…
j’ai ajouté un log pour vérifier si la requête est bien formulé, et c’est le cas
En ce qui concerne le cron, je l’ai modifié il y a très longtemps et il s’exécute une fois par an. Et je lance un refresh uniquement quand je pars du travail, et 45 minutes plus tard
En comparant avec un requête qui fonctionne, il n’y a aucune différence, mis a part la data et le temps de réponse, vide = instantané, plein=5-6s:
[2025-06-28 09:33:12] INFO : Refresh routes pour: waze
[2025-06-28 09:33:12] DEBUG : routeURL: https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&at=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At
[2025-06-28 09:33:12] DEBUG : requete 1: com_http Object ( [url:com_http:private] => https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxat=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At [username:com_http:private] => [password:com_http:private] => [logError:com_http:private] => [ping:com_http:private] => [noSslCheck:com_http:private] => 1 [sleepTime:com_http:private] => 500000 [post:com_http:private] => [put:com_http:private] => [patch:com_http:private] => [delete:com_http:private] => [header:com_http:private] => Array ( [0] => Connection: close ) [cookiesession:com_http:private] => [allowEmptyReponse:com_http:private] => [noReportError:com_http:private] => [userAgent:com_http:private] => User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 referer: https://www.waze.com [CURLOPT_HTTPAUTH:com_http:private] => [CURLOPT:com_http:private] => Array ( ) [getinfo:com_http:private] => [streamHeaders:com_http:private] => Array ( ) )
[2025-06-28 09:33:23] DEBUG : raw data:{"alternatives":[{"response":{"results":[xxxxxxxxxxxxxxxxxxxxxxxxxx
[2025-06-28 09:33:23] DEBUG : routeURL: https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxat=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At
[2025-06-28 09:33:23] DEBUG : requete 2: com_http Object ( [url:com_http:private] => https://www.waze.com/row-RoutingManager/routingRequest?from=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxat=0&returnJSON=true&returnGeometries=true&returnInstructions=true&timeout=60000&nPaths=3&options=AVOID_TRAILS%3At [username:com_http:private] => [password:com_http:private] => [logError:com_http:private] => [ping:com_http:private] => [noSslCheck:com_http:private] => 1 [sleepTime:com_http:private] => 500000 [post:com_http:private] => [put:com_http:private] => [patch:com_http:private] => [delete:com_http:private] => [header:com_http:private] => Array ( [0] => Connection: close ) [cookiesession:com_http:private] => [allowEmptyReponse:com_http:private] => [noReportError:com_http:private] => [userAgent:com_http:private] => User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 referer: https://www.waze.com [CURLOPT_HTTPAUTH:com_http:private] => [CURLOPT:com_http:private] => Array ( ) [getinfo:com_http:private] => [streamHeaders:com_http:private] => Array ( ) )
[2025-06-28 09:33:35] DEBUG : raw data:{"alternatives":[{"response":{"results":[xxxxxxxxxxxxxxxxxxxxxxxxxxxx]
[2025-06-28 09:33:35] DEBUG : Data: Array ( [routename1] => D402 [routename2] => D201 [routename3] => D209 [time1] => 65 [time2] => 65 [time3] => 69 [routeretname1] => D402 [routeretname2] => D12 [routeretname3] => A5 [timeret1] => 65 [timeret2] => 67 [timeret3] => 68 )
ce cas avec un retour sur les 2 requête est très rare, en général quand j’ai de la donnée, je l’ai soit sur la requête de l’aller, soit du retours, c’est la 1ere fois que je capture un log avec les 2.
J’ai vérifié le http.error, est vide
Version Jeedom 4.4.19
Version OS debian 11.11
Version PHP 7.4.33
$json = json_decode($request_http->exec(60, 2), true);
Je n’ai pas compris cette partie du code, et je ne trouve rien sur le net, mais je suppose que 60 est un timeout er 2 un retry, je ne suis pas sur mais j’ai eu l’impression qu’en changeant ces valeurs cela avait un incidence en bien ou en mal suivant les valeurs.