Bonjour,
J'ai voulu installer le plugin sur une autre config.
Le Démon ne ce lance pas :
Le log blea_local donne :
Code : Tout sélectionner
[2016-12-30 17:35:04][INFO] : Start blead
[2016-12-30 17:35:04][INFO] : Log level : info
[2016-12-30 17:35:04][INFO] : Socket port : 55008
[2016-12-30 17:35:04][INFO] : Socket host : 127.0.0.1
[2016-12-30 17:35:04][INFO] : Device : hci0
[2016-12-30 17:35:04][INFO] : PID file : /tmp/blead.pid
[2016-12-30 17:35:04][INFO] : Apikey : **************************************************
[2016-12-30 17:35:04][INFO] : Callback : http://127.0.0.1:80/plugins/blea/core/php/jeeBlea.php
[2016-12-30 17:35:04][INFO] : Cycle : 0.3
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.dotti
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.fitbit
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.gigaset
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.hector
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.itag
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.jinlin
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.logiswitch
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.miband
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.miflora
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.miscale
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.myfox
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.niu
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.nut
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.playbulb
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.smartplug
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.ticatag
[2016-12-30 17:35:04][INFO] : Import de la configuration devices.wistiki
[2016-12-30 17:35:04][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2016-12-30 17:35:05][INFO] : Start listening...
[2016-12-30 17:35:05][INFO] : Preparing Scanner...
[2016-12-30 17:35:05][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2016-12-30 17:35:05][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2016-12-30 17:35:05][WARNING] : Exception on scanner (trying to resolve by myself 6): Failed to execute mgmt cmd 'le on'
[2016-12-30 17:35:05][WARNING] : Exception on scanner (trying to resolve by myself 7): Failed to execute mgmt cmd 'le on'
[2016-12-30 17:35:05][WARNING] : Exception on scanner (trying to resolve by myself 8): Failed to execute mgmt cmd 'le on'
[2016-12-30 17:35:05][ERROR] : Exception on scanner (didn't resolve there is an issue with bluetooth) : Failed to execute mgmt cmd 'le on'
[2016-12-30 17:35:05][INFO] : Shutting down due to errors
[2016-12-30 17:35:05][INFO] : Starting new HTTP connection (1): 127.0.0.1
Les dépendances ce sont installées sans problème particulier :
Code : Tout sélectionner
Launch install of blea dependancy
Hit http://security.debian.org jessie/updates InRelease
Ign http://http.us.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://http.us.debian.org jessie Release.gpg
Ign http://httpredir.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Hit http://httpredir.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Hit http://http.us.debian.org jessie Release
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://httpredir.debian.org jessie-backports InRelease
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://httpredir.debian.org jessie Release.gpg
Hit http://apt.armbian.com jessie InRelease
Hit http://httpredir.debian.org jessie Release
Get:1 http://httpredir.debian.org jessie-updates/main armhf Packages/DiffIndex [6916 B]
Hit http://httpredir.debian.org jessie-updates/contrib armhf Packages
Hit http://http.us.debian.org jessie/non-free armhf Packages
Get:2 http://httpredir.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Hit http://httpredir.debian.org jessie-updates/contrib Translation-en
Hit http://http.us.debian.org jessie/non-free Translation-en
Get:3 http://httpredir.debian.org jessie-updates/main Translation-en/DiffIndex [2704 B]
Get:4 http://httpredir.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Get:5 http://httpredir.debian.org jessie-backports/main armhf Packages/DiffIndex [27.8 kB]
Hit http://apt.armbian.com jessie/main armhf Packages
Get:6 http://httpredir.debian.org jessie-backports/contrib armhf Packages/DiffIndex [23.1 kB]
Hit http://apt.armbian.com jessie/utils armhf Packages
Get:7 http://httpredir.debian.org jessie-backports/non-free armhf Packages/DiffIndex [6070 B]
Hit http://apt.armbian.com jessie/jessie-desktop armhf Packages
Get:8 http://httpredir.debian.org jessie-backports/contrib Translation-en/DiffIndex [6484 B]
Get:9 http://apt.armbian.com jessie/jessie-desktop Translation-en [178 B]
Get:10 http://apt.armbian.com jessie/main Translation-en [178 B]
Get:11 http://httpredir.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:12 http://httpredir.debian.org jessie-backports/non-free Translation-en/DiffIndex [12.2 kB]
Hit http://httpredir.debian.org jessie/main armhf Packages
Hit http://httpredir.debian.org jessie/contrib armhf Packages
Get:13 http://apt.armbian.com jessie/utils Translation-en [178 B]
Get:14 http://apt.armbian.com jessie/jessie-desktop Translation-en [178 B]
Hit http://httpredir.debian.org jessie/non-free armhf Packages
Hit http://httpredir.debian.org jessie/contrib Translation-en
Get:15 http://apt.armbian.com jessie/main Translation-en [178 B]
Hit http://httpredir.debian.org jessie/non-free Translation-en
Hit http://httpredir.debian.org jessie/main Translation-en
Get:16 http://apt.armbian.com jessie/utils Translation-en [178 B]
Get:17 http://apt.armbian.com jessie/jessie-desktop Translation-en [178 B]
Get:18 http://apt.armbian.com jessie/main Translation-en [178 B]
Get:19 http://apt.armbian.com jessie/utils Translation-en [178 B]
Get:20 http://apt.armbian.com jessie/jessie-desktop Translation-en [178 B]
Get:21 http://apt.armbian.com jessie/main Translation-en [178 B]
Get:22 http://apt.armbian.com jessie/utils Translation-en [178 B]
Get:23 http://apt.armbian.com jessie/jessie-desktop Translation-en [178 B]
Ign http://apt.armbian.com jessie/jessie-desktop Translation-en
Get:24 http://apt.armbian.com jessie/main Translation-en [178 B]
Ign http://apt.armbian.com jessie/main Translation-en
Get:25 http://apt.armbian.com jessie/utils Translation-en [178 B]
Ign http://apt.armbian.com jessie/utils Translation-en
Fetched 115 kB in 15s (7505 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version.
libglib2.0-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Requirement already satisfied (use --upgrade to upgrade): pyudev in /usr/lib/python2.7/dist-packages
Cleaning up...
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/lib/python2.7/dist-packages
Cleaning up...
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/bluepy
copying bluepy/sensortag.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/get_services.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/btle.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/blescan.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/__init__.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/uuids.json -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/bluez-src.tgz -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/bluepy-helper.c -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/Makefile -> build/lib.linux-armv7l-2.7/bluepy
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy
running build
running build_py
copying bluepy/bluepy-helper -> build/lib.linux-armv7l-2.7/bluepy
running install_lib
copying build/lib.linux-armv7l-2.7/bluepy/bluepy-helper -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/Makefile -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluepy-helper.c -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluez-src.tgz -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/uuids.json -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/__init__.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/blescan.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/btle.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/get_services.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/sensortag.py -> /usr/local/lib/python2.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/blescan.py to blescan.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/btle.py to btle.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/get_services.py to get_services.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/sensortag.py to sensortag.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing top-level names to bluepy.egg-info/top_level.txt
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Everything is successfully installed!
Code : Tout sélectionner
hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:1A:7D:DA:71:13 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING
RX bytes:27677 acl:0 sco:0 events:1046 errors:0
TX bytes:17532 acl:0 sco:0 commands:999 errors:0
J'ai recherché des infos sur :
Exception on scanner (didn't resolve there is an issue with bluetooth) : Failed to execute mgmt cmd 'le on'
J'avoue ne pas avoir saisi
https://github.com/IanHarvey/bluepy/issues/94
Une idée de la source du probleme ?
Stéphane