Using Fing as a new way to detect smartphone presence
Re: Using Fing as a new way to detect smartphone presence
Interestingly (or not) my Smartphone Radar configuration dialog is different. Since I've got a TimeCapsule, SPR is configured to look at it directly, not a log file.
Running Indigo 2024.2.1 on a 24" iMac M4), OS X 26.0
Jeff
Jeff
Re: Using Fing as a new way to detect smartphone presence
you have to " select router: ==> Fing log"
Re: Using Fing as a new way to detect smartphone presence
the newly posted V 3.1.1 is now a regular plugin.
Additional features:
1. your can setup triggers in Trigger /Type:fingscan event
- new IP Device on network
- IP number of a device has changed
They are regular indigo triggers.
within the trigger action you should check the appropriate variables to see which device has been changed. See examples in read me.
You still can continue to set a trigger directly on the variables ( variable changed, contains ;up; ;down; etc).
2. in menue Plugin/fingscan you can
- save data to a file ... good idea to do this once when you have good and complete data
- restore from file
- and sort devices with increasing IP numbers.
Compared to the applescript version you now MUST enter the password in menu plugins/fingscan/configure.
without that it will not work properly as FING needs your password to run properly.
The password is stored encrypted in the keychain for re-use after reboot etc.
you still can modify the variables .. any text after column "Status" is freely editable and will be kept.
Karl
Additional features:
1. your can setup triggers in Trigger /Type:fingscan event
- new IP Device on network
- IP number of a device has changed
They are regular indigo triggers.
within the trigger action you should check the appropriate variables to see which device has been changed. See examples in read me.
You still can continue to set a trigger directly on the variables ( variable changed, contains ;up; ;down; etc).
2. in menue Plugin/fingscan you can
- save data to a file ... good idea to do this once when you have good and complete data
- restore from file
- and sort devices with increasing IP numbers.
Compared to the applescript version you now MUST enter the password in menu plugins/fingscan/configure.
without that it will not work properly as FING needs your password to run properly.
The password is stored encrypted in the keychain for re-use after reboot etc.
you still can modify the variables .. any text after column "Status" is freely editable and will be kept.
Karl
- matt (support)
- Site Admin
- Posts: 21542
- Joined: Mon Jan 27, 2003 1:17 pm
- Location: Texas
- Contact:
Re: Using Fing as a new way to detect smartphone presence
Karl -- This is terrific. I'm thrilled to see some of your AppleScript solutions now coming to life as plugins. 
Re: Using Fing as a new way to detect smartphone presence
How does one install the plugin over the older version?kw123 wrote:the newly posted V 3.1.1 is now a regular plugin.
Karl
Where is the 3.1.1 version? Only see 3.1.0 in this thread.
thx...
Re: Using Fing as a new way to detect smartphone presence
I have a generic request and I've put it in here as it's partly to do with Fingscan (Thanks Karl!)
I am using a combination of fingscan and geohopper to modify variables and would love to hear how other people are using this sort of thing as I kind of have it working but feel that there is a much better way of doing it....
Currently I have fingscan modifying a variable GHome when my iPhone is home and DebHome when my wife is at home. I also have geohopper externally setting these variables via applescript when we get near home.
But then it gets a bit messy, as I am looking for a way to trigger another variable isHome if either of these variables change. isHome being my generic "someone is home" variable, that a load of other actions rely on.
Also I am looking to set isHome to away if we both leave (and visitors, so I need to easily add to it). Now I can do this with separate triggers, but I'm wondering if I can do this in a script - please note this is as much a learning exercise for me as a practical one as I have several other instances where I would like to do something similar.
Thanks all....
I am using a combination of fingscan and geohopper to modify variables and would love to hear how other people are using this sort of thing as I kind of have it working but feel that there is a much better way of doing it....
Currently I have fingscan modifying a variable GHome when my iPhone is home and DebHome when my wife is at home. I also have geohopper externally setting these variables via applescript when we get near home.
But then it gets a bit messy, as I am looking for a way to trigger another variable isHome if either of these variables change. isHome being my generic "someone is home" variable, that a load of other actions rely on.
Also I am looking to set isHome to away if we both leave (and visitors, so I need to easily add to it). Now I can do this with separate triggers, but I'm wondering if I can do this in a script - please note this is as much a learning exercise for me as a practical one as I have several other instances where I would like to do something similar.
Thanks all....
Re: Using Fing as a new way to detect smartphone presence
you need another level: here is how I would do this in general logic terms
if Ipdevicexx changes to ";up;" then set anyonehome = yes
if Ipdeviceyy changes to ";up;" then set anyonehome = yes
if Ipdevicezz changes to ";up;" then set anyonehome = yes
if geodevicestatus changes to "here" then set anyonehome = yes
and the otherway around
4 triggers:
if ipdevicexx changes to ";down;" and all other devices contain =";down;" then set anyonehome = no
in total 8 triggers and one extra variable
in indigo one trigger would look like:
trigger xx-up
- if variable ipDevicexx has any change
- condition: ipDevicexx contains ";up;"
- action: set variable anyonehome to "yes"
and same for yy zz and
trigegr xx-down
- if variable ipDevicexx has any change
- condition: ipDevicexx contains ";down;"
- condition: ipDeviceyy contains ";down;"
- condition: ipDevicezz contains ";down;"
- condition: geodevicestatus contains "away"
- action: set variable anyone home to "yes"
trigegr yy-down
- if variable ipDeviceyy has any change
- condition: ipDeviceyy contains ";down;"
- condition: ipDevicexx contains ";down;"
- condition: ipDevicezz contains ";down;"
- condition: geodevicestatus contains "away"
- action: set variable anyone home to "yes"
and the same for trigger yy-down
if Ipdevicexx changes to ";up;" then set anyonehome = yes
if Ipdeviceyy changes to ";up;" then set anyonehome = yes
if Ipdevicezz changes to ";up;" then set anyonehome = yes
if geodevicestatus changes to "here" then set anyonehome = yes
and the otherway around
4 triggers:
if ipdevicexx changes to ";down;" and all other devices contain =";down;" then set anyonehome = no
in total 8 triggers and one extra variable
in indigo one trigger would look like:
trigger xx-up
- if variable ipDevicexx has any change
- condition: ipDevicexx contains ";up;"
- action: set variable anyonehome to "yes"
and same for yy zz and
trigegr xx-down
- if variable ipDevicexx has any change
- condition: ipDevicexx contains ";down;"
- condition: ipDeviceyy contains ";down;"
- condition: ipDevicezz contains ";down;"
- condition: geodevicestatus contains "away"
- action: set variable anyone home to "yes"
trigegr yy-down
- if variable ipDeviceyy has any change
- condition: ipDeviceyy contains ";down;"
- condition: ipDevicexx contains ";down;"
- condition: ipDevicezz contains ";down;"
- condition: geodevicestatus contains "away"
- action: set variable anyone home to "yes"
and the same for trigger yy-down
Re: Using Fing as a new way to detect smartphone presence
here is the 3.1.1 version: http://www.perceptiveautomation.com/fil ... words=fing
and it should just install over any version. I would DELETE
1. finscan.app in ../Documents/fing
2. schedule relauchfinscan
Karl
ps . the recent posted version 3.1.1 has a small problem : error message when adding new device which does not prevent it from running, fixes itself within a minute in the next "loop looking for new data"
will fix soon.
and it should just install over any version. I would DELETE
1. finscan.app in ../Documents/fing
2. schedule relauchfinscan
Karl
ps . the recent posted version 3.1.1 has a small problem : error message when adding new device which does not prevent it from running, fixes itself within a minute in the next "loop looking for new data"
will fix soon.
Re: Using Fing as a new way to detect smartphone presence
http://www.perceptiveautomation.com/fil ... words=fing version 3.1.2 has the error fixed
Re: Using Fing as a new way to detect smartphone presence
Thank you, I'll give it a go later. I think that I'm over analysing it as I was trying to do it all in as few triggers as possible with a bunch of OR logic...
kw123 wrote:you need another level: here is how I would do this in general logic terms
Re: Using Fing as a new way to detect smartphone presence
I have a problem with the nick-names changing randomly. I have sorted them by IP recently, which I've not done before so not sure if that has anything to do with it. But I have about 40 items listed and three or four now have duplicate nicknames along with the hardware tag also being incorrect. My iPhone for instance is now shown as a Nest smoke detector! But the actual functionality does still seem to be correct.
For instance, in the screenshot the Sonos is 10.2, but the 10.1 entry is actually an apple device, I have changed them back and it reverts again after a while.
For instance, in the screenshot the Sonos is 10.2, but the 10.1 entry is actually an apple device, I have changed them back and it reverts again after a while.
- Attachments
-
- Screen Shot 2014-01-26 at 10.17.25.png (28.82 KiB) Viewed 5280 times
Re: Using Fing as a new way to detect smartphone presence
will check it out
could you give me some more info when this happens.. e.g. adding a device, deleting a device ..
could you give me some more info when this happens.. e.g. adding a device, deleting a device ..
Re: Using Fing as a new way to detect smartphone presence
I don't think that I did anything different, but it has only just started to happen within the last week maybe.
I'll set them back to what they should be and see what happens. Could it be anything to do with the load / save functions, I've only just started to try them out.....
On second thoughts, I did do some pruning of old expired IP's in the last week, it make be linked to that....
I'll set them back to what they should be and see what happens. Could it be anything to do with the load / save functions, I've only just started to try them out.....
On second thoughts, I did do some pruning of old expired IP's in the last week, it make be linked to that....
Re: Using Fing as a new way to detect smartphone presence
https://www.dropbox.com/s/7pcogn7xxfuko ... n3-1-3.zip
the code had one "tab" missing.. hope this fixes it. ..
and added some more debugging info .. and some other logic "improvements" hope they don't break anything. I have really tensed things now.
after you (evansgo) test it, I will post on indigo site.
thanks for debugging
Karl
the code had one "tab" missing.. hope this fixes it. ..
and added some more debugging info .. and some other logic "improvements" hope they don't break anything. I have really tensed things now.
after you (evansgo) test it, I will post on indigo site.
thanks for debugging
Karl
Re: Using Fing as a new way to detect smartphone presence
Thanks karl.
I'm using your plugin in conjunction with Matt and Jay's Advanced thermostat adjustment to set my temps when someone is or isn't home.
I'm using your plugin in conjunction with Matt and Jay's Advanced thermostat adjustment to set my temps when someone is or isn't home.
M4 Mac mini.
