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

I haven't noticed anything. Very little data is moving around.
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 »

Fing is listening continuously to any traffic. And once a minute it will ping all known devices that are not "expired". So 50 pings a minute if you have 50 devices. That's not a lot.


Sent from my iPhone using Tapatalk
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

Thanks for your feedback. Interesting subject. It is fun to expand Indigo with new plugins, but the most important is to maintain the stability and quick respons that I already have... I see that I dont have a clue about network traffic. To me 72000 pings a day seams to be a lot. What would be a lot?
Håvard
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 ping is ~ 2 times(send and reply) 50 bytes = 2*500 bits. That means at 10 Mbit Network capacity < 0.0001s seconds of load for the network (the actual response time can be seconds if the other partner does not answer)

so you would need > 10,000 pings a SECOND to really flood the network at 10 mbit network capacity. --- I know there are other limiting factors i.e. the mac , router etc, but I guess you get the point.

for FING I would be more worried about your MAC, if it can handle it, but I have not heard / seen any impact.

Karl
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

Thank you for a good explanation. I think it is better to know a little about the things I implement in my indigo setup. And thank you for your work on the plugin.

Håvard


Sent from my iPhone using Tapatalk
Håvard
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

So as far as I can see there are two plugins that sort of do the same thing. But if I use smartphone radar I have to start fing manually via terminal. If I use fingscan I have to set up triggers my self.
Is this correct? Which is recommended to use?

Håvard
Håvard
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 »

Will setup triggers in fingscan in the next 4 weeks.


Sent from my iPhone using Tapatalk
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

Sounds good. fingscan it is then.

Håvard
Håvard
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 »

now I have to do it.. :P
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

:D
Håvard
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 »

UPDATE for the next version, just started to work on it after INDIGOplotD...

the interface is ready, now on to the coding for the logic, that is normally the easier part .. at least for me. attached the menu structure

additional features:
- up to 10 different events/triggers can be generated with 5 devices that have to "off" for a definable time
- each devices can be picked by nickname/ ip-number/mac address from a menu
- an ixxx can be paired with smartphoneradar to set a minimal distance before events will fire
- each event has its own min OFF time before its 'away"
- this can also be used to trigger if e.g. the router is down or another device is gone from the network

any other features?

Karl
Attachments
Screen Shot 2014-07-18 at 9.40.38 PM.png
Screen Shot 2014-07-18 at 9.40.38 PM.png (102.19 KiB) Viewed 4817 times
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

Sounds like got my needs covered... Looking forward to test it!


Sent from my iPhone using Tapatalk
Håvard
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 the first VERY simple trigger working... rest is just work, no unknowns, just debugging code.

do you also need triggers "device added to network" or "IP number of a device has changed"? (*)

Karl

(*) thats pretty easy right now with the variables
- if variable ipDevsNewIPNumber has changed
- if variable ipDevsNewDeviceNo has changed
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

Device added can be useful if someone is connecting to my network. IP address changed is not that useful for me as of now.. But maybe something I haven't thought about? :)


Sent from my iPhone using Tapatalk
Håvard
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

Do you need some help with testing?


Sent from my iPhone using Tapatalk
Håvard
Post Reply

Return to “User Plugins”