Skip to content

Conversation

@rayshobby
Copy link
Member

@rayshobby rayshobby commented Sep 10, 2025

This branch add multiday support for the local weather provider. It's similar to #169 but the implementation might be a bit different. It splits the data such that each whole day is midnight to midnight, which is consistent with all other providers.

… midnight, so it's consistent with all other providers; make indentations consistent
@rmloeb
Copy link
Contributor

rmloeb commented Sep 10, 2025

Only had a few minutes to scan the code. Does this code cache the last three days of observations from a local weatherstation? Just curious ('cause that's what I need for my installations).

@NickM-27
Copy link

It stores the last 7 days (as opposed to before where only the last day was stored). The most recent 3 of those 7 days would be used when that feature is enabled

@rmloeb
Copy link
Contributor

rmloeb commented Sep 10, 2025

Thank you very much!!!

@rayshobby
Copy link
Member Author

It caches up to the past 7 days. When you send a query, it will use as many days of data as there is available. For example, if you do have all 7 days of data, it can return an array of size 7. If there is only 1 day of data available, the return is of size 1.

@NickM-27
Copy link

Screen Shot 2025-09-11 at 07 03 30 AM

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.

4 participants