Frost warning via weather forecast

Should you be interested in a way to get tomorrow’s forecasted maximum or minimum temperatures from OpenWeatherMap, Petro posted a three-line template here:

It would be trivial to make it into a frost warning sensor.

NOTE
Any solutions based on the DarkSky API are now subject to the following limitations:

  • If you already have a DarkSky API key, the API service will terminate at the end of 2021.
  • If you do not currently have a DarkSky API key, you are no longer able to get one.