Air quality — next 12 hours
Use “Air quality — next 12 hours” in Recued. Whether the air is getting better or worse over the next 12 hours, which hour is worst, and what is driving it.
How it works
Inspect the data fetches, transforms, gates, and output this recipe runs.
Process (39 steps)
wanted
trim
Trim whitespace from setting place
wanted_required
template
Generate text from a template
fail: step.wanted is_empty
geocode
?
hits
default
Apply default
hit_count
count
Count items in hits
top
default
Apply default
resolved
default
Apply default
resolved_required
template
Generate text from a template
fail: step.resolved is_empty
lat
to_number
Convert top lat to a number
lon
to_number
Convert top lon to a number
air
?
units
default
Apply default
rows
default
Apply default
first_aqi
default
Apply default
have_data
template
Generate text from a template
fail: step.first_aqi is_null
last_aqi
default
Apply default
worst
max_by
Find the maximum by us_aqi
best
min_by
Find the minimum by us_aqi
defaults
defaults
Apply defaults
worst_idx_rows
default
Apply default
worst_subs_row
filter
Filter by condition
worst_subs
default
Apply default
worst_subs_clean
omit
Remove specific fields from
worst_list
to_list
Apply to_list
worst_driver
max_by
Find the maximum by value
wpeak_edges
default
Apply default
wpeak_passed
filter
Filter by condition
wpeak_over
count
Count items in wpeak passed
wpeak_band
switch
Map wpeak over to one of: 0, 1, 2, 3, 4, 5
delta
math
Calculate: {{step.last_aqi}} - {{step.first_aqi}}
dir_edges
default
Apply default
dir_passed
filter
Filter by condition
dir_over
count
Count items in dir passed
trend
switch
Map dir over to one of: 0, 1, 2
card
to_summary
Format results as a summary card
by_hour
to_table
Format results as a data table
scales_note
template
Generate text from a template
window_note
template
Generate text from a template
ambiguity
template
Generate text from a template
skip: step.hit_count less 2
Settings
Configurable at install. Defaults shown — change them anytime in Recued.
place
setting
=
nominatim
setting
=
air quality
setting
=
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.