piBeacon: presence monitoring plugin discussions

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

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

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.
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 download the new version 0.9.11 and try again?
olympus
Posts: 15
Joined: Fri Dec 11, 2015 6:27 pm

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

Definitely. I'll get on that now and report back.
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 »

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

and set debug level to 1 or any odd number
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 »

.. and do a menu/print config (last line) and post (remove your password first)
olympus
Posts: 15
Joined: Fri Dec 11, 2015 6:27 pm

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

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
olympus
Posts: 15
Joined: Fri Dec 11, 2015 6:27 pm

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

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

oops you don't have a directory ...karlwachs.. thats an easy fix.. give me 5
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 is in the code:
userName = pwd.getpwuid( os.getuid() )[0]
userName = "karlwachs" <-- this should not be there..
olympus
Posts: 15
Joined: Fri Dec 11, 2015 6:27 pm

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

That makes sense. Should I just remove that line?
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 download 0.9.12 that should fix the web server error
olympus
Posts: 15
Joined: Fri Dec 11, 2015 6:27 pm

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

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

another oops that my mac ip number .. 5 minutes

this should not be there
self.myIP="192.168.1.136"
olympus
Posts: 15
Joined: Fri Dec 11, 2015 6:27 pm

Re: piBeacon presence monitoring plugin discussions

Post by olympus »

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

Return to “piBeacon”