Using Fing as a new way to detect smartphone presence

Plugins that users have built. NOTE: plugins that were developed for Indigo versions older than 2022.1 will have to be updated to work with Indigo 2022.1 (Python 3 - see this blog post for details). If the plugin listed here is not in the Plugin Store (which will show updated plugins) then you will need to ask on the appropriate thread below if it has been updated and where you get get the update.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

Also fingscan.app gets relaunched by an action/schedule. Check if you have something like fingscan relaunch schedule. And disable it.


Sent from my iPhone using Tapatalk
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

Just rename that directory. Then start fingscan plugin


Sent from my iPhone using Tapatalk
rm2014
Posts: 28
Joined: Sun Sep 14, 2014 11:01 pm

Re: Using Fing as a new way to detect smartphone presence

Post by rm2014 »

Hi Karl - quick question for you, I have a load of devices that are showing up as expired. Can I just delete them as I assume they are dead now and can be removed?

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

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

Yes, just delete the device in indigo home window.


Sent from my iPhone using Tapatalk
vasisht
Posts: 24
Joined: Sat Dec 08, 2012 10:04 am

Re: Using Fing as a new way to detect smartphone presence

Post by vasisht »

So I have find running and the fingscan plugin installed. I guess I'm not really sure where to go from here? I have a list of 18 ipDevice variables with MAC addresses, ip addresses, nicknames (all of which are xyz-iphone), etc...

I'd like to be able to check to see if my iPhone is present or not. And if it's present -I'm home, if it's not present I'm not home. In reading through these posts, it appears some people have created devices? How is that done? I don't have that option present - I'm running fingscan 3.2.1 if that makes any difference.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

Go into configure and setup events. Just read the manual that came with the plugin.


Sent from my iPhone using Tapatalk
vasisht
Posts: 24
Joined: Sat Dec 08, 2012 10:04 am

Re: Using Fing as a new way to detect smartphone presence

Post by vasisht »

There wasn't a manual when I downloaded it from the forum. This is my "configure" menu panel - all there is is a place to enter a password.
Attachments
Screenshot 2014-12-11 09.36.46.png
Screenshot 2014-12-11 09.36.46.png (52.07 KiB) Viewed 6813 times
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Using Fing as a new way to detect smartphone presence

Post by kw123 »

Ok you are using a 1 year old version. Search for fingscan and download. There you find the most recent version.


Sent from my iPhone using Tapatalk
achterberg
Posts: 93
Joined: Tue Feb 22, 2005 11:41 pm
Location: Texas

Re: Using Fing as a new way to detect smartphone presence

Post by achterberg »

I hope this is the correct forum for this. The Indigo log is filled with what looks like fingspan looping trying to restart on it's own?

Code: Select all

Reloading plugin "fingscan 4.10.21"
  Stopping plugin "fingscan 4.10.21" (pid 68220)
  fingscan                        stopConcurrentThread called 1
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan                        stopConcurrentThread called 2
  fingscan                        shutdown called
  Stopped plugin "fingscan 4.10.21"
  Starting plugin "fingscan 4.10.21" (pid 68338)
  Started plugin "fingscan 4.10.21"
  fingscan                        FINGSCAN--V 4-10-21   initializing     will take ~ 2 minutes...
  fingscan                        indigo variables initialized
  fingscan                        leaving WiFi parameters at default, not configured in 'Configure'
  fingscan                        ipDevice folder already exists
  fingscan                        getting password
  fingscan                        get password done
  fingscan                        loaded indigo data
  fingscan                        network info: inet 192.168.1.87 netmask 0xffffff00 broadcast 192.168.1.255
  fingscan                        FING initializing
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
and this:

Code: Select all

  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           plugin "fingscan.indigoPlugin" is missing file: /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/fingscan.indigoPlugin/Contents/Info.plist
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
I checked and the referenced info.plist file does exist.
I disabled the plugin from the Plugins menu (the plugin moves to the Plugins (Disabled) folder) and now the log is filling with this every 10 seconds.

Code: Select all

   Disabling plugin "fingscan 4.10.21"
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
If I enable the plugin this repeats from Starting plugin:

Code: Select all

