home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.33k stars 650 forks source link

Showing shared locations in a WearOS map tile #2896

Open quack3d opened 2 years ago

quack3d commented 2 years ago

Is your feature request related to a problem? Please describe.

The Google Maps app on WearOS doesn't show people that share their location with you. Home Assistant to the rescue (I hope)!

Describe the solution you'd like

I would like a WearOS tile that shows a map of persons that have shared their location with me. I'm thinking this could be done by using device trackers from HA. Ideally with the possibility to zoom and pan the map.

Describe alternatives you've considered, if any

I don't think any exists.

Additional context

dshokouhi commented 1 month ago

so I spent some time looking into this to see if getting an actual map into a tile is possible, sadly teh Maps API for Wear OS does not really allow this. The only real solution I found was to use an external service to create an image and then we can display that in the tile. That led me to discover this service which you can probably get around today using the camera.local_file or camera.generic and then using the existing camera tile you should be able to display it.

https://developers.google.com/maps/documentation/maps-static/start

there seems to be other services as well, even possible to use OpenStreetMaps to generate a map image with a marker.