Skip to content

Add location config option to SMHI weather provider#125

Merged
MichMich merged 2 commits into
MagicMirrorOrg:masterfrom
SkySails:add-location-config-option-smhi
Oct 2, 2022
Merged

Add location config option to SMHI weather provider#125
MichMich merged 2 commits into
MagicMirrorOrg:masterfrom
SkySails:add-location-config-option-smhi

Conversation

@SkySails

Copy link
Copy Markdown
Contributor

This PR aims to keep the docs up-to-date with MagicMirrorOrg/MagicMirror#2902

Comment thread modules/weather.md Outdated
| `lat` | The latitude coordinate for the desired location. <br><br> **Possible value:** `59.322665376` <br> This value is **REQUIRED** |
| `lon` | The longitude coordinate for the desired location. <br><br> **Possible value:** `18.069666388` <br> This value is **REQUIRED** |
| `precipitationValue` | The type of precipitation to display (min, max, median, mean). <br><br> **Possible values:** `'pmin'` , `'pmean'` , `'pmedian'`, `'pmax'`. <br> **Default value:** `'pmedian'` |
| `location` | The location used for weather information. <br><br> **Example:** `'Stockholm'` <br> **Default value:** `false` <br><br> |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there an URL where one can look up all available locations? That would be helpful here :-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a display name only, I used the name location because that seems to be what has been used previously.

Should I add a short clarification about this?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah, that may be helpful, something like "The name displayed on top of the weather informaion"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the delay! Is that better?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, thx!

@MichMich MichMich merged commit 4ed5d63 into MagicMirrorOrg:master Oct 2, 2022
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