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.
philc
Posts: 156
Joined: Tue May 17, 2011 8:36 pm

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

Post by philc »

Karl,
To add some information: I just got home today and logged into my headless server. First, all of my devices were last detected at 18 minutes after midnight. Fingscan had an error dialog that said Fing was not running. My event log was full of the same errors that Shutter reported earlier today.
So it sounds like the 19 minutes after midnight restart isn't happening, which is probably throwing the error.
Best,
Phil
philc
Posts: 156
Joined: Tue May 17, 2011 8:36 pm

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

Post by philc »

Separately, it seems I'm having some issues with Fing's accuracy. My iPhones are showing as expired - despite the fact they're here in the house and connected to wifi. They're plugged in (charging). This seems to happen to most of my wifi mobile devices. Their status never updates. Any ideas why? They both sync wirelessly.
Shutter
Posts: 345
Joined: Fri Mar 07, 2014 7:11 am
Location: London, UK

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

Post by Shutter »

Is this of any use?

One thing I noticed is the way my password is displayed in the log. In the first instance password entered=password: "xxxxxxxxxx" it is shown backwards with extra alphanumeric characters at both ends, but later on at FING cmd= echo 'xxxxxxxxxx' it is shown correctly. Is that normal?

Thanks for taking a look at this.

Simon

Code: Select all

 Stopped plugin "fingscan 4.10.13"
  Enabling plugin "fingscan 4.10.13"
  Starting plugin "fingscan 4.10.13" (pid 81236)
  Started plugin "fingscan 4.10.13"
  fingscan                        FINGSCAN--V 4-10-13   initializing     will take ~ 2 minutes...
  fingscan                        killing ping jobs: all
  fingscan                        killing : 78594
  fingscan                        killing : 78596
  fingscan                        killing : 78597
  fingscan                        killing : 78598
  fingscan                        killing : 78602
  fingscan                        killing : 78603
  fingscan                        killing : 78604
  fingscan                        killing : 78605
  fingscan                        indigo variables initialized
  fingscan                        leaving WiFi parameters at default, not configured in 'Configure'
  fingscan                        ipDevice folder already exists
  fingscan                        getting password
  fingscan                        password entered=password: "xxxxxxxxxx"

  fingscan                        get password done
  fingscan                        loaded indigo data
  fingscan                        FING initializing
  fingscan                        testing if FING is running 
  fingscan                          FING running pids2= ['']
  fingscan                          killing FING Processes pids   all - ['']
  fingscan                        testing if FING is running 
  fingscan                          FING running pids2= ['']
  fingscan                          FING still running,  pids = ['']--[]
  fingscan                        FING cmd= echo 'xxxxxxxxxx' | sudo -S /usr/bin/fing  -o table,csv,'/Users/indigo/Documents/fing/fing.data'  log,csv,'/Users/indigo/Documents/fing/fing.log'  >> '/Users/indigo/Documents/fing/fingerror.log'  > /dev/null 2>&1 &
  fingscan                          waiting for FING to start and produce output pid:81290
  fingscan                        testing if FING is running 
  fingscan                          FING running pids2= ['']
  fingscan                          killing FING Processes pids   onlyParents - ['']
  fingscan                        testing if FING is running 
  fingscan                          FING running pids2= ['']
  fingscan                          FING still running,  pids = ['']--[]
  fingscan                        FING initialized ..  created new data   waiting ~ 1 minute for stable operation
  fingscan                        settings:  iDevicesEnabled              True
  fingscan                        settings:  inbetweenPingType            parallel
  fingscan                        settings:  wifiRouter                   0
  fingscan                        settings:  wait seconds between cycles  3
  fingscan                        settings:  password entered             True
  fingscan                        

  fingscan                        printEvents: no EVENT defined 

  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        dev Stop called for xxxxxxxxxx
  fingscan                        dev start called for xxxxxxxxxx
  fingscan                        launching ping for : 192.xxx.0.6 pid= 81319 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.9 pid= 81320 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.4 pid= 81322 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.16 pid= 81323 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.1 pid= 81325 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.8 pid= 81326 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.11 pid= 81328 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.21 pid= 81330 theMAC= xxxxxxxxxx timestamp=50:15
  fingscan                        launching ping for : 192.xxx.0.13 pid= 81376 theMAC= xxxxxxxxxx timestamp=50:18
  fingscan                         ping file for 192.168.0.13 older than  : 2.9
  fingscan                        killing ping jobs: xxxxxxxxxx
  fingscan                        killing : xxxxxxxxxx-81376
 fingscan                        FINGSCAN initialized
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 »

