Every morning, emails one briefing on today's conditions and the days ahead for each place you list.

UsesGmailOpenWeatherMap

Morning weather briefing for the places you follow

Every morning at 07:00, the current conditions and the five-day forecast are read for each place you list, and one briefing lands in your inbox. Each place gets today's reading, with conditions, temperature, humidity and wind, followed by one line per day ahead giving the temperature range, the sky, the highest chance of precipitation and the strongest gusts.

Days that cross the rain or wind thresholds you choose, or that have snow in the forecast, are marked with the reason and listed together at the top, so the awkward days are visible at a glance. The briefing reports what the forecast says and nothing more. A place the weather service cannot resolve does not cost you the rest: the others are reported as normal and the unreadable one is named at the bottom so you can correct it. Only if none can be read does the run stop without sending.

Run every day at 07:00.Run every day at 07:00.
Set locations to blank.Set locations to blank.
Set recipient to blank.Set recipient to blank.
Set units to “metric”.Set units to “metric”.
Set rainChancePercent to 50.Set rainChancePercent to 50.
Set windGustThreshold to 12.Set windGustThreshold to 12.
Set temperatureUnit to “°C”.Set temperatureUnit to “°C”.
Set windUnit to “m/s”.Set windUnit to “m/s”.
If units is “imperial”If units is “imperial”
Yes
Change temperatureUnit to “°F”.Change temperatureUnit to “°F”.
Change windUnit to “mph”.Change windUnit to “mph”.
No
No steps
If units is “standard”If units is “standard”
Yes
Change temperatureUnit to “K”.Change temperatureUnit to “K”.
No
No steps
Split locations by “;” and save it as places.Split locations by “;” and save it as places.
Start an empty list and save it as sections.Start an empty list and save it as sections.
Start an empty list and save it as unreadable.Start an empty list and save it as unreadable.
Start an empty list and save it as flaggedDays.Start an empty list and save it as flaggedDays.
For each place in places:For each place in places:
Trim place and save it as placeName.Trim place and save it as placeName.
If placeName is emptyIf placeName is empty
Yes
Skip to the next item.Skip to the next item.
No
No steps
If a step below fails, save the error as lookupErrorIf a step below fails, save the error as lookupError
Try
OpenWeatherMapOpenWeatherMapGet the current weather. Save it as now.Get the current weather. Save it as now.
OpenWeatherMapOpenWeatherMapGet the 5-day forecast. Save it as forecast.Get the 5-day forecast. Save it as forecast.
Set heading to placeName.Set heading to placeName.
If now.location isn't emptyIf now.location isn't empty
Yes
If now.location isn't emptyIf now.location isn't empty
Yes
Change heading to now.location.Change heading to now.location.
No
No steps
No
No steps
Set nowLine to “Now: ”.Set nowLine to “Now: ”.
If now.conditions isn't emptyIf now.conditions isn't empty
Yes
If now.conditions isn't emptyIf now.conditions isn't empty
Yes
Change nowLine to “@nowLine@now.conditions,”.Change nowLine to “@nowLine@now.conditions,”.
No
No steps
No
No steps
If now.temperature isn't emptyIf now.temperature isn't empty
Yes
Change nowLine to nowLine plus now.temperature rounded to the nearest integer plus temperatureUnit.Change nowLine to nowLine plus now.temperature rounded to the nearest integer plus temperatureUnit.
If now.feels_like isn't emptyIf now.feels_like isn't empty
Yes
Change nowLine to “@nowLine (feels like now.feels_like rounded to the nearest integer@temperatureUnit)”.Change nowLine to “@nowLine (feels like now.feels_like rounded to the nearest integer@temperatureUnit)”.
No
No steps
No
No steps
If now.humidity isn't emptyIf now.humidity isn't empty
Yes
Change nowLine to “@nowLine, humidity now.humidity rounded to the nearest integer%”.Change nowLine to “@nowLine, humidity now.humidity rounded to the nearest integer%”.
No
No steps
If now.wind_speed isn't emptyIf now.wind_speed isn't empty
Yes
Change nowLine to “@nowLine, wind now.wind_speed rounded to the nearest integer windUnit”.Change nowLine to “@nowLine, wind now.wind_speed rounded to the nearest integer windUnit”.
No
No steps
If nowLine is “Now: ”If nowLine is “Now: ”
Yes
Change nowLine to “Now: no current reading was returned for this location.”.Change nowLine to “Now: no current reading was returned for this location.”.
No
No steps
Set steps to forecast.entries.Set steps to forecast.entries.
Start an empty list and save it as forecastDays.Start an empty list and save it as forecastDays.
For each entry in steps:For each entry in steps:
If entry.time contains “T” If entry.time contains “T”
Yes
Add the first item of entry.time split by “T” to the end of forecastDays and save it as forecastDays.Add the first item of entry.time split by “T” to the end of forecastDays and save it as forecastDays.
No
No steps
Remove duplicates from forecastDays and save it as forecastDays.Remove duplicates from forecastDays and save it as forecastDays.
Start an empty list and save it as dayLines.Start an empty list and save it as dayLines.
For each day in forecastDays:For each day in forecastDays:
Set dayLow to nothing. Set dayLow to nothing.
Set dayHigh to nothing. Set dayHigh to nothing.
Set dayChance to -1. Set dayChance to -1.
Set dayGust to -1. Set dayGust to -1.
Set dayHeadline to blank. Set dayHeadline to blank.
Set daySnow to blank. Set daySnow to blank.
For each entry in steps: For each entry in steps:
If the first item of entry.time split by “T” is day If the first item of entry.time split by “T” is day
Yes
If entry.temperature isn't emptyIf entry.temperature isn't empty
Yes
If dayLow is emptyIf dayLow is empty
Yes
Change dayLow to entry.temperature.Change dayLow to entry.temperature.
No
No steps
If dayHigh is emptyIf dayHigh is empty
Yes
Change dayHigh to entry.temperature.Change dayHigh to entry.temperature.
No
No steps
If entry.temperature is less than dayLowIf entry.temperature is less than dayLow
Yes
Change dayLow to entry.temperature.Change dayLow to entry.temperature.
No
No steps
If entry.temperature is greater than dayHighIf entry.temperature is greater than dayHigh
Yes
Change dayHigh to entry.temperature.Change dayHigh to entry.temperature.
No
No steps
No
No steps
If entry.precipitation_probability isn't emptyIf entry.precipitation_probability isn't empty
Yes
If entry.precipitation_probability is greater than dayChanceIf entry.precipitation_probability is greater than dayChance
Yes
Change dayChance to entry.precipitation_probability.Change dayChance to entry.precipitation_probability.
If entry.conditions isn't emptyIf entry.conditions isn't empty
Yes
Change dayHeadline to entry.conditions.Change dayHeadline to entry.conditions.
No
No steps
No
No steps
No
No steps
If entry.wind_gust isn't emptyIf entry.wind_gust isn't empty
Yes
If entry.wind_gust is greater than dayGustIf entry.wind_gust is greater than dayGust
Yes
Change dayGust to entry.wind_gust.Change dayGust to entry.wind_gust.
No
No steps
No
No steps
If entry.condition_group is “Snow”If entry.condition_group is “Snow”
Yes
Change daySnow to “yes”.Change daySnow to “yes”.
No
No steps
No
No steps
Set dayName to blank. Set dayName to blank.
If a step below fails, save the error as dateError If a step below fails, save the error as dateError
Try
Get the day of the week for day and save it as dayName.Get the day of the week for day and save it as dayName.
On error
No steps
Set dayLabel to day. Set dayLabel to day.
If dayName isn't empty If dayName isn't empty
Yes
Change dayLabel to “@dayName day”.Change dayLabel to “@dayName day”.
No
No steps
Start an empty list and save it as dayParts. Start an empty list and save it as dayParts.
If dayLow isn't empty If dayLow isn't empty
Yes
If dayHigh isn't emptyIf dayHigh isn't empty
Yes
If dayLow rounded to the nearest integer is dayHigh rounded to the nearest…If dayLow rounded to the nearest integer is dayHigh rounded to the nearest…
Yes
Add dayLow rounded to the nearest integer plus temperatureUnit to the end of dayParts and save it as dayParts.Add dayLow rounded to the nearest integer plus temperatureUnit to the end of dayParts and save it as dayParts.
No
Add dayLow rounded to the nearest integer to dayHigh rounded to the nearest integer@temperatureUnit to the end of dayParts and save it as dayParts.Add dayLow rounded to the nearest integer to dayHigh rounded to the nearest integer@temperatureUnit to the end of dayParts and save it as dayParts.
No
No steps
No
No steps
If dayHeadline isn't empty If dayHeadline isn't empty
Yes
Add dayHeadline to the end of dayParts and save it as dayParts.Add dayHeadline to the end of dayParts and save it as dayParts.
No
No steps
If dayChance is greater than or equal to 0 If dayChance is greater than or equal to 0
Yes
Add dayChance multiplied by 100 rounded to the nearest integer% chance of precipitation to the end of dayParts and save it as dayParts.Add dayChance multiplied by 100 rounded to the nearest integer% chance of precipitation to the end of dayParts and save it as dayParts.
No
No steps
If dayGust is greater than or equal to 0 If dayGust is greater than or equal to 0
Yes
Add gusts to dayGust rounded to the nearest integer windUnit to the end of dayParts and save it as dayParts.Add gusts to dayGust rounded to the nearest integer windUnit to the end of dayParts and save it as dayParts.
No
No steps
Set dayLine to “@dayLabel: no readings were returned for this day”. Set dayLine to “@dayLabel: no readings were returned for this day”.
If dayParts isn't empty If dayParts isn't empty
Yes
Change dayLine to “@dayLabel: dayParts joined by “, ””.Change dayLine to “@dayLabel: dayParts joined by “, ””.
No
No steps
Start an empty list and save it as dayFlags. Start an empty list and save it as dayFlags.
If dayChance is greater than or equal to 0 If dayChance is greater than or equal to 0
Yes
If dayChance multiplied by 100 is greater than or equal to rainChancePercentIf dayChance multiplied by 100 is greater than or equal to rainChancePercent
Yes
Add “high chance of precipitation” to the end of dayFlags and save it as dayFlags.Add “high chance of precipitation” to the end of dayFlags and save it as dayFlags.
No
No steps
No
No steps
If dayGust is greater than or equal to 0 If dayGust is greater than or equal to 0
Yes
If dayGust is greater than or equal to windGustThresholdIf dayGust is greater than or equal to windGustThreshold
Yes
Add “strong gusts” to the end of dayFlags and save it as dayFlags.Add “strong gusts” to the end of dayFlags and save it as dayFlags.
No
No steps
No
No steps
If daySnow is “yes” If daySnow is “yes”
Yes
Add “snow in the forecast” to the end of dayFlags and save it as dayFlags.Add “snow in the forecast” to the end of dayFlags and save it as dayFlags.
No
No steps
If dayFlags isn't empty If dayFlags isn't empty
Yes
Change dayLine to “@dayLine [dayFlags joined by “; ”]”.Change dayLine to “@dayLine [dayFlags joined by “; ”]”.
Add heading day to the end of flaggedDays and save it as flaggedDays.Add heading day to the end of flaggedDays and save it as flaggedDays.
No
No steps
Add dayLine to the end of dayLines and save it as dayLines. Add dayLine to the end of dayLines and save it as dayLines.
Set section to headingSet section to heading nowLine.
If dayLines isn't emptyIf dayLines isn't empty
Yes
Change section to sectionChange section to section Next five days: - dayLines joined by “ - ”.
No
Change section to sectionChange section to section No forecast steps were returned for the days ahead.
Add section to the end of sections and save it as sections.Add section to the end of sections and save it as sections.
On error
Add placeName to the end of unreadable and save it as unreadable.Add placeName to the end of unreadable and save it as unreadable.
Show in the output: Could not read the weather for placeName: lookupError as text.Show in the output: Could not read the weather for placeName: lookupError as text.
If sections is emptyIf sections is empty
Yes
Set failureMessage to “No briefing was sent: none of the locations could be read. Check the 'locations' step - list places separated by semicolons, for example 'Berlin,DE; Lisbon,PT; 94103,US'.”.Set failureMessage to “No briefing was sent: none of the locations could be read. Check the 'locations' step - list places separated by semicolons, for example 'Berlin,DE; Lisbon,PT; 94103,US'.”.
If unreadable isn't emptyIf unreadable isn't empty
Yes
Change failureMessage to “@failureMessage Could not read: unreadable joined by “, ”.”.Change failureMessage to “@failureMessage Could not read: unreadable joined by “, ”.”.
No
No steps
Stop and report a problem: failureMessage.Stop and report a problem: failureMessage.
No
No steps
Set briefing to “Morning weather briefing”.Set briefing to “Morning weather briefing”.
If flaggedDays isn't emptyIf flaggedDays isn't empty
Yes
Change briefing to briefingChange briefing to briefing Days above your thresholds: flaggedDays joined by “; ”.
No
Change briefing to briefingChange briefing to briefing No days above your thresholds in the next five days.
Change briefing to briefingChange briefing to briefing sections joined by a blank line.
If unreadable isn't emptyIf unreadable isn't empty
Yes
Change briefing to briefingChange briefing to briefing Could not read: unreadable joined by “, ”. Check the spelling, or add a country code - for example 'Springfield,US'.
No
No steps
Change briefing to briefingChange briefing to briefing Thresholds: precipitation chance at or above rainChancePercent%, gusts at or above windGustThreshold windUnit.
Set subject to “Morning weather briefing”.Set subject to “Morning weather briefing”.
If flaggedDays isn't emptyIf flaggedDays isn't empty
Yes
Change subject to “@subject - the length of flaggedDays day(s) above your thresholds”.Change subject to “@subject - the length of flaggedDays day(s) above your thresholds”.
No
No steps
GmailGmailSend an email to recipient.Send an email to recipient. Subject: subjectbriefing