Script ICO

Tu peux me filer un acces par mp le temps que je regarde ?

en fait il faut enlever l’affichage personnalisé pour avoir l’état du signal:

wifi

mais il est 0 , ne remonte pas .

Pas grave , je vais garder l’affichage personnalisé.

Ce matin dans le log cron execution ce log se répète à l’infini :

PHP Notice:  Undefined index: expires_in in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 76
PHP Notice:  Undefined index: access_token in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 77
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 364
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 375
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'value' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 364
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 375
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'value' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'title' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 266
PHP Warning:  Illegal string offset 'message' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 267
PHP Warning:  Illegal string offset 'title' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 266
PHP Warning:  Illegal string offset 'message' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 267
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 364
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 375
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'value' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 364
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 375
PHP Warning:  Illegal string offset 'data_type' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'value' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 394
PHP Warning:  Illegal string offset 'title' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 266
PHP Warning:  Illegal string offset 'message' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 267
PHP Warning:  Illegal string offset 'title' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 266
PHP Warning:  Illegal string offset 'message' in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 267
PHP Notice:  Undefined index: expires_in in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 76
PHP Notice:  Undefined index: access_token in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 77
PHP Notice:  Undefined index: expires_in in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 76
PHP Notice:  Undefined index: access_token in /var/www/html/plugins/ondilo/core/class/ondilo.class.php on line 77

Pour un accès pas de soucis, tu veux passer par l’accès Jeedom ou via un autre outils ?

Jeedom, envoi un mp

Même chose pour moi le signal est à 0. J’ai pourtant réinstallé et resynchro sans succès.

Un message a été scindé en un nouveau sujet : Niveau de batterie et recommandations

Ce que je vous propose, car la j’ai du mal a suivre dans le fil.

  1. Valider la beta,
  2. Passage en stable ce qui va me permettre d’avoir un tag pour le plugin,
  3. Faire évoluer le plugin en fonction de vos besoins.

Est ce que ca vous va ? car nous sommes en train de faire un sujet à rallonge en mélangeant script et plugin.

1 « J'aime »

Oui bonne idée @Hotfirenet

Oui c est mieux

Oui , c’est le meilleur scénario. Procédons par étapes ,
cela évite de partir dans tous les sens . :hugs:

Pour info le plugin a été accepté en stable. Je vous invite pour toutes demandes d’évolutions ou signalements de bugs (oui ça va arriver :wink: ) à ouvrir un sujet dans la catégorie Monitoring en utilisant le tag plugin-ondilo. Merci à vous.

1 « J'aime »

Salut, tu as rajouté date et heure du dernier relevé dans ta dernière maj, bonne idée !

@Hotfirenet

Salut, ton plugin est parfait, mais je continu à utiliser mon script car il me permet d’envoyer directement mes valeurs à mon IPX800 en meme temps que je récupère les valeurs d’ico.

J’ai cependant un problème, tous les 15 jours, le refresh token est réinitialiser par ONDILO, et il faut refaire toute la procédure pour l’obtenir… mon script ne l’inclut pas… donc c’est manuel.

Comment as tu géré ceci dans ton plugin ?

Merci

en utilisant le principe du refresh token. Bon courage sur l’ipx ca doit pouvoir se faire.

Et pas de soucis de réfresh token au bout de 15 jours ?

non non, pas de problèmes particuliers

te serai t’il possible regarder mon script afin de voir si qq chose te choque ?

a première vue rien de bien particulier, pour le plugin j’ai vraiment utilisé le principe de fonctionnement de l’oauth 2.

Toi tu pars de token deja généré.

Peux tu m en dire plus sur le principe de fonctionnement de l oauth 2 ?

C est à dire je par du token déjà généré ? Je génère un refresh token… quel différence avec toi ?

Je débute…

Merci à toi.

Pour info, le refresh token est passé d’une durée de validité de 15 jours à 10 ans.

Cependant, je ne comprend toujours pas comment tu n’as pas été embêter par cela… a moins de refaire une demande de refresh token régulièrement…