How to check presence of Beacon ?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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.
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: How to check presence of Beacon ?

Post by jmleglise »

Hi,

The wiki will be there :

http://www.domoticz.com/wiki/Presence_d ... _Beacon%29

Need some hours to write it ...
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de maison de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post by micbou »

jmleglise wrote:Hi,

The wiki will be there :

http://www.domoticz.com/wiki/Presence_d ... _Beacon%29

Need some hours to write it ...

Great! Can I help in any way?
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: How to check presence of Beacon ?

Post 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.
Last edited by jmleglise on Friday 20 May 2016 23:31, edited 1 time in total.
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de maison de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: How to check presence of Beacon ?

Post by jmleglise »

All,

Could you publish here a link to the beacon you've bought ? This will help the next buyers.
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de maison de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
korniza
Posts: 157
Joined: Thursday 27 August 2015 18:12
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6028
Location: Greece
Contact:

Re: How to check presence of Beacon ?

Post 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
>>>> Google Home <<<<<
SBC: Odroid XU4 * Raspberry Pi2 * banana Pi v1
Peripherals: rfxtrx433E, aeon z-stick gen5, bluetooth dongles
Extended Software packages: Xeoma (video NVR), FHEM (extra home automation software)
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: How to check presence of Beacon ?

Post 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 :oops:
I tried an ASUS dongle at twice the price and had to return it as it didn't play well with the RasPi.

Sean
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: How to check presence of Beacon ?

Post 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 :oops: )
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: How to check presence of Beacon ?

Post by jmleglise »

Ouch ! It's upsetting :o
I'm kidding. Of course, please do ! :)
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de maison de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: How to check presence of Beacon ?

Post by jmleglise »

micbou wrote:
jmleglise wrote: No problem. Just say when
Now, you can. The wiki is up to date.
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de maison de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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.
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post by micbou »

-
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: How to check presence of Beacon ?

Post by Westcott »

Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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# 
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: How to check presence of Beacon ?

Post by Westcott »

Did you do the final -
sudo update-rc.d check_beacon_presence defaults
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
micbou
Posts: 86
Joined: Sunday 01 May 2016 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to check presence of Beacon ?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest