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

Fix API version in yr weather provider call #3223

Merged
merged 8 commits into from
Oct 15, 2023

Conversation

rejas
Copy link
Collaborator

@rejas rejas commented Oct 6, 2023

Fixes #3227

and also

  • removes unused code
  • de-duplicates code fragments
  • fixes typos
  • inlines code
  • adds more weather util tests

@martingron and @Justheretoreportanissue would you be so kind to check if I didnt mess anything up?

@rejas rejas changed the title Cleanup yr weather provider Fix API version in yr weather provider call Oct 12, 2023
@rejas rejas requested a review from khassel October 12, 2023 08:25
@khassel
Copy link
Collaborator

khassel commented Oct 12, 2023

LGTM but what about my comment in the issue

We should introduce apiVersionSunrise and apiVersionLocationforecast so users can change this in config.js.

can you add this too? So users could change this in config.js without waiting for next release or hacking the code

@rejas
Copy link
Collaborator Author

rejas commented Oct 12, 2023

can you add this too? So users could change this in config.js without waiting for next release or hacking the code

will do that, until then I revert this to a "draft"

@rejas rejas marked this pull request as draft October 12, 2023 19:44
@matt-thurling
Copy link

matt-thurling commented Oct 15, 2023

I noticed that sometime in the last couple of days they've switched off the 2.3 API for the sunset data too (i.e. line 355) so that's now returning a 404.
I've had a quick look at the doco and api response, and it appears that the 3.0 API has changed a fair bit for sunset - so wouldn't be as simple as bumping the number. Edit: nvm - I played with the code a bit closer and figured out what it's doing. I think bumping that number to 3.0 would be enough to get it to work ;)

@rejas rejas marked this pull request as ready for review October 15, 2023 07:34
@khassel khassel merged commit a0b444d into MagicMirrorOrg:develop Oct 15, 2023
5 checks passed
@rejas rejas deleted the cleanup/yr branch October 15, 2023 12:12
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.

3 participants