Skip to content

refactor(http_fetcher): make dynamic URL handling explicit - #4282

Merged
khassel merged 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:fmi
Sep 26, 2026
Merged

khassel merged 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:fmi

Conversation

@KristjanESPERANTO

Copy link
Copy Markdown
Collaborator

Follow-up to #4278, which introduced support for dynamic URLs in HTTPFetcher.

That support was added as an implicit string | function constructor argument. This works, but is not very explicit at the call site. This PR cleans that up by using { url } for static URLs and { urlFactory } for URLs that are resolved for each request.

This also simplifies the envcanada provider. It previously had to track the current hour and restart the fetcher whenever the hourly URL changed. It now uses the resolved request URL to detect and ignore stale responses, without restarting the fetcher.

@khassel
khassel merged commit 6eee7e8 into MagicMirrorOrg:develop Sep 26, 2026
13 checks passed
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.

2 participants