Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers][Sujet Principal] Netatmo Pro

Pour échanger sur les plugins classés en catégorie "Objets connectés"
raphael_malin
Timide
Messages : 485
Inscription : 10 nov. 2014, 00:20
Localisation : Nouméa - Nouvelle-Calédonie

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par raphael_malin » 16 août 2017, 12:52

qu'es ce qui pose problème pour les 5min ? c'est trop?
Dans ce cas, est-il possible de faire une réactualisation toutes les 10min et si le débit n'est plus à 0 alors passage sur 5 min, puis lorsqu'il ne pleut plus et que ca revient à 0, dans ce cas retour à 10 ?
Jeedom smart avec en général toutes les mises à jour faites (système et plugin)

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 16 août 2017, 13:08

raphael_malin a écrit :
16 août 2017, 12:52
qu'es ce qui pose problème pour les 5min ? c'est trop?
Dans ce cas, est-il possible de faire une réactualisation toutes les 10min et si le débit n'est plus à 0 alors passage sur 5 min, puis lorsqu'il ne pleut plus et que ca revient à 0, dans ce cas retour à 10 ?
Les méthodes d'accès aux données ne sont pas les-mêmes ce qui impliquent de réécrire une partie du core du plugin.
J'utilise actuellement une méthode communément utilisé et mise en avant dans la documentation de l'API Netatmo
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

raphael_malin
Timide
Messages : 485
Inscription : 10 nov. 2014, 00:20
Localisation : Nouméa - Nouvelle-Calédonie

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par raphael_malin » 16 août 2017, 13:19

Ok, Je vais écrire à netatmo pour me renseigner, y'a un truc qui n'est pas cohérent dans leur fourniture de données.
Jeedom smart avec en général toutes les mises à jour faites (système et plugin)

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 16 août 2017, 13:30

raphael_malin a écrit :
16 août 2017, 13:19
Ok, Je vais écrire à netatmo pour me renseigner, y'a un truc qui n'est pas cohérent dans leur fourniture de données.
Pour ton information, j'utilise actuellement le endpoint suivant :

Code : Tout sélectionner

https://api.netatmo.com/api/getstationsdata
Il me permet de récupérer toutes les informations de tous les capteurs de la station météo en une seule requête avec un incrément de 10 minutes

Par contre, le endpoint suivant te permet de récupérer les informations d'un équipement et un seul équipement sur une plage données (début/fin) avec un incrément de 5 minutes :

Code : Tout sélectionner

https://api.netatmo.com/api/getmeasure
Je devrais faire autant d'appel que d'équipement donc plus coûteux.

Voila pourquoi le premier endpoint est mis en avant dans la documentation
De plus, cette deuxième requête ne me retourne pas les informations sur la batterie, les tendances de la température et de la pression.
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Avatar de l’utilisateur
cyrilphoenix
Timide
Messages : 435
Inscription : 28 juil. 2015, 16:46
Localisation : 71

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par cyrilphoenix » 16 août 2017, 18:31

Une idée comme ça : une case à cocher en face chaque mesure pour activer un getmeasure ?

Envoyé de mon Mi-4c en utilisant Tapatalk

Jeedom fan / NextDom fan
Mon Matos : RPI 3, NAS Synology, Xiaomi Gateway, Aeotec Gen5, Broadlink RM3, Clé BLEA
Mes plugins : FlipClock

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 10:30

cyrilphoenix a écrit :
16 août 2017, 18:31
Une idée comme ça : une case à cocher en face chaque mesure pour activer un getmeasure ?

Envoyé de mon Mi-4c en utilisant Tapatalk
Je pense faire simplement la remontée toutes les 5 minutes des informations du pluviomètre dans un premier temps. On verra si il y a un besoin fort pour les autres modules...
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Yndyana
Timide
Messages : 83
Inscription : 03 sept. 2014, 11:24

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par Yndyana » 17 août 2017, 13:55

Bonjour,

Est ce qu'avec ce nouveau plugin, au niveau de la station météo, on saurait recevoir les prévisions météo (températures, pluie) en plus des données brutes des capteurs ?
Ou au niveau fonctionnalité, pour la partie Station Météo, ce sera identique au précédent plugin ?