Enabling plugin "fingscan 4.10.21"
  Starting plugin "fingscan 4.10.21" (pid 79795)
  Started plugin "fingscan 4.10.21"
  fingscan                        FINGSCAN--V 4-10-21   initializing     will take ~ 2 minutes...
  fingscan                        indigo variables initialized
  fingscan                        leaving WiFi parameters at default, not configured in 'Configure'
  fingscan                        ipDevice folder already exists
  fingscan                        getting password
  fingscan                        get password done
  fingscan                        loaded indigo data
  fingscan                        network info: inet 192.168.1.76 netmask 0xffffff00 broadcast 192.168.1.255
  fingscan                        FING initializing
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Reloading plugin "fingscan 4.10.21"
  Stopping plugin "fingscan 4.10.21" (pid 79795)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan                        FING initialized ..  created new data   waiting ~ 1 minute for stable operation
  fingscan                        settings:  iDevicesEnabled              False
  fingscan                        settings:  inbetweenPingType            0
  fingscan                        settings:  wifiRouter                   0
  fingscan                        settings:  wait seconds between cycles  5
  fingscan                        settings:  password entered             True
  fingscan                        settings:  debugLevel                   0
  fingscan                        settings:  FINGSCAN will scan Network   192.168.1.1-255
  fingscan                        

  fingscan                        EVENT:-------------  1  ---------------------------------------------------------------
  fingscan                        dev#: 1 -- deviceName:iPhone        -- MAC#:BD:2N:AF:31:98:A5 -- ip#:192.168.1.70    -- status:up       -- WiFi:WiFi
  fingscan                        currentStatusHome:    1:           HOME
  fingscan                        currentStatusAway:    1:              0
  fingscan                        time WhenLast DOWN:   1:       12:22:23
  fingscan                        time WhenLast UP:     1:       15:48:07
  fingscan                        seconds WhenLast UP:  1:             50
  fingscan                        seconds WhenLast DOWN:1:             50
  fingscan                        seconds right now:           1419985767
  fingscan                        AtLeast ONE Device Home:              0
  fingscan                        ALL Devices Away:                     0
  fingscan                         limits- minTimeAway bf Trig:      10.0
  fingscan                         limits- minTimeNotHome bf re-Trig:   3
  fingscan                         limits- Event enabled:               1
  fingscan                        

  fingscan                        stopConcurrentThread called 1
  fingscan                        stopConcurrentThread called 2
  fingscan                        shutdown called
  Error                           process (pid 79795) failed to quit after polite request -- forcing it to quit now
  Stopped plugin "fingscan 4.10.21"
I restarted Indigo and enabled the plugin and the log fills with the above again. So I disabled it and its back to:

Code: Select all

  Stopped plugin "fingscan 4.10.21"
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           plugin "fingscan.indigoPlugin" is missing file: /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/fingscan.indigoPlugin/Contents/Info.plist
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Moved the plugin to the trash and restarted Indigo again, and the log is still filling with looping messages:

Code: Select all

fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan                        --> while loop break  stopping ...  quitNOW was:yes
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan                        --> while loop break  stopping ...  quitNOW was:yes
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:yes
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan                        --> while loop break  stopping ...  quitNOW was:yes
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:yes
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan                        --> while loop break  stopping ...  quitNOW was:yes
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  fingscan                        --> while loop break  stopping ...  quitNOW was:unknow error
  Error                           ServerRequestError -- plugin must be enabled to restart
I'm restarting the server after I send this.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

while loop break stopping ... quitNOW was:unknow error
FINGSCAN finds an error it can not handle and tries to restart-the error message indicates: it can not update variable "ipDevsLastUpdate". Looks like the variable was deleted??

Could you check if the variable still exists.
When it restarts it should recreate & fix that variable anyway. There must be something else going on.

Karl
achterberg
Posts: 93
Joined: Tue Feb 22, 2005 11:41 pm
Location: Texas

Re: Using Fing as a new way to detect smartphone presence

Post by achterberg »

I didn't recall creating any variables for the plugin, but looking at the Variables List there is a variable named "ipDevsLastUpdate" in the IP device folder. I downloaded the plugin again but haven't installed it yet, so the variable must be from the previous install. I just have three triggers that work with the plugin; two detect presence and the other sends an email when a new device is connected (I added that from another post). The presence triggers worked flawlessly from when the plugin was released. There were 6 instances of fing in the Activity Monitor when the errors were being generated, and I deleted them all before restarting. The errors seem to have come from nowhere and if I didn't happen to be logged in the server and have the Event Log window open, I wouldn't have noticed this. Thanks for looking at this, it is one of the plugins that adds value to my setup.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

Don't under stand the loop and cause...The error message comes from a failed update attempt:

Code: Select all

						try:
							indigo.variable.updateValue("ipDevsLastUpdate", strftime("%H:%M:%S", localtime()) )  ## writes last update time stamp to indigo variable
						except Exception, exc:
          ....
It could come from a timeout waiting for indigo to answer ..
And it should fix itself once restarted...
Is there anything else wrong with your server? .. any other error messages?

Karl
achterberg
Posts: 93
Joined: Tue Feb 22, 2005 11:41 pm
Location: Texas

Re: Using Fing as a new way to detect smartphone presence

Post by achterberg »

I reinstalled the fingscan plugin and everything seems normal so far. Nothing particularly wrong with the server before or after, the usual Google Voice SMS plugin concurrent error which never seems to go away (documented in another forum), but never seems to hurt anything either. And a concurrent error with Plex HTPC plugin after restart which has since gone away.
ryanbuckner
Posts: 1409
Joined: Sat Oct 08, 2011 12:33 pm
Location: Northern Virginia
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by ryanbuckner »

I'm currently transitioning from FMiD to FING as my main presence detector. Strangely the iPhone goes down and comes back up mostly every few minutes. But sometimes it sleeps for 1.5 hours.

Anyone else seen this?
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

Do you have a iPhone 6 ? That behaves differently. You need to set the timeout parameters larger. At least that worked for me


Sent from my iPhone using Tapatalk
Post Reply

Return to “User Plugins”