-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Use location to retrieve weather information from OpenMeteo on demand for the requested period.
For ETo we need to retrieve daily values for the requested period.
- temp_2m_max
- temp_2m_mean
- temp_2m_min
- rel_hum_2m_mean
- press_msl_mean
- surf_press_mean
- wind_speed_10m_mean
Consider the following
1. Does the above call add response latency? If yes then how much?
2. Do we need to save weather data in db?
3. Design the solution in a way that OpenMeteo can in the future be switched to another API. Can be internal weather srv API or OpenWeatherMap or a SIP sensors. Use data mappers, translator etc if needed in order to make the application robust
In the future, weather srv will retrieve weather data and Irr will request them from there. That means that weather srv will be responsible to cache and efficiently provide data.