openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

[openweathermap] add current day in history call #10798

Open darkfuncat opened 3 years ago

darkfuncat commented 3 years ago

Hi, I read many posts & docs but cannot find more informations about these. The openweathermap binding offers the one call history request, back for 5 previous days. But it seems impossible to get the history of the current day. (only D-1 > D-5) I tried "historyDay=0" in thing file, but the binding returns me : "historyDay value of 0 is not supported". Note that the official API can return the current day history. Can you please add this feature in the binding ? (or tell me how to get data if it already exists ?)

One use case : I need to know at noon if it has rain during the last 36hours (the morning and the day before) to start the mower (or not).

Thanks

openhab-bot commented 3 years ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openweathermap-new-one-call-api/101419/29