Simon: some clarification:
- you replaced the device names with XXXXXX?
- the password in the log file is not shown in clear text only if you log the actually sudo xxx -s fing command its is show as it is.. my little homegrown encryption method..is exposed now :lol:
just saw in your log file that your base network is 192.168.0.x mine is 192.168.1.x should work, but will check if that poses a problem.

the log file looks as its should look... is it working now??

philc:
could you check ~/documents/fing/fing.log
it should show all devices coming back online with time stamp. If they are not in there they are offline.
if they are shown like this

Code: Select all

2014/09/15 15:59:50;up;192.168.1.250;;;F8:27:93:59:9D:B2;
2014/09/15 16:00:47;down;192.168.1.250;;;F8:27:93:59:9D:B2;
2014/09/15 16:00:56;up;192.168.1.250;;;F8:27:93:59:9D:B2;
2014/09/15 16:12:03;up;192.168.1.24;;;90:F1:AA:38:DD:12;
2014/09/15 16:20:47;down;192.168.1.250;;;F8:27:93:59:9D:B2;
2014/09/15 16:22:44;up;192.168.1.250;;;F8:27:93:59:9D:B2;
2014/09/15 16:27:47;down;192.168.1.24;;;90:F1:AA:38:DD:12;
 
fingscan should show them the same way. ...BUT if you have enabled PING in-between FING cycles, it will overwrite the FING info (set them to "down" ) if the devices do not answer to the pings

Also could you install v 4.10.13

thanks for you patience..


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 »

Simon. looking at your log file:

192.xxx.0.13 is not answering to pings:

Code: Select all

  fingscan                        launching ping for : 192.xxx.0.13 pid= 81376 theMAC= xxxxxxxxxx timestamp=50:18
  fingscan                         ping file for 192.168.0.13 older than  : 2.9
  fingscan                        killing ping jobs: xxxxxxxxxx
  fingscan                        killing : xxxxxxxxxx-81376
It means. FINSCAN has launched a shell script with a loop of pings for IP number ....13 and ...13 has not answered in 2.9 seconds. Hence it assumes it is "down". Then it killed the shell with the ping loop for that IP number.

This indicates that your phone is offline or you have a device that is not answering any PINGS like for example a VONAGE voip box.

Karl
Shutter
Posts: 345
Joined: Fri Mar 07, 2014 7:11 am
Location: London, UK

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

Post by Shutter »

kw123 wrote:Simon: some clarification:
- you replaced the device names with XXXXXX?
- the password in the log file is not shown in clear text only if you log the actually sudo xxx -s fing command its is show as it is.. my little homegrown encryption method..is exposed now :lol:
just saw in your log file that your base network is 192.168.0.x mine is 192.168.1.x should work, but will check if that poses a problem.

the log file looks as its should look... is it working now??

thanks for you patience..

Karl
Hi Karl,

I did replace the device names with XXXXXX - didn't fancy broadcasting my naming convention. :wink:

It appears to be working now. Whatever you did seems to have fixed it.

And thank you for your patience and for a very useful plugin.

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

13 is the lucky number ... will start with version 13 from now on :mrgreen:
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 »

Karl,

Just got back from a fantastic break, can I ask did you find the problem that was causing the Mac to lock up? I've gone back and cannot see any reference to a fix.

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

Gareth,
I saw you are using snitch. I tried that and had some problems, but not as bad as you described. I did some tuning with # of files open, but is it.

Difficult to test if I can't reproduce the problem.


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

