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

Add weather forecast #1944

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Add weather forecast #1944

merged 1 commit into from
Oct 6, 2023

Conversation

bim9262
Copy link
Collaborator

@bim9262 bim9262 commented Sep 5, 2023

Fixes #1267

src/blocks/weather.rs Outdated Show resolved Hide resolved
src/blocks/weather.rs Outdated Show resolved Hide resolved
src/blocks/weather/open_weather_map.rs Show resolved Hide resolved
@bim9262

This comment was marked as resolved.

src/blocks/weather.rs Outdated Show resolved Hide resolved
@MaxVerevkin
Copy link
Collaborator

omit the keys from the map entirely.

This is probably the best option, as users will be able to customize the output to their liking. It just needs to be documented very explicitly.

src/blocks/weather.rs Outdated Show resolved Hide resolved
src/blocks/weather.rs Outdated Show resolved Hide resolved
src/blocks/weather.rs Outdated Show resolved Hide resolved
@bim9262

This comment was marked as outdated.

src/blocks/weather.rs Outdated Show resolved Hide resolved
src/blocks/weather.rs Outdated Show resolved Hide resolved
src/blocks/weather.rs Outdated Show resolved Hide resolved
src/blocks/weather.rs Outdated Show resolved Hide resolved
@bim9262 bim9262 force-pushed the forecast branch 2 times, most recently from 714448e to a276d9a Compare September 21, 2023 04:57
@bim9262 bim9262 force-pushed the forecast branch 3 times, most recently from cc505ea to 6de9953 Compare October 6, 2023 06:30
src/blocks/weather.rs Outdated Show resolved Hide resolved
Only include forecast if needed

Forecasts are only fetched if forecast_hours > 0 and the format has keys
related to forecast
Copy link
Collaborator

@MaxVerevkin MaxVerevkin left a comment

Choose a reason for hiding this comment

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

Looks good.

Thanks for working on this!

@bim9262
Copy link
Collaborator Author

bim9262 commented Oct 6, 2023

Thanks @MaxVerevkin!

@bim9262 bim9262 merged commit 205bfeb into greshake:master Oct 6, 2023
11 checks passed
@bim9262 bim9262 deleted the forecast branch October 6, 2023 17:18
@bim9262 bim9262 mentioned this pull request Mar 30, 2024
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.

Future weather
2 participants