Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce bandwidth consumption of the integration #74

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Reduce bandwidth consumption of the integration #74

merged 2 commits into from
Feb 20, 2025

Conversation

jdejaegh
Copy link
Owner

Until now, the integration would download all the data (forecast, radar images, pollen) every 7 minutes without client caching. This pull request brings the following improvements:

  • Only download current radar frame and localization layer when the user brings the radar in the viewport
  • Download the full sequence of images only if the user shows the animation
  • Locally cache the responses and re-use cached data based on the ETag value set the by remote server

The data is still refreshed every 7 minutes with local caching when responses come with the ETag header. Only the radar animation is downloaded on-demand. Short-term rain forecast shown on the radar is still downloaded every 7 minutes (this is part of the forecast file anyway).

@jdejaegh jdejaegh self-assigned this Feb 16, 2025
@jdejaegh jdejaegh merged commit 0776cff into main Feb 20, 2025
6 checks passed
@jdejaegh jdejaegh deleted the opti branch February 20, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant