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.
evansgo
Posts: 223
Joined: Fri Nov 29, 2013 10:53 am

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

Post by evansgo »

Hi,
Well I changed them back to what they should be first thing, then left them all day, now I've deleted and re-ordered and its all looking goo, so I think you've fixed it :-)
I will keep an eye on it though and let you know if they change as I'm trying other things....
Gareth
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 »

thanks for testing
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

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

Post by Bollar »

Hi Karl,

I upgraded to 3.1.3 from what was probably an ancient version and get the following error:

Code: Select all

  Starting plugin "fingscan 3.1.3" (pid 848)
  Started plugin "fingscan 3.1.3"
  fingscan                        startup called
  fingscan Error                  Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 1079, in runConcurrentThread
  File "plugin.py", line 683, in checkIndigoVersion
<type 'exceptions.NameError'>: global name 'getIndigoData' is not defined

  fingscan Error                  plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  fingscan Error                  Error in plugin execution runConcurrentThread:
I thought I zapped all older versions of fing and activity monitor says fing isn't running.
Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts
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 »

https://www.dropbox.com/s/n9eaqz0zj9q0r ... n3-1-4.zip

fixes
Traceback (most recent call last):
File "plugin.py", line 1079, in runConcurrentThread
File "plugin.py", line 683, in checkIndigoVersion
<type 'exceptions.NameError'>: global name 'getIndigoData' is not defined

still learning py: self.getIndigoData() is not the same as getIndigoData(self)


Karl
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

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

Post by Bollar »

Very good. Moved on to a new problem:

Code: Select all

Jan 27, 2014, 12:39:13 PM
  Enabling plugin "fingscan 3.1.4"
  Starting plugin "fingscan 3.1.4" (pid 9934)
  Started plugin "fingscan 3.1.4"
  fingscan                        startup called
  SQL Logger                      creating table variable_history_55180559 for "ipDevsLastUpdate"
  fingscan                        inititializing fing
  fingscan                        new device added ipDevice01
  fingscan                          value ['88:1F:A1:2A:70:C3       ', '   10.0.0.105   ', '   2014-01-27 12:38:18   ', 'up', '           1               ', '   iphone-xyz                ', '                           ', '  mba.myaddress.com ', ' ']
  SQL Logger                      creating table variable_history_1029893635 for "ipDevice01"
  fingscan                        triggering  NewDeviceOnNetwork

Jan 27, 2014, 12:39:58 PM
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan Error                  fing.data file does not exist 
  fingscan Error                     trying -3 more times
  fingscan Error                  ----------------------------------------------------------------------------------
 
Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts
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 »

that should fix itself after some minutes... fing is not running or in old configuration..

after some minutes fingscan will restart FING and it should work. let me know if not.

Karl
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

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

Post by Bollar »

kw123 wrote:that should fix itself after some minutes... fing is not running or in old configuration..

after some minutes fingscan will restart FING and it should work. let me know if not.

Karl
The variables are being created, but I don't know enough about the internals to know if there are other problems. Here's the current log:

Code: Select all

Jan 27, 2014, 12:53:17 PM
  fingscan Error                  fing not active, restart fing

Jan 27, 2014, 12:53:36 PM
  fingscan Error                  fing restarted successfully

Jan 27, 2014, 12:54:08 PM
  fingscan                        new device added ipDevice05
  fingscan                          value ['00:19:9D:01:A4:A4       ', '   10.0.0.48   ', '   2014-01-27 12:54:06   ', 'up', '           1               ', '   iphone-xyz                ', '  VIZIO                         ', '  atv.myaddress.com ', ' ']
  SQL Logger                      creating table variable_history_817128246 for "ipDevice05"
  fingscan                        triggering  NewDeviceOnNetwork

Jan 27, 2014, 12:55:40 PM
  fingscan                        new device added ipDevice06
  fingscan                          value ['48:02:2A:4C:E2:54        ', '   10.0.0.84   ', '   2014-01-27 12:55:38   ', 'up', '           1               ', '   iphone-xyz                ', '  B-Link Electronic      ', '  cam.myaddress.com          ', ' ']
  SQL Logger                      creating table variable_history_1678316370 for "ipDevice06"
  fingscan                        triggering  NewDeviceOnNetwork

Jan 27, 2014, 12:56:30 PM
  fingscan Error                  fing not active, restart fing

Jan 27, 2014, 12:57:03 PM
  fingscan Error                  fing restarted successfully

Jan 27, 2014, 12:59:48 PM
  fingscan Error                  fing not active, restart fing
Anyway, if it's a problem, please let me know and I will look closer.
Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts
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 »

it takes about 1-2 minutes for FING to become stable.. i.e. first cycle will take longer when it discovers your network. then it surveys network every minute. after 2 cycle it should be stable, i.e. update FING.data once per minute.

FINGSCAN checks if
1. fing.data and FING.log exists ==> if not restart FING after some minutes and check again. (the log file shows that)
2. if FING.data changed . if not for 3 minutes restart FING.

FING.data is a complete listing of all devices known to FING, updated on a fixed schedule i.e. 1/minute
FING.log shows any new devices or devices that went from down to UP as they occur ~ 1-3 seconds after it happens

FINGSCAN reads both (as well as FINGERROR.log) and tries to manage any kind of state (hang, not running, no updates,...)


let me know if it does not stabilize itself, then I have to tune the timing of restarts etc.

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

https://www.dropbox.com/s/atp9r0cvjh6ao ... n3-1-5.zip

v3-1-5

many more error checking statements to check for potential issues

- deleted variables
- wrong fing config
- hang/ stuck fing
- incomplete variables...

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

https://www.dropbox.com/s/oaqbeuknd0li4 ... -3-2-0.zip

new version: 3-2-0

additional functionality: create a list of all services / ports per IPdevice. Listed in the log file with some nice formatting
can be access through menu: /Plugins/fingscan/get details of services of IP devices

I misused the "error log" feature to separate the lines. The Error entry should be ignored.. see attached image

it shows FING info as well as your info from the IP Devices variables: Nickname /vendor / ...

will post on this site after some more testing.

Karl
Attachments
logfile.tiff
logfile.tiff (410.55 KiB) Viewed 5314 times
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 »

a new and "final" version 3.2.1 (if there are no bug fixed) is posted http://www.perceptiveautomation.com/fil ... words=fing


It offers a full report of all IP devices on your network (IP number, ports/services by each device)

Karl
HBRuss
Posts: 42
Joined: Thu Feb 20, 2014 10:25 pm

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

Post by HBRuss »

Hello, I'm new to Indigo and have been using Fing for only a few weeks.

Just the other day I attempted to migrate my Indigo installation from one Mac to another. Followed PA's instructions and got it working with some help from Jay.

Everything is working well except the Fing plugin doesn't seem to be functioning properly. Every minute or so this message pops into the log:

Mar 3, 2014, 9:42:22 PM

fingscan Error seems that FING is not active - no change in data, restart fing

fingscan FING initializing

fingscan FING initialized .. created new data

fingscan Error fing restarted successfully



Any ideas or help would be greatly appreciated!
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 »

have you installed fing on the new box?

open a terminal and type: sudo fing ... then enter password if needed

if you see any fing output it is installed..
HBRuss
Posts: 42
Joined: Thu Feb 20, 2014 10:25 pm

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

Post by HBRuss »

Thanks Karl, I'll try that when I'm home. I'm out of town for a bit.

Is it normal for that text to appear in the log every minute? Maybe I just didn't notice it before?

I have tried to remove the plugin and drag a fresh copy back into the plugins folder. But I'll do the terminal recommendation when I'm back.

Thank you for the quick response!
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 »

no, this means fing is not producing any new output although the second message after fing restart suggests it does...?

anyway, if you have not physically installed fing it likely is the problem.. go to the http://overlooksoft.com/download page and download & re-install fing


Karl
Post Reply

Return to “User Plugins”