Just to let you know I have it installed now and I've not seen any issues at all since, so it looks as if you caught it. :)

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

some magic stuff is going on... happy to hear..
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/4vawarc00v63m ... 4.zip?dl=0 v4-10-4

Fixed: minor inconvenience...

FINGSCAN restarts at 00:19 every day on its own .. just to make sure..
If the startup went very fast (~ 30 seconds) it might have restarted twice in the same minute. It could still be 00:19 when the second restart time check happened.
This version will restart start once only i.e. will not check restart timestamp for several minutes after start.

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 »

the latest version (4-10-4) previously posted seems to work fine under OSX 10.10 Yosemite

Karl
Simon
Posts: 32
Joined: Thu Aug 15, 2013 8:37 am
Location: Denmark

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

Post by Simon »

Hello

My hard drive died so I decided to put in a SSD and reinstall os x. I restored Indigo from backup, but I can't get Fing to work. I tried reinstalling??

I keep getting this in the log every 5 minutes:


10/11/2014 16.43.13
fingscan Error ----------------------------------------------------------------------------------
fingscan Error seems that FING is not active - no change in data, restarting fing
fingscan Error ----------------------------------------------------------------------------------
fingscan FING initialized .. created new data waiting ~ 1 minute for stable operation
fingscan Error ----------------------------------------------------------------------------------
fingscan Error fing restarted successfully
fingscan Error ----------------------------------------------------------------------------------
fingscan Error ----------------------------------------------------------------------------------
fingscan Error seems that FING is not active - no change in data, restarting fing
fingscan Error ----------------------------------------------------------------------------------
fingscan FING initialized .. created new data waiting ~ 1 minute for stable operation
fingscan Error ----------------------------------------------------------------------------------
fingscan Error fing restarted successfully
fingscan Error ----------------------------------------------------------------------------------
fingscan Error ----------------------------------------------------------------------------------
fingscan Error seems that FING is not active - no change in data, restarting fing
fingscan Error ----------------------------------------------------------------------------------
fingscan FING initialized .. created new data waiting ~ 1 minute for stable operation
fingscan Error ----------------------------------------------------------------------------------
fingscan Error fing restarted successfully
fingscan Error ----------------------------------------------------------------------------------
fingscan Error ----------------------------------------------------------------------------------
fingscan Error seems that FING is not active - no change in data, restarting fing
fingscan Error ----------------------------------------------------------------------------------
fingscan FING initialized .. created new data waiting ~ 1 minute for stable operation
fingscan Error ----------------------------------------------------------------------------------
fingscan Error fing restarted successfully
fingscan Error ----------------------------------------------------------------------------------
fingscan Error ----------------------------------------------------------------------------------
fingscan Error seems that FING is not active - no change in data, restarting fing
fingscan Error ----------------------------------------------------------------------------------
fingscan Error ----------------------------------------------------------------------------------
fingscan Error (re)started FING 5 times, quiting ... reloading the plugin
fingscan Error ----------------------------------------------------------------------------------
fingscan --> while loop break stopping ... quitNOW was:yes
Reloading plugin "fingscan 4.10.14"
Stopping plugin "fingscan 4.10.14" (pid 1035)
fingscan stopConcurrentThread called 2
fingscan stopConcurrentThread called 3
fingscan shutdown called
Stopped plugin "fingscan 4.10.14"
Starting plugin "fingscan 4.10.14" (pid 1740)
Started plugin "fingscan 4.10.14"
fingscan FINGSCAN--V 4-10-14 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 found: 10.0.0.0
fingscan FING initializing
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 1
fingscan settings: password entered True
fingscan settings: debugLevel 0
fingscan settings: FINGSCAN will scan Network 10.0.0.1-255
fingscan

fingscan printEvents: no EVENT defined
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) did your password change?
(b) you need to INSTALL FING -- copy does not work

try the following:

open terminal window and type:
sudo fing

then enter your password

if the password is the same and it works... FING should work fine ..
Then I need to think about whats wrong

try that first.

hope that helps

Karl
Post Reply

Return to “User Plugins”