piBeacon: presence monitoring plugin discussions

Posted on
Fri Dec 11, 2015 11:03 pm
olympus offline
Posts: 15
Joined: Dec 11, 2015

Re: piBeacon presence monitoring plugin discussions

I found the pibeacon folder, but piwebserver.log does not exist. I attempted to restart web server #1 and it said communication with the plugin timed out, showing this in the log.
Code: Select all
  Error (client)                  timeout waiting for plugin response from com.karlwachs.piBeacon for request UiAction
  Error (client)                  received unexpected packet response UiAction (waiting for GetUiDynamicList)

Dec 11, 2015, 11:00:25 PM
  piBeacon                        web server restarted unsuccessfully, giving up
  piBeacon                        web server restarted unsuccessfully, giving up


The dot is on and I can pick it up on my phone.

Posted on
Fri Dec 11, 2015 11:07 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

could you download the new version 0.9.11 and try again?

Posted on
Fri Dec 11, 2015 11:08 pm
olympus offline
Posts: 15
Joined: Dec 11, 2015

Re: piBeacon presence monitoring plugin discussions

Definitely. I'll get on that now and report back.

Posted on
Fri Dec 11, 2015 11:12 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

if you still get that error

open terminal and type:
python '/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/piwebserver.py' 10.0.1.2 9931

and post the error message

Posted on
Fri Dec 11, 2015 11:13 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

and set debug level to 1 or any odd number

Posted on
Fri Dec 11, 2015 11:16 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

.. and do a menu/print config (last line) and post (remove your password first)

Posted on
Fri Dec 11, 2015 11:16 pm
olympus offline
Posts: 15
Joined: Dec 11, 2015

Re: piBeacon presence monitoring plugin discussions

No luck.

I first tried to restart web server #1 and the same thing happened as before. I then tried pushing the config to it again, but that didn't seem to help. I'm still seeing this in Indigo's log.
Code: Select all
 piBeacon                        web server restarted unsuccessfully, giving up



This is what I get when running that command.
Code: Select all
python '/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/piwebserver.py' 10.0.1.2 9931
sh: line 2: /Users/karlwachs/Documents/piBeacon/piwebserver.log: No such file or directory

Posted on
Fri Dec 11, 2015 11:18 pm
olympus offline
Posts: 15
Joined: Dec 11, 2015

Re: piBeacon presence monitoring plugin discussions

Code: Select all
 pi configuration                debugLevel Indigo            0
  pi configuration                debugLevel Pi                1
  pi configuration                myIp Number                  10.0.1.2
  pi configuration                WiFi key_mgmt                NONE
  pi configuration                WiFi Password               
  pi configuration                WiFi SSID                   
  pi configuration                Router IP                    10.0.1.254
  pi configuration                Seconds UP to DOWN           90.0
  pi configuration                enable FINGSCAN interface    1
  pi configuration                Parameters for each PI       
  pi configuration                  # R# IP#          beacon-MAC         port UserID       Password   
  pi configuration                  1  0 10.0.1.19                    9931 pi           password
  pi configuration                EXPERT parameters for each PI:
  pi configuration                MaxCall BLE bfsend           300
  pi configuration                ask BLE for x Msgs           3
  pi configuration                colct x secs bf snd          60
  pi configuration                reboot pi after sec          86400
  pi configuration               
  pi configuration                defined beacons   indigoName             Status     ignore   LastUp[s] ExpTime -- defined beacons   indigoName             Status     ignore   LastUp[s] ExpTime
  pi configuration                Ignore this family of beacons with the following first 12 characters in their UUID

Posted on
Fri Dec 11, 2015 11:18 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

oops you don't have a directory ...karlwachs.. thats an easy fix.. give me 5

Posted on
Fri Dec 11, 2015 11:20 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

this is in the code:
userName = pwd.getpwuid( os.getuid() )[0]
userName = "karlwachs" <-- this should not be there..

Posted on
Fri Dec 11, 2015 11:25 pm
olympus offline
Posts: 15
Joined: Dec 11, 2015

Re: piBeacon presence monitoring plugin discussions

That makes sense. Should I just remove that line?

Posted on
Fri Dec 11, 2015 11:26 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

please download 0.9.12 that should fix the web server error

Posted on
Fri Dec 11, 2015 11:30 pm
olympus offline
Posts: 15
Joined: Dec 11, 2015

Re: piBeacon presence monitoring plugin discussions

Awesome. I now have a piwebserver.log and this is it's contents.

Code: Select all

2015-12-11 23:27:25 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:27:29 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:27:33 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:27:36 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:27:40 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:27:43 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:27:47 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:27:51 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:27:54 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:27:58 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:29:02 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:29:05 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:29:09 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:29:12 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:29:16 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:29:22 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:29:25 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:29:29 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:29:32 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:29:36 --------   Pi Webserver started  params: 192.168.1.136 9931


2015-12-11 23:30:02 --------   Pi Webserver started  params: 192.168.1.136 9930


2015-12-11 23:30:05 --------   Pi Webserver started  params: 192.168.1.136 9930
 


My lan is 10.0.1.0.

Posted on
Fri Dec 11, 2015 11:31 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon presence monitoring plugin discussions

another oops that my mac ip number .. 5 minutes

this should not be there
self.myIP="192.168.1.136"

Posted on
Fri Dec 11, 2015 11:32 pm
olympus offline
Posts: 15
Joined: Dec 11, 2015

Re: piBeacon presence monitoring plugin discussions

No worries at all. I'm impressed with your response time.

Who is online

Users browsing this forum: No registered users and 20 guests