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 »

evansgo wrote:Hello,
I'm having some problems with this, can you offer any advice please?
Fing appears to be running fine, I can can see the various devices coming up and down in the finglog.
The fingscaninstall script appears to load fine, but then I get the error message "Can't get text 2 thru -1 of " ". The list of variables does appear to get made although I do not get asked for any names, but it only appears to run the once, no changes are highlighted.

Running mavericks on the newest version of Indigo on a Mac mini and there are about 22 devices identified.
Mmm, something def broken here.
I deleted all of the variables including ipDevsDoNotAsk, so then it started to ask me again, and I entered them as I was going but it also kept asking me for the same ip 's again and then when I waited too long the box vanished, it then got set to doNotAsk and I immediately started getting the error messages.

Hope that helps...
Seeker
Posts: 441
Joined: Mon Aug 05, 2013 5:08 am

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

Post by Seeker »

ok, i noticed i missed this step:

1.)
create a trigger that fires if a new devices shows up on the network
Step 1: create trigger:
name: "NewDeviceOnNetwork"
trigger on any change of variable ipDevsNoOfDevices
action: speak " new device on network " or whatever you like to do

actually, i did the step but i used the wrong variable to monitor. i do not have the variable ipDevsNoOfDevices in my variable list. was it supposed to be created by the script?


Seeker wrote:any ideas on this?

ec 8, 2013, 9:59:24 AM
Script FINGSCAN-1-6-2: initialize
Trigger fing new ip number
Error failed to execute script because script could not be compiled

Dec 8, 2013, 10:02:49 AM
Error script error: around characters 182 to 183
Error script error: Expected expression but found unknown token. (-2741)
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 »

could you try to download this version: https://www.dropbox.com/s/eq6q69zg1zofw ... n1-6-3.zip

in download: click on fingscanin1-6-3.zip
in the fingscanin1-6-3 folder double click on finscaninstall
in applescript click on the "run" button
click ok .. enter password... should launch fingscan

let me know if there are other problems.

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 »

I hate to say it but this version doesn't do anything!
I deleted all the variables to give it a good restart, then ran the script and that was it nothing happened at all. No prompts, no variables created, nothing...
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 »

in "activity monitor" is Fing and fingscan running?

and is there anything in the indigo log file?
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 »

after deleting all devices etc, fingscan starts and populates the devices. need to understand what is different in your environment.

try this one. It names the variables correctly (ipDevicexx instead of ipDevicex). otherwise no change.
https://www.dropbox.com/s/q41ps5r2hpmsu ... -1-6-4.zip

once it times out waiting for you to enter a device name it goes into "doNotAsk" mode and just adds all the other devices

Karl
Seeker
Posts: 441
Joined: Mon Aug 05, 2013 5:08 am

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

Post by Seeker »

i haven't tried either of these new versions. watching the conversation.

do i need to delete all the variable? or what is the appropriate upgrade step?
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 »

in principle do not delete anything, only if you want to have the numbers changed (they are assigned as an IP packages from each device comes by the MAC i.e. in random sequence).
once deleted you will need to change iPhone-xyz to your nickname for each device.

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 »

Sorry been away - I'll give it a go now.
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 »

OK well no difference. I run the script, I get asked for the password then the result comes up true, but nothing happens at all in indigo log
Seeker
Posts: 441
Joined: Mon Aug 05, 2013 5:08 am

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

Post by Seeker »

similar for me. it asks for the pw then says installed. it does not go through the variable creation like it did the first time.
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 »

could you start fingscan manually: go to /Users/yourusername/Documents/fing , then click on Fingscan.app, or check if finpscan.app is in that directory?
Seeker
Posts: 441
Joined: Mon Aug 05, 2013 5:08 am

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

Post by Seeker »

it's there.

Dec 8, 2013, 1:47:00 PM
Script FINGSCAN-1-6-4: initialize
Script FINGSCAN-1-6-4: ERROR: two instances of fingscan are running, this one will quit 2
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 »

could you open a terminal and copy & paste the following:

ps aux | grep 'fingscan.app' | grep -v 'grep'

and post the result?


this is the code:
=============
-- quit if another instance is already running
try
set theResponse to do shell script "ps aux | grep 'fingscan.app' | grep -v 'grep' | awk '{print $2}' "
end try
set ii to count words of theResponse

if ii > 1 then
debLog(-1, " ERROR: two instances of fingscan are running, this one will quit " & ii)
quit -- run just one instance
return 2
end if
==========

it finds another app FINGSCAN.APP running

Karl


... I am out for 1 hour, will check back after 3pm CT
Last edited by kw123 on Sun Dec 08, 2013 2:07 pm, edited 1 time in total.
Seeker
Posts: 441
Joined: Mon Aug 05, 2013 5:08 am

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

Post by Seeker »

Last login: Fri Dec 6 11:40:01 on console
mini:~ user$ ps aux | grep 'fingscan.app' | grep -v 'grep'
user 4352 0.0 0.3 2539692 13316 ?? S 8:32AM 0:25.92 /Users/user/Downloads/fingscaninstall/fingscan.app/Contents/MacOS/applet -psn_0_3154690
mini:~ user$
Post Reply

Return to “User Plugins”