Page 19 of 19
Re: How to check presence of Beacon ?
Posted: Friday 06 March 2020 23:00
by Damsee
Nope i didn't.
I'm back to my old system using l2ping ro ping my phone.
Re: How to check presence of Beacon ?
Posted: Friday 05 June 2020 15:44
by McJohn
Raspbian Buster 10
Domoticz 2020.2 (build 12067)
(both fresh new install)
There is a problem with this script:
https://www.domoticz.com/wiki/Presence_ ... _Beacon%29
https://raw.githubusercontent.com/jmleg ... _beacon.py
It gives a fault:
Code: Select all
sudo python test_beacon.py
Traceback (most recent call last):
File "test_beacon.py", line 31, in <module>
import bluetooth._bluetooth as bluez
File "/usr/local/lib/python2.7/dist-packages/bluetooth/__init__.py", line 282, in <module>
"""
AttributeError: attribute '__doc__' of 'instancemethod' objects is not writable
It's also described here:
https://stackoverflow.com/questions/598 ... -python2-7
We don't know what and where the script has to be changed.
Maybe the original script is in the meantime outdated?
Thanks for the support.
PS: this error becomes also for the main script:
https://raw.githubusercontent.com/jmleg ... resence.py
Re: How to check presence of Beacon ?
Posted: Sunday 07 June 2020 16:08
by McJohn
Python problem is solved.
There is a fault into the Wiki.
https://www.domoticz.com/wiki/Presence_ ... _Beacon%29
Subject:
Bluez - the linux bluetooth stack
When the version will be higher , you could do a simple :
It installed Bluez also into a wrong directory:
(/usr/local/lib/python2.7/dist-packages/bluetooth)
This has to be;
And beside this, for the modern Raspberry's with standard Bluetooth, this line doesn't have to be installed:
Code: Select all
sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
Please could somebody fix the Wiki.
Re: How to check presence of Beacon ?
Posted: Thursday 02 July 2020 13:22
by jes74
I've just found this thread and found it very interesting.
I have problems with fencing etc and all decent beacon ideas have been very apple orientated
To me the concept of multiple RasPi/BLE boxes dotted about looks quite cool. I'd be interested in being able to recognize the approach of either my wife's car or my own and turn on external lighting and open an electric gate.
I think I'll be buying some NUT tags soon, but what is their range like?
many thanks....
Best Regards:
Jes74,,,
Re: How to check presence of Beacon ?
Posted: Sunday 12 July 2020 12:51
by cleverpat
Hello Everyone,
Anyone got it working with a Tile Pro ? I know that Tiles are not broadcasting as soon as they've been paired with the app, so I've left them unpaired.
However, they "disappear" after a certain time. They only broadcast back when I push the button (discovery mode).
I also tried to pair them with my raspberry directly, but I got an " org.bluez.Error.AuthenticationFailed" :-/
Anyone has already had presence detection working with Tile pro ?
Thanks in advance
Pat
Re: How to check presence of Beacon ?
Posted: Tuesday 21 July 2020 18:44
by PeteMelon59
Hi,
I have received my order. So I think, i will test it in the next 10 days.
tvดูบอลสด
Re: How to check presence of Beacon ?
Posted: Sunday 26 July 2020 20:38
by danielgrant007
It seems like something weird had happened to my RPi3 and now the service stopped working. It seems to be a bluetooth problem.
I cant run hciconfig anymore. I've reinstalled Bluez. Bluetoothctl gives me an empty row where I cant input anything.
Re: How to check presence of Beacon ?
Posted: Sunday 26 July 2020 23:40
by JPdom
I used this script python3 script :
https://www.domoticz.com/forum/viewtopi ... 13#p234199
for several weeks.
But since some weeks, it doesn't work anymore
When I run beacon.py script, I have this error :
Code: Select all
Traceback (most recent call last):
File "beacon.py", line 148, in <module>
pkt = sock.recv(255)
_bluetooth.error: (32, 'Broken pipe')
I made no change in domoticz. I still have "4.10717" version.
I only periodically update raspian 9.13.
Can you help me to fix that ?
Thank you
Re: How to check presence of Beacon ?
Posted: Wednesday 14 October 2020 22:20
by rgroothuis
Apart from detecting Beacon's, does this solution also detect iPhones with bluetooth enabled?
I want to get this feedback before installing and trying. Thanks.
Re: How to check presence of Beacon ?
Posted: Friday 16 October 2020 16:38
by rgroothuis
rgroothuis wrote: ↑Wednesday 14 October 2020 22:20
Apart from detecting Beacon's, does this solution also detect iPhones with bluetooth enabled?
I want to get this feedback before installing and trying. Thanks.
Anybody feedback on my question? In stead of detecting beacons with this solution, can iPhones also be detected? Can somebody confirm?
Re: How to check presence of Beacon ?
Posted: Wednesday 14 July 2021 15:33
by DAVIZINHO
hello.
this is so old but works. i use a raspi zero exclusive for this and works fine.
The problem is a "false away". the nut its static near the raspberry and detect HOME but, suddenly it detects a away and after a minute a HOME again.
I think is a problem.
someone have this problem?
Re: How to check presence of Beacon ?
Posted: Saturday 11 September 2021 12:10
by DAVIZINHO
nobody use this bluetooth method?