Re: [Plugin Tiers] Plugin Téléinfo
Publié : 03 avr. 2019, 10:36
Forum sur Jeedom
https://www.jeedom.com/forum/
Le truc je n'ai rien paramétré de spécial, ce sont les réglages de bases. je vois pas comment changer ça.
Et un lissage Maximum sur les index serait problématique?ticed35 a écrit : ↑03 avr. 2019, 16:02@Darkeyes, tu peux changer la commande papp avec un lissage moyenne cela sera suffisant.
J'ai effectué les modifications pour que ce soit automatiquement fait dans la prochaine version.
Je suis en train de réfléchir a une méthode pour garder les bonnes valeurs mais avec moins d'information.
Bonjour,ticed35 a écrit : ↑03 avr. 2019, 16:02@Darkeyes, tu peux changer la commande papp avec un lissage moyenne cela sera suffisant.
J'ai effectué les modifications pour que ce soit automatiquement fait dans la prochaine version.
Je suis en train de réfléchir a une méthode pour garder les bonnes valeurs mais avec moins d'information.
Merci pour les réponses et les futures évolutions.ticed35 a écrit : ↑04 avr. 2019, 17:51@cadavor, cela peux poser des soucis dans le calcul de la journée et jour antérieur.
Je suis en train de travailler sur une page de monitoring des valeurs afin de donner la possibilité de maintenance.
@Darkeyes, en effet il y a plusieurs commandes qui peuvent remplir l'historique très rapidement. La page de monitoring va aider cela.
Cela va ressembler à un truc comme ça :
2019-04-04_115032.png
Bonjour,ticed35 a écrit : ↑05 avr. 2019, 13:12@Darkeyes, sauf si tu sais comment ne garder qu'une valeur par heure je te conseille d'attendre la version 4.4.0 qui te permettra de le faire simplement.
En fonction de la branche que tu as elle sera disponible dans plus ou moins longtemps. En beta dans la soirée, stable milieu / fin de semaine prochaine.
Code : Tout sélectionner
[2019-04-05 11:49:08][INFO] : GLOBAL------Start teleinfod
[2019-04-05 11:49:08][INFO] : GLOBAL------Cycle Sommeil : 0.5
[2019-04-05 11:49:08][INFO] : GLOBAL------Socket port : 55062
[2019-04-05 11:49:08][INFO] : GLOBAL------Socket host : 127.0.0.1
[2019-04-05 11:49:08][INFO] : GLOBAL------Log level : debug
[2019-04-05 11:49:08][INFO] : GLOBAL------Callback : http://127.0.0.1:80/plugins/teleinfo/core/php/jeeTeleinfo.php
[2019-04-05 11:49:08][INFO] : GLOBAL------Vitesse : 1200
[2019-04-05 11:49:08][INFO] : GLOBAL------Apikey : se1TVaiOE18WLxpihFZqCCxtyj3WHaLv
[2019-04-05 11:49:08][INFO] : GLOBAL------Cycle : 0.3
[2019-04-05 11:49:08][INFO] : GLOBAL------Port : /dev/ttyUSB1
[2019-04-05 11:49:08][INFO] : GLOBAL------Mode : historique
[2019-04-05 11:49:08][DEBUG] : Writing PID 1803 to /tmp/jeedom/teleinfo/teleinfo2cpt.pid
[2019-04-05 11:49:08][DEBUG] : Init request module v2.12.4
[2019-04-05 11:49:08][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-05 11:49:08][DEBUG] : http://127.0.0.1:80 "GET /plugins/teleinfo/core/php/jeeTeleinfo.php?apikey=se1TVaiOE18WLxpihFZqCCxtyj3WHaLv HTTP/1.1" 200 0
[2019-04-05 11:49:08][DEBUG] : Socket interface started
[2019-04-05 11:49:08][DEBUG] : LoopNetServer Thread started
[2019-04-05 11:49:08][DEBUG] : Listening on: [127.0.0.1:55062]
[2019-04-05 11:49:08][INFO] : GLOBAL------Start listening...
[2019-04-05 11:49:08][INFO] : GLOBAL------Preparing Teleinfo...
[2019-04-05 11:49:08][DEBUG] : GLOBAL------Read Socket Thread Launched
[2019-04-05 11:49:08][INFO] : TELEINFO------Initialisation de la teleinfo
[2019-04-05 11:49:08][INFO] : TELEINFO------FTDI TYPE : 1
[2019-04-05 11:49:08][DEBUG] : Lecture des donnees
[2019-04-05 11:49:51][INFO] : GLOBAL------Passage des logs en normal
[2019-04-05 12:00:01][ERROR] : Can't read data (-9, usb bulk read failed)
Error:
'module' object has no attribute 'close'
[2019-04-05 12:03:13][INFO] : GLOBAL------Start teleinfod
[2019-04-05 12:03:13][INFO] : GLOBAL------Cycle Sommeil : 0.5
[2019-04-05 12:03:13][INFO] : GLOBAL------Socket port : 55062
[2019-04-05 12:03:13][INFO] : GLOBAL------Socket host : 127.0.0.1
[2019-04-05 12:03:13][INFO] : GLOBAL------Log level : debug
[2019-04-05 12:03:13][INFO] : GLOBAL------Callback : http://127.0.0.1:80/plugins/teleinfo/core/php/jeeTeleinfo.php
[2019-04-05 12:03:13][INFO] : GLOBAL------Vitesse : 1200
[2019-04-05 12:03:13][INFO] : GLOBAL------Apikey : se1TVaiOE18WLxpihFZqCCxtyj3WHaLv
[2019-04-05 12:03:13][INFO] : GLOBAL------Cycle : 0.3
[2019-04-05 12:03:13][INFO] : GLOBAL------Port : /dev/ttyUSB1
[2019-04-05 12:03:13][INFO] : GLOBAL------Mode : historique
[2019-04-05 12:03:13][DEBUG] : Writing PID 2109 to /tmp/jeedom/teleinfo/teleinfo2cpt.pid
[2019-04-05 12:03:13][DEBUG] : Init request module v2.12.4
[2019-04-05 12:03:13][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-05 12:03:13][DEBUG] : http://127.0.0.1:80 "GET /plugins/teleinfo/core/php/jeeTeleinfo.php?apikey=se1TVaiOE18WLxpihFZqCCxtyj3WHaLv HTTP/1.1" 200 0
[2019-04-05 12:03:13][DEBUG] : Socket interface started
[2019-04-05 12:03:13][DEBUG] : LoopNetServer Thread started
[2019-04-05 12:03:13][DEBUG] : Listening on: [127.0.0.1:55062]
[2019-04-05 12:03:13][INFO] : GLOBAL------Start listening...
[2019-04-05 12:03:13][INFO] : GLOBAL------Preparing Teleinfo...
[2019-04-05 12:03:13][DEBUG] : GLOBAL------Read Socket Thread Launched
[2019-04-05 12:03:13][INFO] : TELEINFO------Initialisation de la teleinfo
[2019-04-05 12:03:13][INFO] : TELEINFO------FTDI TYPE : 1
[2019-04-05 12:03:13][DEBUG] : Lecture des donnees
[2019-04-05 12:03:48][INFO] : GLOBAL------Passage des logs en normal
[2019-04-05 12:11:32][INFO] : GLOBAL------Start teleinfod
[2019-04-05 12:11:32][INFO] : GLOBAL------Cycle Sommeil : 0.5
[2019-04-05 12:11:32][INFO] : GLOBAL------Socket port : 55062
[2019-04-05 12:11:32][INFO] : GLOBAL------Socket host : 127.0.0.1
[2019-04-05 12:11:32][INFO] : GLOBAL------Log level : debug
[2019-04-05 12:11:32][INFO] : GLOBAL------Callback : http://127.0.0.1:80/plugins/teleinfo/core/php/jeeTeleinfo.php
[2019-04-05 12:11:32][INFO] : GLOBAL------Vitesse : 1200
[2019-04-05 12:11:32][INFO] : GLOBAL------Apikey : se1TVaiOE18WLxpihFZqCCxtyj3WHaLv
[2019-04-05 12:11:32][INFO] : GLOBAL------Cycle : 0.3
[2019-04-05 12:11:32][INFO] : GLOBAL------Port : /dev/ttyUSB1
[2019-04-05 12:11:32][INFO] : GLOBAL------Mode : historique
[2019-04-05 12:11:32][DEBUG] : Writing PID 2433 to /tmp/jeedom/teleinfo/teleinfo2cpt.pid
[2019-04-05 12:11:32][DEBUG] : Init request module v2.12.4
[2019-04-05 12:11:32][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-05 12:11:32][DEBUG] : http://127.0.0.1:80 "GET /plugins/teleinfo/core/php/jeeTeleinfo.php?apikey=se1TVaiOE18WLxpihFZqCCxtyj3WHaLv HTTP/1.1" 200 0
[2019-04-05 12:11:32][DEBUG] : Socket interface started
[2019-04-05 12:11:32][DEBUG] : LoopNetServer Thread started
[2019-04-05 12:11:32][INFO] : GLOBAL------Start listening...
[2019-04-05 12:11:32][DEBUG] : Listening on: [127.0.0.1:55062]
[2019-04-05 12:11:32][INFO] : GLOBAL------Preparing Teleinfo...
[2019-04-05 12:11:32][DEBUG] : GLOBAL------Read Socket Thread Launched
[2019-04-05 12:11:32][INFO] : TELEINFO------Initialisation de la teleinfo
[2019-04-05 12:11:32][INFO] : TELEINFO------FTDI TYPE : 1
[2019-04-05 12:11:32][DEBUG] : Lecture des donnees
[2019-04-05 12:13:07][INFO] : GLOBAL------Passage des logs en normal
[2019-04-05 12:16:38][INFO] : GLOBAL------Start teleinfod
[2019-04-05 12:16:38][INFO] : GLOBAL------Cycle Sommeil : 0.5
[2019-04-05 12:16:38][INFO] : GLOBAL------Socket port : 55062
[2019-04-05 12:16:38][INFO] : GLOBAL------Socket host : 127.0.0.1
[2019-04-05 12:16:38][INFO] : GLOBAL------Log level : debug
[2019-04-05 12:16:38][INFO] : GLOBAL------Callback : http://127.0.0.1:80/plugins/teleinfo/core/php/jeeTeleinfo.php
[2019-04-05 12:16:38][INFO] : GLOBAL------Vitesse : 1200
[2019-04-05 12:16:38][INFO] : GLOBAL------Apikey : se1TVaiOE18WLxpihFZqCCxtyj3WHaLv
[2019-04-05 12:16:38][INFO] : GLOBAL------Cycle : 0.3
[2019-04-05 12:16:38][INFO] : GLOBAL------Port : /dev/ttyUSB1
[2019-04-05 12:16:38][INFO] : GLOBAL------Mode : historique
[2019-04-05 12:16:38][DEBUG] : Writing PID 3332 to /tmp/jeedom/teleinfo/teleinfo2cpt.pid
[2019-04-05 12:16:38][DEBUG] : Init request module v2.12.4
[2019-04-05 12:16:38][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-05 12:16:38][DEBUG] : http://127.0.0.1:80 "GET /plugins/teleinfo/core/php/jeeTeleinfo.php?apikey=se1TVaiOE18WLxpihFZqCCxtyj3WHaLv HTTP/1.1" 200 0
[2019-04-05 12:16:39][DEBUG] : Socket interface started
[2019-04-05 12:16:39][DEBUG] : LoopNetServer Thread started
[2019-04-05 12:16:39][INFO] : GLOBAL------Start listening...
[2019-04-05 12:16:39][DEBUG] : Listening on: [127.0.0.1:55062]
[2019-04-05 12:16:39][INFO] : GLOBAL------Preparing Teleinfo...
[2019-04-05 12:16:39][DEBUG] : GLOBAL------Read Socket Thread Launched
[2019-04-05 12:16:39][INFO] : TELEINFO------Initialisation de la teleinfo
[2019-04-05 12:16:39][INFO] : TELEINFO------FTDI TYPE : 1
[2019-04-05 12:16:39][DEBUG] : Lecture des donnees
[2019-04-05 12:17:35][INFO] : GLOBAL------Passage des logs en normal
Code : Tout sélectionner
Lancement de l'installation/mise à jour des dépendances Téléinfo
Raffraichissement du système
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
Installation de la librairie ftdi pour modem 2 compteurs
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python-ftdi
Reading package lists...
Building dependency tree...
Reading state information...
python-ftdi1 is already the newest version (1.3-2).
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pylibftdi in /usr/local/lib/python2.7/dist-packages (0.17.0)
Installation de la librairie serial
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Skipping serial as it is not installed.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyserial in /usr/local/lib/python2.7/dist-packages (3.4)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (2.12.4)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyudev in /usr/local/lib/python2.7/dist-packages (0.21.0)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from pyudev) (1.10.0)
Mise à jour de cmdline ou inittab suivant système
Désactivation de la sortie serie vers la console
Everything is successfully installed!