You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I may travel or not be local to my homeserver. I would like the weather widget to function for my current location in these situations.
I imagine this could look something like an "automatic location" config parameter that makes use of getCurrentPosition() to ask the user for their location before making a query for the weather. https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition
The text was updated successfully, but these errors were encountered:
What a great idea! I'll see about getting this added.
benphelps
changed the title
Feature Request: Add automatic location support for weather wiget
[Feature Request] Add automatic location support for weather wiget
Sep 5, 2022
This has been implemented in the latest commit, with some caveats.
The Geolocation API forcefully requires a secure context (HTTP), so this can only be used if you've got an SSL setup. It also requires a user interaction event, and cannot (should not) be pulled automatically, while we still attempt an automatic grab, it's not guaranteed.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns.
Sometimes I may travel or not be local to my homeserver. I would like the weather widget to function for my current location in these situations.
I imagine this could look something like an "automatic location" config parameter that makes use of
getCurrentPosition()
to ask the user for their location before making a query for the weather.https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition
The text was updated successfully, but these errors were encountered: