2020 Apr 14, 04:33 PM
(This post was last modified: 2020 Apr 14, 04:58 PM by numero9.
Edit Reason: addded info.
)
I'm using SIP since 3 month ago, and I'm charmed.
I like to do things with a raspberry and when I met SIP I removed my irrigation programmer and mounted a raspberry.
Best of all is this weather_level_adj plugin.
With my little knowledge of python, I have been browsing the code to know how to do the calculations and I really liked the way to estimate the amount of irrigation needed.
I was also looking at openweathermap, how to get current data and forecast. Then I saw that there is a new API called 'One Call API' that provides free historical data for the last 5 days, as well as the forecast.
I don't know if it would be possible to use this API, and thus reduce the use of the SD card. I think it would not be necessary to save as much information and as often as with the other APIs.
Thank you very much to the authors for all the work you are doing.
___
sorry, i forgot include the info.
https://openweathermap.org/api/one-call-api
Current and forecasts weather data (hourly (48 hours) and daily (7 days) forecast)
Historical weather data (for the 5 previous days)
I like to do things with a raspberry and when I met SIP I removed my irrigation programmer and mounted a raspberry.
Best of all is this weather_level_adj plugin.
With my little knowledge of python, I have been browsing the code to know how to do the calculations and I really liked the way to estimate the amount of irrigation needed.
I was also looking at openweathermap, how to get current data and forecast. Then I saw that there is a new API called 'One Call API' that provides free historical data for the last 5 days, as well as the forecast.
I don't know if it would be possible to use this API, and thus reduce the use of the SD card. I think it would not be necessary to save as much information and as often as with the other APIs.
Thank you very much to the authors for all the work you are doing.
___
sorry, i forgot include the info.
https://openweathermap.org/api/one-call-api
Current and forecasts weather data (hourly (48 hours) and daily (7 days) forecast)
Code:
https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&appid={YOUR API KEY}
Historical weather data (for the 5 previous days)
Code:
https://api.openweathermap.org/data/2.5/onecall/timemachine?lat={lat}&lon={lon}&dt={time}&appid={YOUR API KEY}