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.
MarcoGT
Posts: 1148
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

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

Post by MarcoGT »

I am using the last official version, not a beta one :)

That means, that if during the night I will put it in "airplane mode", it will be set as "away"...that means, no more "airplane mode" during the night :)

I will begin to play with it this evening :)

Thanks
MarcoGT
Posts: 1148
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

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

Post by MarcoGT »

I do not understand why my iPhone (4S with latest iOS) continues to toggle UP/DOWN.
See attachment.

2015/01/30 16:24:11;down;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:26:27;up;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:27:11;down;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:35:46;up;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:36:11;down;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:45:07;up;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:46:12;down;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:55:02;up;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 16:56:12;down;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 17:04:56;up;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 17:06:12;down;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 17:14:52;up;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
2015/01/30 17:16:12;down;192.168.1.181;;;3C:D0:F8:D2:E4:DA;Apple
[/code]

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

check ~/find/fing.log it gives you the info as delivered by FING. if that does not reflect the changes then disable usePING for that device and see if that helps..

OR GET AN ASUS ROUTER that works very well ~ 2 seconds response time when I come home ..
MarcoGT
Posts: 1148
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

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

Post by MarcoGT »

Ok, I will have a look at Fing logs file :)

I have a Fritz!Box :)
Here in Germany is the most sold :)
juntta
Posts: 150
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Using Fing as a new way to detect smartphone presence

Post by juntta »

Karl, is it possible to use plugin to scan network devices if they have specific port open and detect that way if the device is on/off? Just asking because many low powered devices are replying to ping even though they are in sleep/low power state. Apple TV is one example of devices acting like this.
Last edited by juntta on Tue Feb 03, 2015 11:02 am, edited 1 time in total.
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 power sleep mode of wifi battery devices is special I believe as compared to e.g. apple TVwifi ==> it is powered. I looked at the WIFI status page on the router for my apple TV and it never went into the PSM mode like an iPhone.

I was trying to "ping" specific ports. but after 2 days gave up. Its not really "ping" but there are tools that can do it. .. it gets complicated very fast..

Might look into it sometime in the future.


thanks for asking

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 think this is the correct forum for this. Today I noticed that fingscan seemed to take longer than usual to detect my (or rather my iPhone's) return home, so I checked the fingscan (4.10.25) plugin config and changed the Min bf. HOME can re-trigger: to 1 minute. The default value was five, although I can't remember if I set it to that before, since it used to trigger almost immediately when I arrived home (definitely not five minutes). Anyway, I click CONFIRM and then Save. I get a red message to the left of the Cancel/Save buttons "Error validating fields. Hover over the red field labels above to see the error reason." Except there are no red field labels, and I get the following message in the log:

Code: Select all

fingscan Error                  Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 719, in validatePrefsConfigUi
<type 'exceptions.ValueError'>: invalid literal for int() with base 10: ''
The only option is to Cancel, and of course the new value isn't saved. It has been working flawlessly (and probably still is) except that I want a quicker return response as before. Any suggestions? TIA
Attachments
Ria4Hn6j29fLoaYy7F7-3I_d6NOFm2o4zPnncminTHU.png
Ria4Hn6j29fLoaYy7F7-3I_d6NOFm2o4zPnncminTHU.png (189.33 KiB) Viewed 8209 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 »

select a value for seconds to sleep ..., the default is 1 but sometimes it shows "select an item.." that translates into a blank and then the conversion to an integer fails.

will post a new version where that exception is caught.


Karl
Last edited by kw123 on Wed Mar 11, 2015 11:29 pm, edited 2 times in total.
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 »

Ok I'll try that when I'm back. Out of curiosity did the update reset the home trigger to 5 minutes as well? I didn't even think about recofiguring the plugin after the update.


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

the 5 minutes for HOME is defined as follows: if it triggered AWAY , it will wait 5 minutes before it can trigger HOME. It will not wait 5 minutes before it triggers the first time.

This is useful if you have phone that goes in an out when its WIFI disconnects and reconnects.
When you set these parameters to zero it will immediately trigger in these circumstances home/away/home every x minutes if your cell phones goes to sleep and wakes up again.
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 »

Ok I remember now. Time to reread the setup instructions again. This thing had been working flawlessly, so I don't recall all the variables.


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

Greetings again: FYI, I just updated to 4-11-04 and get this in the log:

Code: Select all

  fingscan Error                  Error in plugin execution startup:

Traceback (most recent call last):
  File "plugin.py", line 283, in startup
  File "plugin.py", line 1065, in cleanUpEvents
<type 'exceptions.NameError'>: global name 'emptyEvent' is not defined

Mar 13, 2015 10:50:43 PM
  fingscan                        FINGSCAN initialized
Since it initialized I assume it is OK. I went to the configure menu, to check to see if I had to update anything (like I forgot to last time), and get about 19 or so of these messages in the log (they differ by the MACnumberXXFilter) when the config menu opens (not changing anything):

Code: Select all

Mar 13, 2015 10:51:10 PM
  fingscan Error                  Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
  File "plugin.py", line 767, in IPdeviceMACnumber19Filter
  File "plugin.py", line 784, in IPdeviceMACnumberFilter
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'IPretList'
Then a bit ago (while I was typing this actually):

Code: Select all

Mar 13, 2015 10:55:24 PM
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan Error                  seems that FING is not active - no change in data, restarting fing, seconds since last change: 280.786175013
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan                        FING initialized ..  created new data   waiting ~ 1 minute for stable operation
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan Error                  fing restarted successfully
  fingscan Error                  ----------------------------------------------------------------------------------
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 »

Please renter your password in config. See if it still does that. This error message is due to the fact that the finglog file is not changing. Most likely fing is not running properly. And the reason for this is the password is wrong.


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 »

Thanks for the reply. When I reopened the config dialog, there were no errors in the log, like before. My "password is already stored", and it has not changed. I'll make your suggested change tomorrow, and report back. I'm trying to tie up a few loose ends here before sleep.
Marty
Posts: 11
Joined: Wed Apr 29, 2015 10:46 am

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

Post by Marty »

Hi folks - first time posting. Just purchased and installed Pro last night!

I've got FingScan up and working however I have a question: I have set up my devices on the network with a 255.255.0.0. submask.

Basically using
  • x.x.1.x as basic infrastructure (airports, etc)
  • x.x.2.x as smart/embedded devices
  • x.x.3.x for things like my Apple TV, Playstation etc
  • x.x.4.x for my wireless devices in a reserved range and DHCP clients above the reserved range
My question is - once FingScan is up and running, it only scans the x.x.1.x range. Is there a way to make it only scan x.x.4.100-255 range? Or do I need to have my indigo server in the x.x.4.x IP range?

Thanks :)
Post Reply

Return to “User Plugins”