Après, c'est peut être l'api qui ne permet pas ça ... je n'ai pas trouvé l'info.

Merci d'avance !

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 14:32

Yndyana a écrit :
17 août 2017, 13:55
Bonjour,

Est ce qu'avec ce nouveau plugin, au niveau de la station météo, on saurait recevoir les prévisions météo (températures, pluie) en plus des données brutes des capteurs ?
Ou au niveau fonctionnalité, pour la partie Station Météo, ce sera identique au précédent plugin ?

Après, c'est peut être l'api qui ne permet pas ça ... je n'ai pas trouvé l'info.

Merci d'avance !
Les données des prévisions météo (température, pluie) sont fournies par un opérateur extérieur à Netatmo (MeteoGroup) et ne sont donc pas disponible dans l'API.
Les fonctionnalités sont quasi les-même que l'ancien plugin. Par contre, j'ai ajouté pour les commandes des équipements la gestion de la batterie et des tendances (up, down, stable) pour les températures et pression.
De plus, le design sur le dashboard est plus en accord avec les nouvelles technologies et beaucoup plus visuel.
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

DenisPac
Actif
Messages : 629
Inscription : 14 août 2014, 13:25
Localisation : Près d'Orléans (45)

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par DenisPac » 17 août 2017, 16:46

Pour info, en cherchant la cause d'une erreur "500 : Internal Server Error" affichée en haut de mon dashboard Jeedom, je me suis aperçu que j'ai pas mal de messages liés à ce plugin dans le fichier http.error :

Code : Tout sélectionner

