From 773991627470f2a66bfef73572a7cb4cbf6b3265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric?= Date: Sat, 21 Apr 2018 11:56:43 -0400 Subject: [PATCH 1/2] Remplacement serial par pyserial --- ressources/install_apt.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ressources/install_apt.sh b/ressources/install_apt.sh index 6e02af3..dfea2ef 100644 --- a/ressources/install_apt.sh +++ b/ressources/install_apt.sh @@ -38,7 +38,8 @@ echo 30 > ${PROGRESS_FILE} #pip_install python-ftdi1 echo 40 > ${PROGRESS_FILE} echo "Installation de la librairie serial" -pip_install serial +#pip_install serial +pip_install pypserial echo 50 > ${PROGRESS_FILE} echo "Mise à jour de cmdline ou inittab suivant système" if [ -e /dev/ttyAMA0 ]; then From 14db1e6a4254ab0daef2d11530b5385b071b2505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric?= Date: Sat, 21 Apr 2018 12:11:32 -0400 Subject: [PATCH 2/2] Uninstall serial install pyserial --- plugin_info/info.json | 2 +- ressources/install_apt.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin_info/info.json b/plugin_info/info.json index c4b308a..a200671 100644 --- a/plugin_info/info.json +++ b/plugin_info/info.json @@ -15,5 +15,5 @@ }, "changelog" : "https://Jeedom-Plugins-Extra.github.io/plugin-teleinfo/#language#/changelog", "documentation" : "https://Jeedom-Plugins-Extra.github.io/plugin-teleinfo/#language#/", - "pluginVersion" : "2.7.1" + "pluginVersion" : "2.7.2" } diff --git a/ressources/install_apt.sh b/ressources/install_apt.sh index dfea2ef..9cf87ec 100644 --- a/ressources/install_apt.sh +++ b/ressources/install_apt.sh @@ -39,7 +39,9 @@ echo 30 > ${PROGRESS_FILE} echo 40 > ${PROGRESS_FILE} echo "Installation de la librairie serial" #pip_install serial -pip_install pypserial +sudo pip uninstall -y serial +#apt_install python-serial +pip_install pyserial echo 50 > ${PROGRESS_FILE} echo "Mise à jour de cmdline ou inittab suivant système" if [ -e /dev/ttyAMA0 ]; then