When to run it — cleanest half hours near you
Use “When to run it — cleanest half hours near you” in Recued. Find the cleanest half hour in the next 24 hours to run a dishwasher, dryer or EV charge, for one postcode area rather than for the country. It reads information without changing data in the connected service.
How it works
Inspect the data fetches, transforms, gates, and output this recipe runs.
Process (21 steps)
outcode_text
trim
Trim whitespace from setting outcode
outcode_required
template
Generate text from a template
fail: step.outcode_text is_empty
from_stamp
date_add
Add 0 minutes to
region_raw
?
region_recognised
template
Generate text from a template
fail: step.region_raw.result.data.shortname is_null
defaults
defaults
Apply defaults
have_periods
template
Generate text from a template
fail: step.periods_all is_empty
defaults_2
defaults
Apply defaults
period_count
count
Count items in periods all
upcoming
slice
Take a subset of
cleanest
min_by
Find the minimum by intensity.forecast
defaults_3
defaults
Apply defaults
ranked
sort
Sort by intensity.forecast
best_slots
slice
Take a subset of
relative_raw
math
Calculate: {{step.cleanest_g}} / {{step.current_forecast}} * 100
skip: step.current_forecast equal 0
relative_raw_rounded
round
Round relative raw to 0 decimal places
skip: step.current_forecast equal 0
relative
default
Apply default
national_raw
?
national_g
default
Apply default
card
to_summary
Format results as a summary card
slot_table
to_table
Format results as a data table
Settings
Configurable at install. Defaults shown — change them anytime in Recued.
slots
setting
=
6
outcode
setting
=
carbon intensity
setting
=
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.