j'ai ça aussi de temps en temps. il faut relancer php BTdaemon.php startRylicR a écrit :J'ai un problème après la configuration du script, je reçois des lignes "Set scan parameters failed: Input/output error
grep: erreur d'écriture: Relais brisé (pipe)", d'ou vient le problème?
[TUTO] Scanner Bluetooth (BLE ou non)
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Pour cela il faut le plugin Virtuel et créer un équipement comme dans la capture ci-dessous. Dans la configuration du script, il faut indiquer l'iD des commandes on et off.RylicR a écrit :Merci, j'ai réussi en bidouillant un peu haha. J'ai fini le script de configuration, maintenant je cherche comment retrouver la commande "présent" et "absent" dans Jeedom
Dans mon cas, ce sont les ID 451, 452
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Merci j'ai relancé le script et cela semble fonctionné. Ou est-ce que je trouve les ID des commandes on OFF ?
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Plus précisément, je ne trouve pas l'équipement qui correspond au Nut dans les équipements
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Il n'y a pas d'équipement nut - il faut creer un virtuel comme dans l'exemple ici viewtopic.php?f=31&t=25492&start=20#p464827RylicR a écrit :Plus précisément, je ne trouve pas l'équipement qui correspond au Nut dans les équipements
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Désolé je ne comprend vraiment pas comment lier le script avec Jeedom, je n'ai aucun retour de ce script dans Jeedom. J'ai déjà créé des "virtuels" pour mon mode "jour nuit" mais ceux-ci étaient ensuite attaché a l'information envoyée par Weather. Dans ce cas je ne trouve nul par l'information "NUT présent" ou "Dut absent" dans Jeedom.
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Le script semble parfaitement fonctionner, les logs du BT.log sont bon, mais je ne comprend pas comment lier ce script avec Jeedom :/
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
il n'y a pas de lien a faire.RylicR a écrit :Désolé je ne comprend vraiment pas comment lier le script avec Jeedom, je n'ai aucun retour de ce script dans Jeedom. J'ai déjà créé des "virtuels" pour mon mode "jour nuit" mais ceux-ci étaient ensuite attaché a l'information envoyée par Weather. Dans ce cas je ne trouve nul par l'information "NUT présent" ou "Dut absent" dans Jeedom.
dans jeedom il faut créer un virtuel comme dans l'exemple ci-dessus qui donne 2 ID (on/off pour present/absent"
Ensuite n'importe ou sur le raspberry qui a le dongle BT, il faut lancer le script qui cree un daemon unix pour surveiller les smartphone ou nut.
Ce daemon se charge de dire a jeedom (via les ID on/off) s'il a detecté ou non le smarphone/nut.
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Je prend peut être les choses à l'envers alors. Voila j'ai créé mon équipement virtuel. Comment donner au script les numéros des ID alors?
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Je viens de comprendre, je m'excuse je sors de garde, je suis un boulet haha. Merci pour votre patience
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Pa de soucis - mon script est encore en phase expérimentale et je n'ai pas fait de tuto correct sur la partie jeedom.RylicR a écrit :Je viens de comprendre, je m'excuse je sors de garde, je suis un boulet haha. Merci pour votre patience
il fonctionne très bien pour les smartphone mais je suis encore en phase de mise au point pour les BLE (comme les nut).
Quand tout sera validé je ferai un tuto plus complet.
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Par expérience, qu'est ce qui a selon vu la plus grande portée? Un NUT ou un iPhone?
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
cela dépend surtout du dongle (qui réceptionne).RylicR a écrit :Par expérience, qu'est ce qui a selon vu la plus grande portée? Un NUT ou un iPhone?
Dans mon cas, un Samsung S5 ou le nut - les 2 sont visibles sur l'ensemble du pavillon (3 niveaux), avec le dongle BT qui se trouve au premier étage
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Un conseil sur le Dongle? (promis après j'arrête haha)
PI3 + Xiaomi Gateway + 5 Xiaomi Switch + 3 Xiaomi Détecteur + 7 Yeelight + 2 Xiaomi Temperature + 2 Xiaomi Ouverture + 1 Qubino ZMNHJD1
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Celui indiqué sur github fonctionne très bien : https://goo.gl/e52VTZRylicR a écrit :Un conseil sur le Dongle? (promis après j'arrête haha)
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Bonjour,
Je viens de pousser une mise à jour majeure: https://github.com/diving91/Bluetooth-scanner
pour rendre l'utilisation des tags BLE plus fiables. pour les BLE, le scanner se base sur un script python désormais.
Quand j'aurais plus de temps je ferai un tuto plus complet sur l'intégration dans jeedom (création de widgets et scénarios pour automatiser le comportement basé sur la détection de présence)
diving91
Je viens de pousser une mise à jour majeure: https://github.com/diving91/Bluetooth-scanner
pour rendre l'utilisation des tags BLE plus fiables. pour les BLE, le scanner se base sur un script python désormais.
Quand j'aurais plus de temps je ferai un tuto plus complet sur l'intégration dans jeedom (création de widgets et scénarios pour automatiser le comportement basé sur la détection de présence)
diving91
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Bonjour à tous
Concernant le script "Bluetooth scanner", je voulais savoir si il était possible de faire cohabiter celui-ci avec le plugin BLEA sur Jeedom car j'ai d'autres objets en Bluetooth. Je cherche quelque chose de très réactif pour détection présence avec Bluetooth téléphone.
je suis sur odroid c2 avec dongle UD100
Merci d'avance pour vos réponses
Concernant le script "Bluetooth scanner", je voulais savoir si il était possible de faire cohabiter celui-ci avec le plugin BLEA sur Jeedom car j'ai d'autres objets en Bluetooth. Je cherche quelque chose de très réactif pour détection présence avec Bluetooth téléphone.
je suis sur odroid c2 avec dongle UD100
Merci d'avance pour vos réponses
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Salut @diving91 je testé avec:diving91 a écrit : ↑10 mai 2017, 00:34Bonjour,
Je viens de pousser une mise à jour majeure: https://github.com/diving91/Bluetooth-scanner
pour rendre l'utilisation des tags BLE plus fiables. pour les BLE, le scanner se base sur un script python désormais.
Quand j'aurais plus de temps je ferai un tuto plus complet sur l'intégration dans jeedom (création de widgets et scénarios pour automatiser le comportement basé sur la détection de présence)
diving91
Code : Tout sélectionner
pi@raspberrypi:~/Bluetooth-scanner-master $ php BTdaemon.php conf
Je configure tout les parametres, mais je receive le message:
Code : Tout sélectionner
pi@raspberrypi:~/Bluetooth-scanner-master $ php BTdaemon.php start
Starting Bluetooth Daemon
ERROR No config file, use: php BTdaemon.php conf
Merci d'avance
- diving91
- Timide
- Messages : 372
- Inscription : 08 mars 2015, 18:29
- Localisation : Essonne (91)
- Contact :
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Bonjour,
il ne trouve pas le fichier BT.ini qui doit être créer après avoir fait "php BTdaemon.php conf".
un "pi@raspberrypi:~/Bluetooth-scanner-master $ ls" doit te montrer le fichier BT.ini
sinon tu peux créer ce fichier toi même. voici un exemple
il ne trouve pas le fichier BT.ini qui doit être créer après avoir fait "php BTdaemon.php conf".
un "pi@raspberrypi:~/Bluetooth-scanner-master $ ls" doit te montrer le fichier BT.ini
sinon tu peux créer ce fichier toi même. voici un exemple
Code : Tout sélectionner
[adapter]
hci = hci0
[Jeedom IP]
; IP de Jeedom
ip = 192.168.1.100
[Jeedom Key]
key = myjeedomkey
[TAGS]
; my Samsung A5 2017
;1 = DA:A5:05:95:B9:F6,400,401,0
; my LG G3
;2 = A4:9F:69:94:61:55,402,403,0
; my iPhone
;3 = 12:ab:34:ab:56:ab,404,405,0
; my Nut mini Blanc
3 = EF:A7:C5:EA:A6:2C,406,407,1
[logs]
log = 1
Diving91,
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
RPI2 + SSD 30MB - RfxTrx433E - Store Somfy - Led Milight - MySensors Gateway ESP8266 - Noeuds ESP Easy
Ma Station Météo sous Jeedom
Re: [TUTO] Scanner Bluetooth (BLE ou non)
Bonjour,diving91 a écrit : ↑30 avr. 2017, 16:58Oui avec git /ssh c'est plus simple.RylicR a écrit :Bonjour,
Désolé de cette question qui parait certainement bête, mais je ne sais pas comment installer un script GitHub sur Jeedom? Il faut passer par Jeedom ou directement sur le Pi3 en SSH?
Merci,
Cyril.
si tu n'as pas git, en ssh il faut faire un wget https://github.com/diving91/Bluetooth-s ... master.zip
qu'il faut ensuite unzipper (apt-get install unzip).
puis en ssh tu lances php BTdaemon.php
Quelqu'un pourrait faire un tuto rapide et un poil plus clair pour un débutant, parce que là je n'y arrive pas ?
Qui est en ligne ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 4 invités