piBeacon: presence monitoring plugin discussions

User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon presence monitoring plugin discussions

Post by kw123 »

this should be it .. :?

pls download v 0.9.14 ( skipped 13)
http://forums.indigodomo.com/viewtopic. ... 49#p107149

Karl
olympus
Posts: 15
Joined: Fri Dec 11, 2015 6:27 pm

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

Fantastic!

I now have devices showing up in the piBeacons devices folder. That's so cool; thanks!
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon presence monitoring plugin discussions

Post by kw123 »

that is really cool. now just add some more PIs and you have the whole house covered.

I suggest to set the PI update to 5 minutes in config. If you have several PIs they will see each other and you will have lots of entries in your SQLite database for the PI server beacons themselves.

I have not been able to get the iPhone to show up.. apparently they are not beacons but iPhones.

But there are many other beacons popping up and they only show once. ==> use exclude this family option I strongly believe these are some devices in cars that drive by.
Also some of their transmit power is not -xx but +xx that is very strong. (the signal state in the pibeacon device is transmitter power/received power e.g. -60/-90. Some of these onetime only show +20/-70


Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon presence monitoring plugin discussions

Post by kw123 »

Added a list of beacons in the download thread (*) that work with advantages and disadvantages


Karl

(*)http://forums.indigodomo.com/viewtopic. ... 11#p106411
AndrewGWalsh
Posts: 67
Joined: Wed Feb 20, 2013 5:23 am

Re: piBeacon presence monitoring plugin discussions

Post by AndrewGWalsh »

Hello, this looks very good indeed!

I'm just getting to grips with the set up and I wonder if you can point me at where I should look on the pi for logs. I have it working using your image file but want to get it working on a different version of Raspbian to the one you used and, although I think I have everything installed correctly and have stepped through the setup steps on the plugin I am getting no devices appearing.

Kind thoughts,

Andrew
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

piBeacon presence monitoring plugin discussions

Post by kw123 »

set the debug level to 4 in the /home/pi/parameters.fixed file
then you should see more in /home/pi/ logfile and errlog
And start with
sudo python callbeacon.py

Karl

ps

I am working an a version
1. that allows detection of room beacon is in and if a beacon enters or leaves room: check for
signal level change of > x dBm increase and distance < 10m ==> entering room
signal level change of > x dBm decrease and distance < 10m to 20m ==> leaving room

2. optimize # of messages
3. automatically manages new onetime beacons (forget them after xxxxx seconds
4. and some other streamlining
5. add a device model rPI vs all are a beacon now. i.e. change rPi devices that are beacons themselves to rPi device types. and handle them appropriately.
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: piBeacon: presence monitoring plugin discussions

Post by haavarda »

Hi Karl.
I am planning to pick up a pi later today or tomorrow, as this looks very interesting.
Have you thought about utilizing the pi more? Add more functionality..? Use it as a relay board that is controlled and monitored from Indigo for example?
Håvard
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

I am using the arduino /espxxx for that works nicely. See the arduino plugin. But I would like to add temp sensors to this setup as I have 10 throughout the house and for $3 we could add a temp sensor to it and send the info the same way to indigo.


Sent from my iPhone using Tapatalk
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: piBeacon: presence monitoring plugin discussions

Post by haavarda »

Hi Karl.
I have followed your recipe at my best attempt. I am getting the following error, and I don't seam to get any updates from the pi. Do you have any suggestions?
I am not using wifi only ethernet so far.

Code: Select all

  piBeacon Error                  Error in plugin execution MenuAction:

Traceback (most recent call last):
  File "plugin.py", line 507, in printConfigAction
  File "plugin.py", line 200, in printConfig
<type 'exceptions.KeyError'>: key not found in database
Håvard
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Haavard,
could you try version 1.1.2.http://forums.indigodomo.com/viewtopic. ... 87&t=15152

and if you like we can do a Skype session.

Karl
jeffgtx
Posts: 43
Joined: Sun Aug 19, 2007 2:48 pm

Re: piBeacon: presence monitoring plugin discussions

Post by jeffgtx »

your plugins never cease to amaze...

so, I need t have a beacon with me? It cannot be configured to talk to the iphone like when i walk into an apple store? I am assuming not since in that case the phone is doing what the pi is doing, not the beacon.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

piBeacon: presence monitoring plugin discussions

Post by kw123 »

The iphone does not send ibeacon signals
The iPhone in the apple store reads a beacon and then does things not the other way around
And yes the pi reads the beacon signal and "simply" sends the ibeacon info to the plugin


The ibeacons a are dumb devices like a light tower. The receiver has to do something with the beacon data.

Sent from my iPhone using Tapatalk
AndrewGWalsh
Posts: 67
Joined: Wed Feb 20, 2013 5:23 am

Re: piBeacon: presence monitoring plugin discussions

Post by AndrewGWalsh »

Many thanks for the help Karl, the advice set me in the right direction.

Just need to get a beacon for my key ring and I am in business :-)

Kind thoughts,

Andrew
(sorry for the delay in replying, work intervened)
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Please load the new plugin
the py programs for the pi have been significantly improved. They are pushed to the pi once started.
Also check out the beacon web pages how to test the ibeacon setup.


Sent from my iPhone using Tapatalk
ac4lt
Posts: 74
Joined: Sun Sep 20, 2015 9:03 am

Re: piBeacon: presence monitoring plugin discussions

Post by ac4lt »

I received my pi today though I still waiting on radius button beacons. I figured I'd try to get things configured and just see what was showing up. I've got v1.1.4 of the plugin.

My pi is hooked up via ethernet and has the bluetooth dongle connected. I created the disk image per the instructions. It boots up properly and I can ssh into it without any problem.

I configured the piBeacon plugin with the ip address of the Indigo server, the router and the Indigo web server user and password. I do get errors if I try to set the debug level for the plugin to anything but none:

Code: Select all

  piBeacon Error                  Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 938, in validatePrefsConfigUi
  File "plugin.py", line 230, in printConfig
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'typeOfBeaconParameters'
I went through the setup pi servers step and configured slot 0 for my pi as indicated in the screenshot in the first post.

Next I added a new rPi device.

I'm fairly sure I've got things configured properly but I'm seeing messages like this in the logs:

Code: Select all

 
 WebServer                       request to set variable "pi_IN_0" value to "{"pi_IN_":"0","mac":"5C:F3:70:6D:E4:C5","msgs":[["C8:69:CD:3F:AB:F3",1,"0-0-0",-92.6,20.0,100],["6B:0B:78:53:AF:19",1,"0-0-0",-81.0,3.9,619],["78:0F:02:51:FD:9F",1,"0-0-0",-89.1,26.0,215],["C8:69:CD:4E:B1:27",1,"0-0-0",-67.5,33.0,286],["70:73:CB:D9:38:AE",1,"0-0-0",-81.8,15.0,259]],"secsCol":"60"}" from 192.168.1.112
  piBeacon                        in Line '1316' has error=''key address not found in dict''
I'm guessing the first line is the pi telling us what it sees but the second line about the error seems troubling. I'm not sure what to do since I can't enable debug. If I'm interpreting the directions right the plugin should create beacon devices automatically when it sees them for the first time. Since I don't have any beacons yet there is nothing being created. I'm just not sure I'm in a good state for when the beacons do arrive given the errors I'm seeing.

Any advice on how to tell if things are ok? Thanks!
Post Reply

Return to “piBeacon”