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:17] – donpdonp | geofencedsl [2024/01/31 04:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| == GeoFence DSL == | == GeoFence DSL == | ||
| - | javascript | + | Allow users to write javascript |
| + | 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 (ace.inside_trigger_time | + | |
| email(" | email(" | ||
| } | } | ||
| } | } | ||
| </ | </ | ||
| + | |||
geofencedsl.1295993826.txt.gz · Last modified: 2024/01/31 04:08 (external edit)