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

weather module adjustments for rain and snow #1573

Merged
merged 2 commits into from
Feb 15, 2019
Merged

weather module adjustments for rain and snow #1573

merged 2 commits into from
Feb 15, 2019

Conversation

vincep5
Copy link
Contributor

@vincep5 vincep5 commented Feb 14, 2019

Here's the update to the new weather module with some refactoring of rain and snow. I've kept them separate in case in the future there is desire to split it out. For now, both will be added together into precipitation property of weatherobject. I think precipitation is a better way to reflect the data from the various APIs. I've added some comments to the provider js so that others can understand what is/isnt in the JSON in terms of precipitation. Ex: DarkSky doesnt give back rainfall, but it does for snowfall.

showPrecipitationAmount is the new flag. I've set it back to default false as this was the behavior in the weatherforecast module.

@MichMich MichMich merged commit b7b5517 into MagicMirrorOrg:develop Feb 15, 2019
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