piBeacon: presence monitoring plugin discussions

User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

kw123 wrote:I have a fix, but hard to test .. I I could ask you?

on another note. just checked on my rpi3+ and ibeacon does not work anymore.. even with an external bye adapter.. no change for some time ..

there goes the weekend


Karl
Thanks Karl
Happy to test.
Glenn
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 »

Glenn: try v .263
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

Hi Karl,

Trying now, have lost connection to wlan1 rpi (sometimes happens)

But with other wifi ones now getting this:

Code: Select all

pi@raspberrypi:~ $ cd /home/pi/pibeacon;sudo python master.py
Killed
pi@raspberrypi:~/pibeacon $ 20190107-21:35:33  master  IP find:::: wifiIP >>127.0.0.1<<; eth0IP: >><<;   hostnameIP >>['192.168.1.187']<<;   ipAddressRead >>192.168.1.187<<
20190107-21:35:37  master U.getIPNumberMaster bad IP number ...  ipHostname >>['192.168.1.187']<<  old from file ipAddressRead>>192.168.1.187<< not in sync with ifconfig output: wifi0IP>>127.0.0.1<<;	eth0IP>>
20190107-21:35:42  master  IP find:::: wifiIP >>127.0.0.1<<; eth0IP: >><<;   hostnameIP >>['192.168.1.187']<<;   ipAddressRead >>192.168.1.187<<
20190107-21:35:46  master U.getIPNumberMaster bad IP number ...  ipHostname >>['192.168.1.187']<<  old from file ipAddressRead>>192.168.1.187<< not in sync with ifconfig output: wifi0IP>>127.0.0.1<<;	eth0IP>>
20190107-21:35:51  master  IP find:::: wifiIP >>127.0.0.1<<; eth0IP: >><<;   hostnameIP >>['192.168.1.187']<<;   ipAddressRead >>192.168.1.187<<
20190107-21:35:56  master U.getIPNumberMaster bad IP number ...  ipHostname >>['192.168.1.187']<<  old from file ipAddressRead>>192.168.1.187<< not in sync with ifconfig output: wifi0IP>>127.0.0.1<<;	eth0IP>>
x20190107-21:36:01  master  IP find:::: wifiIP >>127.0.0.1<<; eth0IP: >><<;   hostnameIP >>['192.168.1.187']<<;   ipAddressRead >>192.168.1.187<<

