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

Feature: Add (optional) wind forecast #182

Merged
merged 6 commits into from
Oct 17, 2022

Conversation

pauln
Copy link
Contributor

@pauln pauln commented Oct 15, 2022

Adds an option to add wind speed and direction to the weather bar. It's opt-in so that existing users won't see any unexpected change.

Adds an option to add wind speed and direction to the weather bar.
Copy link
Owner

@decompil3d decompil3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this great contribution. Just a couple of comments.

src/hourly-weather.ts Outdated Show resolved Hide resolved
src/weather-bar.ts Outdated Show resolved Hide resolved
Co-authored-by: Jonathan Keslin <decompil3d@users.noreply.github.com>
@decompil3d
Copy link
Owner

Oh, and please also add tests for this new functionality.

@pauln
Copy link
Contributor Author

pauln commented Oct 15, 2022

Ah, sorry - I didn't see the tests. I'll have a go at adding some tests later (or perhaps tomorrow).

Copy link
Owner

@decompil3d decompil3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks -- small comment for the directions and then just waiting on tests.

src/hourly-weather.ts Show resolved Hide resolved
@pauln
Copy link
Contributor Author

pauln commented Oct 15, 2022

I've implemented the fix, and added tests for not showing wind by default and showing wind (based on existing test data, though I've added the wind speed unit) if enabled. Are there any other tests you'd particularly like to see for this PR?

@decompil3d
Copy link
Owner

Going to merge this and then do a fast-follow to add other locale translations and maybe adjust styling a smidge. Thanks again for your contribution. I'll try to comment here with the version to expect the change in.

@decompil3d decompil3d merged commit 70f8cbc into decompil3d:main Oct 17, 2022
@decompil3d
Copy link
Owner

Released in 4.5.0 -- should be up in HACS shortly.

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.

None yet

2 participants