Difference between revisions of "Trigger: Geofence Trigger"

m
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">
This trigger will fire when you enter or exit a specified area.
+
This trigger will fire when you enter or exit a specified area (defined as a Geofence). The trigger will fire once when you transition from one state to another. For example if you select the 'enter area' option, the trigger will fire when you were previously outside the area and your new location is within the area.
  
It is equivalent to the Location Trigger but uses the standard Android Geofence APIs so may work better and/or use less battery.</pre>
+
It is equivalent to the Location Trigger but uses the Google Play Services Geofence APIs so may work better and/or use less battery.
<br>
+
</pre>
'''Example Usage'''<br/>
 
Turns off WIFI and turns on mobile data when I leave the house.
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
  
Geoference (Home)
+
Please see [[Trigger:_Location_Trigger|Location Trigger]] and [[Geofences]]
</pre><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
  
Disable WIFI
+
'''Configuration Options'''
Enable mobile data
 
</pre><br>
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
Constraints
 
  
 +
* Zone name
  
</pre><br>
+
The name of the Geofence area that you wish to trigger on.
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
Local variables
 
  
 +
* Area Entered/Exited
  
</pre><br>
+
You can choose to trigger either when you enter the area or when you exit the area.
 +
 
 +
* Trigger if previous location unknown
 +
 
 +
If MacroDroid doesn't know your previous location (for example you have just rebooted your device) then the trigger will not typically fire if you meet the right criteria (as it doesn't know if you have transitioned from one state to another). If you want the trigger to fire in this situation then you can enable this option.
 +
 
 +
* Location Update Rate
 +
 
 +
This is just guidance for the Play Services library advising it how often you would like to check for location updates. The library will take this into consideration when deciding to check for Geofences but updates may vary considerably from the requested time.

Latest revision as of 13:33, 13 June 2024

This trigger will fire when you enter or exit a specified area (defined as a Geofence). The trigger will fire once when you transition from one state to another. For example if you select the 'enter area' option, the trigger will fire when you were previously outside the area and your new location is within the area.

It is equivalent to the Location Trigger but uses the Google Play Services Geofence APIs so may work better and/or use less battery.

Please see Location Trigger and Geofences

Configuration Options

  • Zone name

The name of the Geofence area that you wish to trigger on.

  • Area Entered/Exited

You can choose to trigger either when you enter the area or when you exit the area.

  • Trigger if previous location unknown

If MacroDroid doesn't know your previous location (for example you have just rebooted your device) then the trigger will not typically fire if you meet the right criteria (as it doesn't know if you have transitioned from one state to another). If you want the trigger to fire in this situation then you can enable this option.

  • Location Update Rate

This is just guidance for the Play Services library advising it how often you would like to check for location updates. The library will take this into consideration when deciding to check for Geofences but updates may vary considerably from the requested time.