piBeacon: presence monitoring plugin discussions

dnomode
Posts: 363
Joined: Sat Apr 12, 2008 11:48 pm
Location: North Georgia

Re: piBeacon: presence monitoring plugin discussions

Post by dnomode »

Thanks for your help Karl.

Edmond


Sent from my iPhone using Tapatalk
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 »

you might want to check your download folder.

remove any *.indigoPlugin" files

otherwise you will run into the same problem again at the next update

Karl
dnomode
Posts: 363
Joined: Sat Apr 12, 2008 11:48 pm
Location: North Georgia

Re: piBeacon: presence monitoring plugin discussions

Post by dnomode »

Thats a good idea.

Thanks
Edmond


Sent from my iPhone using Tapatalk
dnomode
Posts: 363
Joined: Sat Apr 12, 2008 11:48 pm
Location: North Georgia

Re: piBeacon: presence monitoring plugin discussions

Post by dnomode »

Hello Karl,

Im wondering if the rpi can monitor 4 different Bluetooth dongles. What I was thinking about doing is running long usb cables to different parts of my house, each with a usb dongle plugged into one end and the other end into my rpi. That way one rpi can monitor 4 different areas of my house.

Would this be possible?

Edmond


Sent from my iPhone using Tapatalk
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 guess it's easier and cheaper to have 4 rpi Setup.

I dont believe the bluez library supports more than 1 dongle. Have not seen that idea discussed anywhere.

A very long UBS cable would require an active element in between to refresh it. I believe ...

I have one that is 10 m long and it has an amplifier in the middle was ~$20 Don't know if you can add several together.




Sent from my iPhone using Tapatalk
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 »

may I suggest to go the opposite route:

put an rPi in to every room. It can not just do iBeacons, but also any kind f input and output device

The next version is supporting
-several different temp/humifity/pressure sensors
-regular GPIOpin input and output. you can use them to do door/window sensors etc, switch on / off things, or for ir beam detection etc, keypad entry
-analog input 4/8 channels with 10/16 bit resolution : could be used for other sensors that deliver an analog voltages. The plugin has an option to multiply / offset the values and display e.g a measured 75 mV as 39.5ºF or 3cm or 5inches (for rain detection) etc depending on your device volt- xx-unit conversion.
- analog out 12 bit for precision voltage output. Currently only one device supported. Could be used to drive eg position motors etc. Or in the next version we could add recorded sound so you could play that on a speaker at the door.
- to be added is a counter input for e.g. rain amount or we could attach a power meter..
==> the options are endless as the rPi has a real OPSys and the current load is max 10-20 % with several sensors ibeacons etc running in parallel.

The total cost: ~ $50 for the rPi
$1-20 for special sensors / output devices.

Compared to insteon sensors $30-90 each

:D :D :D

I am just exited about the potential..

Karl
dnomode
Posts: 363
Joined: Sat Apr 12, 2008 11:48 pm
Location: North Georgia

piBeacon: presence monitoring plugin discussions

Post by dnomode »

Right on, that sounds pretty cool. I cant wait to play with it.

Thanks


Sent from my iPhone using Tapatalk
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 »

updated the docs for the new version for the setup of rPi, sensors, scripts etc in the sections of the main piBeacon thread
http://forums.indigodomo.com/viewforum.php?f=187

Karl
WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Re: piBeacon: presence monitoring plugin discussions

Post by WouterK »

Hi,

Tried to install the latest version. After upgrading I get the following message in the log:

piBeacon piBeacon --V 1.11.1 initializing
piBeacon in Line '430' has error='[Errno 2] No such file or directory: '/users/wey3/documents/piBeacon/rejected/rejectedByPi.json''


And it seems after that the beacons stay on the status "expired"

Regards,

Wouter
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 »

could you check if the "/documents/piBeacon/rejected" exists?.

this is not really an error message, just that the file does not exist. will change that.

You need to push the new files to your rPis.
And the rpis will need ~ 5 minutes to download all the libraries.



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 »

you can check if the rPis are running:

open terminal:
ssh pi@ipnumber
enter password

then type

ps -ef | grep python

you should see something like this:

Code: Select all

root      2367     1  0 10:18 ?        00:00:01 python /home/pi/callbeacon.py
root      2470     1  0 10:18 ?        00:00:00 /usr/bin/python /home/pi/sensors.py
root      2472     1  0 10:18 ?        00:00:00 sudo /usr/bin/python /home/pi/beaconloop.py
root      2477  2472  3 10:18 ?        00:01:17 /usr/bin/python /home/pi/beaconloop.py
root      2519     1  0 10:18 ?        00:00:01 /usr/bin/python /home/pi/getsensorvalues.py
root      5239     1  0 10:56 ?        00:00:00 /usr/bin/python /home/pi/receiveGPIOcommands.py 9999
pi        5282  5267  0 10:57 pts/0    00:00:00 grep --color=auto python
you might not see the sensor py files if you have none defined

Karl
WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Re: piBeacon: presence monitoring plugin discussions

Post by WouterK »

Hi,

I checked the folder: the folder exists, the file is not.

Installed the latest version again. I had to configure the rpi's because the list of the rpi was empty. After send config and restart, two of the three rpi's are doing the update of the libraries. One seems to do it also but does not show the processes you mentioned.

Two rpi's are showing:

Code: Select all

root      2477     1  0 18:51 ?        00:00:01 python /home/pi/callbeacon.py
root      2584     1  0 18:51 ?        00:00:00 /usr/bin/python /home/pi/sensors.py
root      2588     1  0 18:51 ?        00:00:00 sudo /usr/bin/python /home/pi/beaconloop.py
root      2589  2588  1 18:51 ?        00:00:16 /usr/bin/python /home/pi/beaconloop.py
pi        3483  2651  0 19:07 pts/1    00:00:00 grep --color=auto python
The other one:

Code: Select all

pi        2668  2612  0 19:14 pts/1    00:00:00 grep --color=auto python
None of the beacons are updated and are showing "expired".

Regards Wouter
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 look correct.

For the ones without processes running do
sudo python callbeaconloop.py

Then do again ps - ef ....
Check if the programs are running.

I am out for 2 more hours. Will look into it when I am back home.



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 »

This look correct.

For the ones without processes running do
sudo python callbeaconloop.py

Then do again ps - ef ....
Check if the programs are running.

I am out for 2 more hours. Will look into it when I am back home.



Karl
WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Re: piBeacon: presence monitoring plugin discussions

Post by WouterK »

Hi,

Because I also had to go away, I downgraded to the previous version, configured the rPi's, rebooted and everything is working again.
I will not be much at home the next few days but if I have to do/check something please let me know.

Regards

Wouter
Post Reply

Return to “piBeacon”