Insight-Scoped Event Query
A 2-step recipe with Tomorrow.io. We can help you get access.
Recipe · 2 steps
Insight-Scoped Event Query
with Tomorrow.io
Create an insight, then query events filtered to it with branching.
- Define the reusable insight whose id will scope the event query.
- Run an advanced events query filtered to the new insight over the supplied location, buffer, and time window.
What you'll need to have ready
- apikey: Tomorrow.io API key passed as the apikey query parameter.
- insightName: Name for the reusable insight rule.
- field: Weather data layer the insight condition evaluates.
- operator: Comparison operator for the insight condition.
- value: Threshold value for the insight condition.
- severity: Insight severity (info, low, medium, high, severe).
- location: Either 'lat,lng' or a Tomorrow.io locationId, or a GeoJSON geometry.
- buffer: Buffer radius around the location in km.
- startTime: ISO-8601 start of the event window.
- endTime: ISO-8601 end of the event window.
For your developer
Arazzo workflow tomorrow-io:insight-scoped-event-query, 2 operations: createInsight → postEvents. Specs on APIs.io.