Page 7 of 19
Re: How to check presence of Beacon ?
Posted: Friday 20 May 2016 22:28
by micbou
I just got my NUT's, went back to this topic and I'm so lost. Is there already a wiki available? Im really excited about this project and cant wait to execute.
Re: How to check presence of Beacon ?
Posted: Friday 20 May 2016 22:33
by jmleglise
Hi,
The wiki will be there :
http://www.domoticz.com/wiki/Presence_d ... _Beacon%29
Need some hours to write it ...
Re: How to check presence of Beacon ?
Posted: Friday 20 May 2016 22:34
by micbou
Great! Can I help in any way?
Re: How to check presence of Beacon ?
Posted: Friday 20 May 2016 23:19
by jmleglise
Yes !
I'm on it. When, I will finish , You may try and report/correct all the mistakes in the wiki.
Edit :
An idea, if you really want to contribute, you could make screen shot of all the phase of your installation. This will help a lot. And if something goes wrong , I may help you in return.
Re: How to check presence of Beacon ?
Posted: Friday 20 May 2016 23:21
by jmleglise
All,
Could you publish here a link to the beacon you've bought ? This will help the next buyers.
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 7:00
by korniza
here is the
tested and working NUT2 that broadcast ble beacons even they are not paired:
http://www.banggood.com/Mini-Smart-Patc ... 88462.html
The following
stop transmit ble beacons after a while. still can be used as
PANIC BUTTONS:
http://www.banggood.com/Bluetooth-4_0-S ... 74320.html
http://www.banggood.com/Wifi-Smart-Blue ... 28944.html
I have ordered another type which it suppose to be programmed and wait to be delived so to perform validation:
http://www.aliexpress.com/snapshot/7667 ... 7725846383
Also there TI SensorTag which is more than a simple tag as it incudes 9 sensors. It goes on deep sleep if no connection performed in 2 minutes so it not recommended.
Recently, I find out a review page for ble beacons and you can also purchase.
https://www.beaconzone.co.uk/allbeacons
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 9:38
by micbou
jmleglise wrote:Yes !
I'm on it. When, I will finish , You may try and report/correct all the mistakes in the wiki.
Edit :
An idea, if you really want to contribute, you could make screen shot of all the phase of your installation. This will help a lot. And if something goes wrong , I may help you in return.
No problem. Just say when
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 10:45
by blackdog65
Hi Guys,
My hardware is:-
https://www.amazon.co.uk/gp/product/B01 ... UTF8&psc=1
https://www.amazon.co.uk/gp/product/B00 ... UTF8&psc=1
This BT dongle is the smallest form I've ever seen, it's tiny! It works 1st time (I have 4 of them) but an be inserted upside down
I tried an ASUS dongle at twice the price and had to return it as it didn't play well with the RasPi.
Sean
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 10:59
by blackdog65
Hi, jmleglise,
Is it ok if I run through the WIKI and correct a few spelling and grammar errors?
Your English is a 1,000,000X better than my French (I live on "vin" and "fromage" when I visit

)
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 11:37
by jmleglise
Ouch ! It's upsetting
I'm kidding. Of course, please do !

Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 11:41
by jmleglise
micbou wrote:jmleglise wrote:
No problem. Just say when
Now, you can. The wiki is up to date.
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 12:06
by Raspberry Piet
jmleglise wrote:micbou wrote:jmleglise wrote:
No problem. Just say when
Now, you can. The wiki is up to date.
Looks great!
I had to install requests (it was not installed on my RPI) as the
check_beacon_presence.py script gave me error messages.
Code: Select all
sudo apt-get install python-pip
sudo pip install requests
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 12:50
by micbou
I run into a bunch of undeleted stuff half way, but was able to fix that with
Code: Select all
apt-get install libusb-dev libdbus-1-dev libglib2.0-dev automake libudev-dev libical-dev libreadline-dev
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 13:15
by micbou
I cant seem to run the gatttool. Any idea?
Code: Select all
root@raspberrypi:/home/pi/bluez/bluez-5.39# sudo cp gatttool /usr/local/bin/
cp: cannot stat ‘gatttool’: No such file or directory
UPDATE: Was able to fix above with
sudo cp attrib/gatttool /usr/bin/
Now running the service is giving me a 404 error. Typo somewhere?
Code: Select all
root@raspberrypi:/home/pi# sudo wget https://raw.githubusercontent.com/jmleglise/mylittle-domoticz/master/Presence%20detection%20%28beacon%29/check_beacon_presence/check_beacon_presence
--2016-05-21 14:03:10-- https://raw.githubusercontent.com/jmleglise/mylittle-domoticz/master/Presence%20detection%20%28beacon%29/check_beacon_presence/check_beacon_presence
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 23.235.43.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.43.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-05-21 14:03:10 ERROR 404: Not Found.
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 14:05
by micbou
-
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 14:09
by micbou
micbou wrote:I cant seem to run the gatttool. Any idea?
Code: Select all
root@raspberrypi:/home/pi/bluez/bluez-5.39# sudo cp gatttool /usr/local/bin/
cp: cannot stat ‘gatttool’: No such file or directory
UPDATE: Was able to fix above with
sudo cp attrib/gatttool /usr/bin/
Now running the service is giving me a 404 error. Typo somewhere?
Code: Select all
root@raspberrypi:/home/pi# sudo wget https://raw.githubusercontent.com/jmleglise/mylittle-domoticz/master/Presence%20detection%20%28beacon%29/check_beacon_presence/check_beacon_presence
--2016-05-21 14:03:10-- https://raw.githubusercontent.com/jmleglise/mylittle-domoticz/master/Presence%20detection%20%28beacon%29/check_beacon_presence/check_beacon_presence
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 23.235.43.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.43.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-05-21 14:03:10 ERROR 404: Not Found.
ANOTHER UPDATE:
Found the typo and corrected the WIKI
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 14:20
by Westcott
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 14:26
by micbou
Sorry for all the questions, but here's another error I'm getting
Code: Select all
root@raspberrypi:/home/pi# sudo /etc/init.d/check_beacon_presence start
[....] Starting check_beacon_presence (via systemctl): check_beacon_presence.serviceFailed to start check_beacon_presence.service: Unit check_beacon_presence.service failed to load: No such file or directory.
failed!
root@raspberrypi:/home/pi#
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 14:44
by Westcott
Did you do the final -
sudo update-rc.d check_beacon_presence defaults
Re: How to check presence of Beacon ?
Posted: Saturday 21 May 2016 15:18
by micbou
Got it, but must admit I'm starting to feel a bit discouraged, because now that I have everything up I have no idea how to get my switches or variables set up to actually show whether or not Im HOME or AWAY. Tried copying some of the LUA scripts, but I guess I just need to do some more research to learn.