Page 1 of 1

Smartphone radar always goes to device away status

PostPosted: Mon Apr 14, 2014 7:31 am
by captcurrent
Love the plugin... You did a great job on your installation guide even providing great links to get the syslog working

I think I may be missing something on the away feature

The way I read it and from my limited experience to date The smartphone status goes "away" automatically after the interval set in the configuration

This is probably a result that I imagine the syslog doesn't show the phone dropping its connection to the wifi

this in my use results in either a quick change to away status or a slow change when I actually physically leave

the best option i can come up is creating a script to ping the IP and keep they status at home when it is fact home....

is thee something simpler I am missing ? any help would be appreciated

Re: Smartphone radar always goes to device away status

PostPosted: Mon Apr 14, 2014 10:11 am
by Dewster35
Try iTunes wireless syncing for the device and keep iTunes open.

Re: Smartphone radar always goes to device away status

PostPosted: Mon Apr 14, 2014 10:25 am
by captcurrent
I am using an android smart phone.... I have been kind of backing away from Mac IOS thanks for the response though

What i threw together was the following applescript

Code: Select all
set IP_address to "10.0.1.51"
try
   set ping to (do shell script "ping -c 2 " & IP_address)
   log "good"
   using terms from application "IndigoServer"
      tell application "IndigoServer"
         set value of variable "DroidHome" to "true"
         set value of variable "AllPhonesAway" to "false"
      end tell
   end using terms from
on error
   using terms from application "IndigoServer"
      tell application "IndigoServer"
         set value of variable "DroidHome" to "false"
         set value of variable "AllPhonesHome" to "false"
      end tell
   end using terms from
end try


This took care of the problem in a non-graceful manner
what is strange is that Indigo 6 will only run it as an embedded script not as an attachment

Re: Smartphone radar always goes to device away status

PostPosted: Wed Apr 16, 2014 10:39 am
by captcurrent
found that script didn't always works

but this topic viewtopic.php?f=4&t=8664&hilit=ping+command

pervaded a solution to the ping issue