Difference between revisions of "Trigger: Weather"
| Line 1: | Line 1: | ||
| − | <pre | + | <pre class="header-style">This trigger will fire based on the current weather conditions and requires a network connection to obtain periodic weather updates. Weather information is obtained from OpenWeatherMap (http://openweathermap.org).</pre> |
| − | This trigger will fire based on the current weather conditions and requires a network connection to obtain periodic weather updates. | ||
| − | Weather information | ||
| − | is obtained from http://openweathermap.org. | ||
| − | </pre> | ||
| − | + | ''' Options ''' | |
| − | ''' | + | ''' Trigger Type ''' |
| − | * Temperature | + | * '''Temperature''': Trigger when temperature goes above or below a specified value |
| + | * '''Wind Direction''': Trigger when wind direction changes | ||
| + | * '''Wind Speed''': Trigger when wind speed goes above or below a specified value (in mph) | ||
| + | * '''Humidity''': Trigger when humidity goes above or below a specified percentage | ||
| + | * '''Weather Conditions''': Trigger when specific weather conditions occur | ||
| + | * '''Any Weather Update''': Trigger on every weather update | ||
| − | + | ''' Temperature Options ''' | |
| − | * | + | * '''Above/Below''': Choose whether to trigger when temperature exceeds or drops below the threshold |
| + | * '''Temperature Value''': Set the temperature threshold | ||
| + | * '''Unit''': Choose between Celsius and Fahrenheit | ||
| − | + | ''' Wind Speed Options ''' | |
| − | * Any Weather Update | + | * '''Above/Below''': Choose whether to trigger when wind speed exceeds or drops below the threshold |
| + | * '''Speed Value''': Set the wind speed threshold in miles per hour (mph) | ||
| + | |||
| + | ''' Humidity Options ''' | ||
| + | |||
| + | * '''Above/Below''': Choose whether to trigger when humidity exceeds or drops below the threshold | ||
| + | * '''Percentage''': Set the humidity threshold (0-100%) | ||
| + | |||
| + | ''' Weather Conditions ''' | ||
| + | |||
| + | * '''Clear''': Trigger on clear/sunny weather | ||
| + | * '''Cloudy''': Trigger on cloudy conditions | ||
| + | * '''Rain''': Trigger on rain or drizzle | ||
| + | * '''Thunder''': Trigger on thunderstorms | ||
| + | * '''Snow''': Trigger on snow | ||
| + | |||
| + | ''' Location Mode ''' | ||
| + | |||
| + | * '''Use Fixed Location''': Set a specific location for weather updates | ||
| + | * '''Use Last Known Location''': Use the device's current location (requires location permission) | ||
| + | |||
| + | ''' Local Variables ''' | ||
| + | |||
| + | Magic text variables are available for weather data including temperature, wind speed, humidity, and conditions. | ||
| + | |||
| + | ''' Examples ''' | ||
| + | |||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Weather (Temperature < 0C)</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Notification: Freezing Temperature Alert! | ||
| + | Current temperature is below freezing | ||
| + | Speak Text: Warning, temperature is below zero</pre> | ||
| + | |||
| + | ''Alert when temperature drops below freezing.'' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Weather (Conditions: Rain)</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Notification: Rain Detected | ||
| + | Remember to bring an umbrella! | ||
| + | Set Variable: [weather_condition] = Rain</pre> | ||
| + | <pre class="constraint-style">Constraints | ||
| + | |||
| + | Time of Day: 06:00 - 09:00</pre> | ||
| + | |||
| + | ''Morning rain notification to remind about umbrella.'' | ||
| + | |||
| + | ''' Notes ''' | ||
| + | |||
| + | * Requires network connection to fetch weather updates from OpenWeatherMap. | ||
| + | * Weather update frequency can be configured in MacroDroid settings. | ||
| + | * The trigger only fires when the condition threshold is crossed (e.g., temperature drops below the threshold), not continuously while the condition is met. | ||
| + | * When using "Use Last Known Location", the ACCESS_COARSE_LOCATION permission is required. | ||
| + | * Weather data accuracy depends on OpenWeatherMap coverage for your location. | ||
| + | * The "Any Weather Update" option triggers on every periodic update, useful for logging or updating variables. | ||
| + | * Wind direction trigger fires whenever the wind direction changes. | ||
Latest revision as of 22:03, 7 January 2026
This trigger will fire based on the current weather conditions and requires a network connection to obtain periodic weather updates. Weather information is obtained from OpenWeatherMap (http://openweathermap.org).
Options
Trigger Type
- Temperature: Trigger when temperature goes above or below a specified value
- Wind Direction: Trigger when wind direction changes
- Wind Speed: Trigger when wind speed goes above or below a specified value (in mph)
- Humidity: Trigger when humidity goes above or below a specified percentage
- Weather Conditions: Trigger when specific weather conditions occur
- Any Weather Update: Trigger on every weather update
Temperature Options
- Above/Below: Choose whether to trigger when temperature exceeds or drops below the threshold
- Temperature Value: Set the temperature threshold
- Unit: Choose between Celsius and Fahrenheit
Wind Speed Options
- Above/Below: Choose whether to trigger when wind speed exceeds or drops below the threshold
- Speed Value: Set the wind speed threshold in miles per hour (mph)
Humidity Options
- Above/Below: Choose whether to trigger when humidity exceeds or drops below the threshold
- Percentage: Set the humidity threshold (0-100%)
Weather Conditions
- Clear: Trigger on clear/sunny weather
- Cloudy: Trigger on cloudy conditions
- Rain: Trigger on rain or drizzle
- Thunder: Trigger on thunderstorms
- Snow: Trigger on snow
Location Mode
- Use Fixed Location: Set a specific location for weather updates
- Use Last Known Location: Use the device's current location (requires location permission)
Local Variables
Magic text variables are available for weather data including temperature, wind speed, humidity, and conditions.
Examples
Triggers Weather (Temperature < 0C)
Actions
Notification: Freezing Temperature Alert!
Current temperature is below freezing
Speak Text: Warning, temperature is below zero
Alert when temperature drops below freezing.
Triggers Weather (Conditions: Rain)
Actions
Notification: Rain Detected
Remember to bring an umbrella!
Set Variable: [weather_condition] = Rain
Constraints Time of Day: 06:00 - 09:00
Morning rain notification to remind about umbrella.
Notes
- Requires network connection to fetch weather updates from OpenWeatherMap.
- Weather update frequency can be configured in MacroDroid settings.
- The trigger only fires when the condition threshold is crossed (e.g., temperature drops below the threshold), not continuously while the condition is met.
- When using "Use Last Known Location", the ACCESS_COARSE_LOCATION permission is required.
- Weather data accuracy depends on OpenWeatherMap coverage for your location.
- The "Any Weather Update" option triggers on every periodic update, useful for logging or updating variables.
- Wind direction trigger fires whenever the wind direction changes.