denis@Debian:/var/www/html/log$ tail -n 50 http.error
[12-Aug-2017 11:00:05 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[12-Aug-2017 11:00:05 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[12-Aug-2017 11:00:05 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[Sun Aug 13 06:25:22.591184 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Sun Aug 13 06:25:23.588412 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Sun Aug 13 06:25:23.588450 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 14 06:25:19.631316 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Mon Aug 14 06:25:20.445559 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Mon Aug 14 06:25:20.445586 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 15 06:25:19.647677 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Tue Aug 15 06:25:20.477404 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Tue Aug 15 06:25:20.477430 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 16 06:25:20.238725 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Wed Aug 16 06:25:21.762929 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Wed Aug 16 06:25:21.762968 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 13:59:07 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 13:59:08 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 13:59:08 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 13:59:08 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[Thu Aug 17 06:25:19.966645 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Thu Aug 17 06:25:22.349304 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Thu Aug 17 06:25:22.349344 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[17-Aug-2017 07:59:46 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[17-Aug-2017 07:59:47 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[17-Aug-2017 07:59:47 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[17-Aug-2017 07:59:47 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
@Thanaus, tu me dire si c'est lié ?
Jeedom Maître sur VM Debian sur ESXi (N54L) + Z-Stick 2 (non fonctionnel) + RFXCOM
Jeedom déporté Z-Wave sur Jeedom mini avec JeeLink
Antenne RPI3 BLEA, Netatmo, Philips Hue, Xiaomi Home, Yeelight, Dash Button, ...

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 17:48

Il n'y a aucune corrélation entre ton erreur "500: Internal Server Error" et les logs de style 'PHP Notice' que tu as dans le fichier http.error.
Je pense simplement que tu as d'autres plugins "netatmo" compatible utilisant le même framework fourni par la société Netatmo. Est-ce le cas ?

Ce log indique juste que différentes constantes ont déjà été défini par le plugin 'netatmopro'. C'est un message d'information...
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

DenisPac
Actif
Messages : 629
Inscription : 14 août 2014, 13:25
Localisation : Près d'Orléans (45)

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par DenisPac » 17 août 2017, 18:08

En effet j'ai les plugins officiels Netatmo, en attendant que le tien prenne en compte l'ensemble des périphériques Netatmo disponibles (dont le thermostat et la caméra Welcome dont je suis équipé).
Bon il faut que je creuse ailleurs pour mon erreur.
Pour les messages d'info, ne serait-il pas possible qu'ils ne s'affichent pas, histoire de ne pas polluer l'analyse d'autres problèmes dans ce fichier http.error ?
Jeedom Maître sur VM Debian sur ESXi (N54L) + Z-Stick 2 (non fonctionnel) + RFXCOM
Jeedom déporté Z-Wave sur Jeedom mini avec JeeLink
Antenne RPI3 BLEA, Netatmo, Philips Hue, Xiaomi Home, Yeelight, Dash Button, ...

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 18:36

DenisPac a écrit :
17 août 2017, 18:08
En effet j'ai les plugins officiels Netatmo, en attendant que le tien prenne en compte l'ensemble des périphériques Netatmo disponibles (dont le thermostat et la caméra Welcome dont je suis équipé).
Bon il faut que je creuse ailleurs pour mon erreur.
Pour les messages d'info, ne serait-il pas possible qu'ils ne s'affichent pas, histoire de ne pas polluer l'analyse d'autres problèmes dans ce fichier http.error ?
Ces erreurs sont remontées par le moteur PHP donc compliqué de les filtrer...
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Anonyme
Actif
Messages : 10082
Inscription : 09 août 2014, 12:15

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par Anonyme » 17 août 2017, 18:50

Contenu supprimé à la demande de son auteur

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 19:18

magicgg91 a écrit :
17 août 2017, 18:50
DenisPac a écrit :
17 août 2017, 16:46
Pour info, en cherchant la cause d'une erreur "500 : Internal Server Error" affichée en haut de mon dashboard Jeedom, je me suis aperçu que j'ai pas mal de messages liés à ce plugin dans le fichier http.error :

Code : Tout sélectionner

denis@Debian:/var/www/html/log$ tail -n 50 http.error
[12-Aug-2017 11:00:05 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[12-Aug-2017 11:00:05 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[12-Aug-2017 11:00:05 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[Sun Aug 13 06:25:22.591184 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Sun Aug 13 06:25:23.588412 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Sun Aug 13 06:25:23.588450 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 14 06:25:19.631316 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Mon Aug 14 06:25:20.445559 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Mon Aug 14 06:25:20.445586 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 15 06:25:19.647677 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Tue Aug 15 06:25:20.477404 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Tue Aug 15 06:25:20.477430 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 16 06:25:20.238725 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Wed Aug 16 06:25:21.762929 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Wed Aug 16 06:25:21.762968 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 11:42:55 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 13:59:07 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 13:59:08 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 13:59:08 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 13:59:08 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 15:28:01 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 17:04:01 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[16-Aug-2017 20:14:41 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[Thu Aug 17 06:25:19.966645 2017] [mpm_prefork:notice] [pid 916] AH00171: Graceful restart requested, doing restart
[Thu Aug 17 06:25:22.349304 2017] [mpm_prefork:notice] [pid 916] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Thu Aug 17 06:25:22.349344 2017] [core:notice] [pid 916] AH00094: Command line: '/usr/sbin/apache2'
[17-Aug-2017 07:59:46 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[17-Aug-2017 07:59:47 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[17-Aug-2017 07:59:47 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[17-Aug-2017 07:59:47 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[17-Aug-2017 10:27:19 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_BASE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 14
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_SERVICES_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 15
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
@Thanaus, tu me dire si c'est lié ?
thanaus a écrit :
17 août 2017, 17:48
Il n'y a aucune corrélation entre ton erreur "500: Internal Server Error" et les logs de style 'PHP Notice' que tu as dans le fichier http.error.
Je pense simplement que tu as d'autres plugins "netatmo" compatible utilisant le même framework fourni par la société Netatmo. Est-ce le cas ?

Ce log indique juste que différentes constantes ont déjà été défini par le plugin 'netatmopro'. C'est un message d'information...
Regarde bien la log stp !

On voit bien que le chemin est pour le plugin qui a pour id netatmopro !!!

Pas besoin d'incriminer les autres plugins, qui n'ont pas d'erreur eux !
Bonjour @magicgg91

J'ai bien regardé la lecture du log et elle est très simple. Il indique qu'un plugin autre que le mien charge les mêmes constantes qui ont été auparavant chargé par mon plugin. Il n'indique pas du tout que mon plugin charge ces constantes d'une mauvaise manière.

Code : Tout sélectionner

[17-Aug-2017 16:19:44 Europe/Brussels] PHP Notice:  Constant BACKEND_ACCESS_TOKEN_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 16
Pourquoi avoir ces logs maintenant quand on active mon plugin ? La raison est toute simple : les autres plugins n'ont pas mis à jour le framework fourni par Netatmo qui charge de manière automatique les constantes et fonctions (autoload). Pour exemple le plugin netatmoWeather...

Pour corriger ce log, je ne devrais pas utiliser ce framework et utiliser l'ancienne version ?
Une raison de plus pour regrouper tous les modules Netatmo en un seul plugin.
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 19:21

sarakha63 a écrit :
17 août 2017, 18:52
@thanaus. La c'est à toi de charger intelligemment les constantes.

Pour.info tous les autres plugins.netatmo utilise la même lib et entre eux ils se marchent pas sur les pieds.

Ils seraient bon de faire la même chose sur le tien
Bonjour sarakha63,

Même réponse que pour le post précédent. Je pense que vous utilisez des anciennes version du framework Netatmo sans autoload d'ou ces logs qui ne proviennent pas de mon plugin (même si il est cité dans le log) mais des autres plugins.
Je dois donc ne pas utiliser la dernière version du framework ?
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Anonyme
Actif
Messages : 10082
Inscription : 09 août 2014, 12:15

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par Anonyme » 17 août 2017, 19:22

Contenu supprimé à la demande de son auteur

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 19:27

magicgg91 a écrit :
17 août 2017, 19:22
Je me fie juste à ce que je lis, je ne suis pas développeur et ne comprends pas toujours tout dans les logs.

Dire que le problème vient d'un autre plugin alors qu'on voit l'id de TON plugin, je trouve juste ça fort ...

Comme le dit sarakha63, les autres plugins Netatmo ne se télescopent pas... et ne provoquent aucune erreur dans les logs.

Après, et je le redis, je ne suis pas développeur, et ne vois pas d'où ça vient.
Je pense avoir posé le problème et bien indiqué le pourquoi du comment.
Les autres plugins utilisent une ancienne version du framework contrairement à moi sur mon plugin qui à la dernière version à jour et utiliser les fonctionnalités fournies par php.

Comme tu le soulignes, tu n'es pas développeur et tu ne réponds à aucune de mes questions.
Que dois-je faire ?
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Anonyme
Actif
Messages : 10082
Inscription : 09 août 2014, 12:15

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par Anonyme » 17 août 2017, 19:36

Contenu supprimé à la demande de son auteur

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par thanaus » 17 août 2017, 19:41

magicgg91 a écrit :
17 août 2017, 19:36
Je ne suis pas développeur, mais je ne suis pas con pour autant ...

J'ai bien lu ta réponse, mais pour l'instant, je crois ce que je vois.
Après, tu as peut-être raison, et je laisserais sarakha63 te répondre ...
J'ai toujours été courtois envers toi et je ne t'ai pas traité de c-n.

Code : Tout sélectionner

Constant BACKEND_AUTHORIZE_URI already defined in /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php on line 17
Cette ligne indique que la constante BACKEND_AUTHORIZE_URI a déjà été défini (already defined) par le fichier /var/www/html/plugins/netatmopro/3rparty/Netatmo-API-PHP/src/Netatmo/Clients/NAApiClient.php en ligne 17.
C'est donc qu'un autre plugin essaye aussi de charger cette constante mais que le processeur php indique qu'elle a déjà été chargé.

Pour info, mon prénom est 'Thomas' et je ne crois aussi que ce que je vois ;-) On est deux !
J'attend aussi pour ma part un retour de sarakha63...
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Anonyme
Actif
Messages : 10082
Inscription : 09 août 2014, 12:15

Re: [Plugin Tiers][Sujet Principal] Netatmo Pro

Message par Anonyme » 17 août 2017, 19:45

Contenu supprimé à la demande de son auteur

Répondre

Revenir vers « [Catégorie] Objets connectés »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 16 invités