GeoFence Tracking

Posted on
Tue Sep 29, 2015 2:25 pm
bmalarky offline
Posts: 6
Joined: Sep 01, 2015

GeoFence Tracking

This is and awesome product!

I'm having some trouble setting the plugin to send notifications when a device has entered or exited a particular zone. I can create a trigger for each entry/exit of a particular device from a specific zone but not any device from any zone. The manual indicates that you can Set GeoFence Tracking on the iFindStuff configuration and it will enable logging to the Indigo Log (see below). I can't find the configuration setting so I can use the triggers to send an email via applescript when any active device moves into or out of a any Zone.


EXCERPT FROM MANUAL
You can also get a report of activity in the indigo log by checking Set GeoFence Tracking on in the iFindStuff Configuration."
When this is active you’ll see entries in the log such as:
Mike’s phone has left GeoFence Home
Bill’s iPad has entered GeoFence Bill’s Work
Jenny’s iPhone has left GeoFence Inner Home and entered GeoFence Outer Home

Posted on
Tue Sep 29, 2015 2:32 pm
bmalarky offline
Posts: 6
Joined: Sep 01, 2015

Re: GeoFence Tracking

Here is a copy of the script I was working on;

property emailAddress : "xxxx@gmail.com"
property personName : "John Doe"
property deviceEnteredGeoVar : "Geo Zone Variable"
property emailSubject : "John Moved"
property deviceID : "John's Phone"
property newline : ASCII character (10)

tell application "IndigoServer"
set emailBody to ""
set emailBody to emailBody & "Device: " & name of device deviceID
set emailBody to emailBody & newline & "Description: " & description of device deviceID
set emailBody to emailBody & newline & "Address: " & address of device deviceID
set emailBody to emailBody & newline & "Type: " & type of device deviceID
set emailBody to emailBody & newline & "Model: " & model of device deviceID
set emailBody to emailBody & newline & "On State: " & on state of device deviceID
set emailBody to emailBody & newline & "Value of " & value of deviceEnteredName of device deviceID
send email to emailAddress with subject emailSubject with body emailBody
end tell

The resulting email looks like this;

Device: John's Phone
Description:
Address: address unknown
Type: plugin
Model: iDevice
On State: false

but when I try to retrieve the deviceEnteredName variable for "John's phone" I get an error and the email won't send. I think it would be easier just to enable GeoFence tracking in the configuration but it isn't an available option.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 8 guests