OpenWeather icon indicating copy to clipboard operation
OpenWeather copied to clipboard

Automatic human-readable forecasts and summaries

Open Lebo77 opened this issue 4 years ago • 2 comments

This is a long-shot feature request.

DarkSky's API had some really nice procedurally generated forecasts and condition summaries. OpenWeather does not have anything comparable. While I know doing something as complex as what DarkSky did is likely impossible, even a fairly crude approximation could be useful. I would not suggest including this in the core feature-set, but perhaps as an optional add-on.

I have been looking at tackling this myself, but quite honestly I don't think I have the skills. If you have any suggestions on how to do this, I would gladly accept any suggestions you have for where I might look for alternative ways to accomplish this.

Lebo77 avatar Jul 25 '20 00:07 Lebo77

Do you have an example of what the procedurally generated forecasts and condition summaries look like? This is not a feature I have used. You can continue to use DarkSky free until the end of 2021, then pay for the service.

Bodmer avatar Jul 26 '20 15:07 Bodmer

Sure. It's the content found in the "Summary" field in the DarkSky JSON object. There are summaries in the minutely, hourly and daily fields. The Daily field includes two types. One that covers the next week, the other that covers each day.

Examples from the DarkSky API documentation:

minutely: "summary": "Light rain stopping in 13 min., starting again 30 min. later.", hourly: "summary": "Rain starting later this afternoon, continuing until this evening.", daily(overview): "summary": "Mixed precipitation throughout the week, with temperatures falling to 39°F on Saturday.", daily(1 day): "summary": "Rain starting in the afternoon, continuing until evening.",

The closest thing OpenWeather has is the description fields that say things like: "thunderstorm with light drizzle" or "heavy intensity shower rain". This is a much less user-friendly bit of data, and they have no analog to the weekly summary.

My thought was, could the ESP32 look at the water data it did have and "fill in the blanks" of one of a few appropriate templates to generate a rough approximation of what DarkSky had. I know it would likely not be as sophisticated, but it would be better than nothing. I started to try and sort out an algorithm to do this, but quickly realized I was out of my depth. My software skills are basic at best unfortunately, so I put this up as a feature request just in case someone thought it sounded like an interesting problem they felt like taking a crack at.

I am continuing to use DarkSky for now, but I am looking ahead to when I will move over to OpenWeather and trying to decide how I will replace these summaries in my project. This is just a hobbyist project with perhaps two devices pulling forecasts every 5 minutes. Even the smallest paid plan would be absurd overkill.

Lebo77 avatar Jul 26 '20 20:07 Lebo77

That is not part of this library and I am unable to help.

Bodmer avatar Mar 14 '23 19:03 Bodmer

Thanx for support. I look how i can solve this.

digitongithub avatar Mar 14 '23 20:03 digitongithub