geofencedsl
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| geofencedsl [2011/01/25 22:26] – donpdonp | geofencedsl [2024/01/31 04:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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 | + | Send an email if I' |
| < | < | ||
| - | 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.1295994389.txt.gz · Last modified: 2024/01/31 04:08 (external edit)