Code: Select all

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:15:0f:3a  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 29  bytes 4548 (4.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 29  bytes 4548 (4.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.187  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ba27:ebff:fe40:5a6f  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:40:5a:6f  txqueuelen 1000  (Ethernet)
        RX packets 905  bytes 105966 (103.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 211  bytes 29950 (29.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Another one:

Code: Select all

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:e9:a7:c5  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 14  bytes 1920 (1.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14  bytes 1920 (1.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.189  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ba27:ebff:febc:f290  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:bc:f2:90  txqueuelen 1000  (Ethernet)
        RX packets 346  bytes 41036 (40.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 206  bytes 27352 (26.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

pi@raspberrypi:~/pibeacon $ 20190107-21:41:25  master  IP find:::: wifiIP >>127.0.0.1<<; eth0IP: >><<;   hostnameIP >>['192.168.1.189']<<;   ipAddressRead >>192.168.1.189<<
20190107-21:41:38  master U.getIPNumberMaster bad IP number ...  ipHostname >>['192.168.1.189']<<  old from file ipAddressRead>>192.168.1.189<< not in sync with ifconfig output: wifi0IP>>127.0.0.1<<;	eth0IP>>
20190107-21:41:43  master  IP find:::: wifiIP >>127.0.0.1<<; eth0IP: >><<;   hostnameIP >>['192.168.1.189']<<;   ipAddressRead >>192.168.1.189<<


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 »

should be fixed in .264

Code: Select all

			if ifConfigSections[ii].find("wlan0  ") > -1 or ifConfigSections[ii].find("wlan0:") > -1 or \
			   ifConfigSections[ii].find("wlan1  ") > -1 or ifConfigSections[ii].find("wlan1:") > -1:
> -1 was missing in line one when I added the "or"

Karl
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

Thanks
Running now .. one typo found I think.. will update if anything else.

Code: Select all

 piBeacon Error                  error in socket-send to rPi:192.168.1.184  [{"cmdLine": "setTime=2019-01-08 16:24:57.665683", "command": "general"}]
   piBeacon Error                  in Line '6542' has error='global name 'sself' is not defined'
   piBeacon Error                  {u'192.168.1.184': {u'count': 0, u'pi': u'4', u'time': 1546924953.854585}}
   piBeacon Error                  error in socket-send to rPi:192.168.1.184  [{"cmdLine": "setTime=2019-01-08 16:24:57.666818", "command": "general"}]
   piBeacon Error                  in Line '6542' has error='global name 'sself' is not defined'
   piBeacon Error                  {u'192.168.1.184': {u'count': 1, u'pi': u'4', u'time': -1546925097.666811}}

seems largely cosmetic and otherwise all good - rpi wlan1 up and going, connecting fine.

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

fixed in v .266. -- sorry fo the many typos

Karl
GN
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Post by GlennNZ »

kw123 wrote:fixed in v .266.
Karl
Upgraded and all good!
Image
johnfdl
Posts: 177
Joined: Thu May 18, 2017 2:59 pm
Location: Atlanta, GA USA

Re: piBeacon: presence monitoring plugin discussions

Post by johnfdl »

So I have a couple fitbits (Charge 2) and while my phone ble scanner can see them, they do not show up in the PiBecon (though my XY finders are seen just fine). I'd like to do away with the XYs and use just the fitbit, but unsure if anyone has been sucessful in using the Fitbit. I have un-ignored all beacons so there are none being ignored, but only the RPis and the XY beacons show as active. I've tried reloading the plug-in.

Has anyone successfully been using their Fitbit?
Is there something obvious I should check?
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 »

The system only sees iBeacon and equivalent messages.

It does not send anything.. just listening.

It sees the flower pot

And setting up my Mac mini as ble devices
It sees that too, but not reliable. As sometimes when the mac goes to sleep it shuts down Ble




Sent from my iPhone using Tapatalk
johnfdl
Posts: 177
Joined: Thu May 18, 2017 2:59 pm
Location: Atlanta, GA USA

Re: piBeacon: presence monitoring plugin discussions

Post by johnfdl »

ok.....so it sounds as if it does not see (i.e., receive beacon signal from) my fitbit. The XY's are quite reliable, but after replacing batteries so many times, the slot where you pry them open is becoming worn out....so I figured if fitbits work, then I don't have to look into buying a new set of XYs.
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 now using the iHere rechargeable . !!!WAP!!! form factor

believe charge hold s> 4 weeks, see my previous post :
viewtopic.php?f=187&t=15360&start=75

Karl
User avatar
mundmc
Posts: 1068
Joined: Fri Sep 14, 2012 4:34 pm

Re: piBeacon: presence monitoring plugin discussions

Post by mundmc »

johnfdl wrote:ok.....so it sounds as if it does not see (i.e., receive beacon signal from) my fitbit. The XY's are quite reliable, but after replacing batteries so many times, the slot where you pry them open is becoming worn out....so I figured if fitbits work, then I don't have to look into buying a new set of XYs.
Exactly my experience with the XY’s.
johnfdl
Posts: 177
Joined: Thu May 18, 2017 2:59 pm
Location: Atlanta, GA USA

Re: piBeacon: presence monitoring plugin discussions

Post by johnfdl »

kw123 wrote:I am now using the iHere rechargeable . !!!WAP!!! form factor

believe charge hold s> 4 weeks, see my previous post :
viewtopic.php?f=187&t=15360&start=75

Karl
Thanks. I ordered a couple of these. Question, what does WAP stand for? Wireless Access Protocol? Wife Acceptance Pfactor?
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 »

W approved


Sent from my iPhone using Tapatalk
johnfdl
Posts: 177
Joined: Thu May 18, 2017 2:59 pm
Location: Atlanta, GA USA

Re: piBeacon: presence monitoring plugin discussions

Post by johnfdl »

So I bought a couple Nonda Aiko beacons. But when I charge them up, they dont show up as devices on my Indigo piBeacon folder. So I thought I need to update perhaps to the latest plugin. I did that and my Event log shows:

Code: Select all

   Starting plugin "piBeacon 7.100.269" (pid 36020)
   Started plugin "piBeacon 7.100.269"
   piBeacon                        initializing	 ... 
   piBeacon                        path To files:      =================
   piBeacon                        indigo              /Library/Application Support/Perceptive Automation/
   piBeacon                        installFolder       /Library/Application Support/Perceptive Automation/Indigo 7/
   piBeacon                        plugin.py           /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon-2.indigoPlugin/Contents/Server Plugin/
   piBeacon                        Plugin params       /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.karlwachs.piBeacon/
   piBeacon                        PluginLogFile       /Library/Application Support/Perceptive Automation/Indigo 7/Logs/com.karlwachs.piBeacon/plugin.log
   piBeacon                        Plugin short Name   piBeacon
   piBeacon                        my PID              36020
   piBeacon Critical Error         --------------------------------------------------------------------------------------------------------------
   piBeacon Critical Error         The pluginName is not correct, please reinstall or rename
   piBeacon Critical Error         It should be   /Libray/....../Plugins/piBeacon.indigoPlugin
   piBeacon Critical Error         It is: /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon-2.indigoPlugin
   piBeacon Critical Error         please check your download folder, delete old *.indigoPlugin files or this will happen again during next update
   piBeacon Critical Error         ---------------------------------------------------------------------------------------------------------------

Traceback (most recent call last):
  File "plugin.py", line 8619, in runConcurrentThread
  File "plugin.py", line 8639, in dorunConcurrentThread
  File "plugin.py", line 8424, in initConcurrentThread
AttributeError: 'Plugin' object has no attribute 'indigoInputPORT'

   piBeacon Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   piBeacon Error                  in Line '2493' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.karlwachs.piBeacon/dataVersion''
   piBeacon Error                  Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 8619, in runConcurrentThread
  File "plugin.py", line 8639, in dorunConcurrentThread
  File "plugin.py", line 8424, in initConcurrentThread
AttributeError: 'Plugin' object has no attribute 'indigoInputPORT'

   piBeacon Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   piBeacon Error                  in Line '2493' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.karlwachs.piBeacon/dataVersion''
   piBeacon Error                  Error in plugin execution runConcurrentThread:

I have reloaded the plugin and now piBeacon does not work. No beacons deteected:
Log shows this:

Code: Select all

an 27, 2019 at 2:54:51 PM
   v7.100.269 of plugin piBeacon is already installed but is disabled (enabling)
   Loading plugin "piBeacon 7.100.269"
   Starting plugin "piBeacon 7.100.269" (pid 40388)
   Started plugin "piBeacon 7.100.269"
   piBeacon                        initializing	 ... 
   piBeacon                        path To files:      =================
   piBeacon                        indigo              /Library/Application Support/Perceptive Automation/
   piBeacon                        installFolder       /Library/Application Support/Perceptive Automation/Indigo 7/
   piBeacon                        plugin.py           /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/
   piBeacon                        Plugin params       /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.karlwachs.piBeacon/
   piBeacon                        PluginLogFile       /Library/Application Support/Perceptive Automation/Indigo 7/Logs/com.karlwachs.piBeacon/plugin.log
   piBeacon                        Plugin short Name   piBeacon
   piBeacon                        my PID              40388
   piBeacon                        myLogSet setting parameters -- logFileActive= standard; logFile= ;  debugLevel= []
   piBeacon                        testing if variable enableTimeTracking_piBeacon is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
   piBeacon                         --V 7.100.269     initializing  -- 
   piBeacon                        starting UpdateRPIqueues 
   piBeacon                         .. config read from files
   piBeacon                         ..   def startup(self): setting variables, debug ..   finished 
   piBeacon                         ..   starting tcpip stack
   piBeacon                         ..   tcpip stack started
   piBeacon                         ..   checking sensors
   piBeacon                         ..   checking devices tables
   piBeacon                         ..   checking BLEconnect
   piBeacon                         ..   checking beacons
   piBeacon                         ..  initalized, starting loop 

Jan 27, 2019 at 2:57:16 PM
   piBeacon                        return code from fix ("spawn sftp -o ConnectTimeout=15 [email protected]\r\[email protected]'s password: \r\nPermission denied, please try again.\r\r\[email protected]'s password: \r\nPermission denied, please try again.\r\r\[email protected]'s password: \r\nAuthentication failed.\r\r\nConnection closed\r\r\n", 'expect: spawn id exp9 not open\n    while executing\n"expect "sftp" {  send  "quit\\r" }"\n    (file "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/updateParamsFTP.exp" line 50)\r\n') trying again to configure PI
And Beacon status in Indigo shows IPconnection and BLE down
Image
Post Reply

Return to “piBeacon”