User Tools

Site Tools


geofencedsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
geofencedsl [2011/01/25 22:33] donpdonpgeofencedsl [2024/01/31 04:08] (current) – external edit 127.0.0.1
Line 32: Line 32:
 </code> </code>
  
-A fence attached blob will provide the fence variable+Send an email if I'm at the ACE for 10 minutes (blob attached to the fence)
 <code> <code>
  if (event.verb == "IN") {  if (event.verb == "IN") {
-    if ((new Date()) - ace.inside_trigger_time > 10.minutes) {+    if ((new Date()) - fence.inside_trigger_time > 10.minutes) {
       email("brennan", "Nerdout at the ACE Hotel!")       email("brennan", "Nerdout at the ACE Hotel!")
     }     }
geofencedsl.1295994789.txt.gz · Last modified: 2024/01/31 04:08 (external edit)