geofencedsl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
geofencedsl [2011/01/25 22:26] – donpdonp | geofencedsl [2011/01/25 22:33] – donpdonp | ||
---|---|---|---|
Line 2: | Line 2: | ||
Allow users to write javascript to do what they want to with geofence events. | Allow users to write javascript to do what they want to with geofence events. | ||
+ | Attach a code blob to a fence, to automatically be run on any event for that fence. | ||
+ | Attach a blob to the user account to run on any fence event. | ||
Line 23: | Line 25: | ||
</ | </ | ||
| | ||
- | Send an email on every fence crossing | + | Send an email on every fence crossing |
< | < | ||
if event.verb == " | if event.verb == " | ||
Line 30: | Line 32: | ||
</ | </ | ||
- | Email Brennan after being at the Ace for more than 10 minutes | + | A fence attached blob will provide |
< | < | ||
- | ace = fences[" | + | if (event.verb == " |
- | if (event.verb == " | + | if ((new Date()) - fence.inside_trigger_time > 10.minutes) { |
- | if ((new Date()) - ace.inside_trigger_time > 10.minutes) { | + | |
email(" | email(" | ||
} | } | ||
} | } | ||
</ | </ | ||
+ |
geofencedsl.txt · Last modified: 2024/01/31 04:08 by 127.0.0.1