Trigger - Compass
The trigger Compass executes the flow when the device changes its orientation.
Warning: This trigger uses the device hardware sensors and might increase battery usage (depending on device model). Some devices turn off the sensors when the screen is off.
- Play a beep sound when the device is heading north.
- Periodic: executes the flow in periodic time intervals
- On Change: executes the flow when the orientation changed for at least some degrees.
- On Relative Sector Change: Remembers the device orientation when this trigger is enabled first, divides the orientation into the specified number of equal sectors and executes the flow whenever the device stays in a different sector.
When 4 sectors are desired the 360° possible degrees are divided into 4 sectors with an opening angle of 90° each. The sectors are relative to the initial device orientation when the trigger was enabled.
- Sector 1: 315° to 45°
- Sector 2: 45° to 135°
- Sector 3: 135° to 225°
- Sector 4: 225° to 315°
See action Script for a description.
azimuth_sector(On Relative Sector Change only)
pitch_sector(On Relative Sector Change only)
roll_sector(On Relative Sector Change only)