This shows you the differences between two versions of the page.
geofencedsl [2011/01/25 14:11] donpdonp |
geofencedsl [2016/06/25 11:25] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | == GeoFence DSL == | ||
- | javascript language. | ||
- | |||
- | |||
- | Variables | ||
- | < | ||
- | detail = { fence : <The specific fence that caused the event> | ||
- | date : <trigger date> | ||
- | verb : IN | OUT | ||
- | } | ||
- | fences[] - access to each of the defined geofences | ||
- | |||
- | inside_fences[] - list of fences currently " | ||
- | </ | ||
- | | ||
- | < | ||
- | if detail.verb == " | ||
- | email(" | ||
- | } | ||
- | </ | ||
- | |||
- | < | ||
- | ace = fences[" | ||
- | if (detail.verb == " | ||
- | if (ace.inside_trigger_date - Time.now > 15.minutes) { | ||
- | email(" | ||
- | } | ||
- | } | ||
- | </ |