chubin / wttr.in

:partly_sunny: The right way to check the weather
https://wttr.in
Apache License 2.0
24.47k stars 1.1k forks source link

Historical data support #551

Open opt9 opened 3 years ago

opt9 commented 3 years ago

I want to compare the today's weather to the yesterday's weather. You already support 0, 1, 2 view options.

View options:

    0                       # only current weather                                        
    1                       # current weather + today's forecast                          
    2                       # current weather + today's + tomorrow's forecast

If you add -1 option, it would be very good.

-1 # yesterday's weather + today's forecast

:smile:

chubin commented 3 years ago

I think it would be possible, and even better we could do something like

curl wttr.in/Location@DATE

like we have it for /Moon@DATE:

$ curl wttr.in/Moon@2021-01-01

Moon@DATE

The only problem is that historical data is pretty expensive. But it would be great at least to prepare the code for it

ovanbiervliet commented 2 years ago

@chubin Was looking for a location@DATE feature, to use in (backdated) daily notes. Is all historical data equally expensive, or would it be possible to have 1 or 2 days back?

chubin commented 2 years ago

@ovanbiervliet It is expensive, but maybe it at some point, we could try to run a support campaign on patreon, and gather enough funding for this. I think it could be a really interesting feature