Hello, I have integrated my iPhone (Where is?) via Homey. I can also easily display the status via a tile in Sharptools (true and false). The tile also provides the coordinates (latitudeMeasurement and longitudeMeasurement). I would like to open a new dashboard with a click on the tile, where the location is displayed on a map (google maps or similar). Is that possible? If so, how?
What Homey app are you using for the geolocation integration? I thought the standard Homey presence just exposed presence
and sleeping
attributes, so I suspect this geolocation integration is with an app?
We released a Geolocation Map Tile community project, which normally expects a regular latitude
and longitude
attribute, but I’ve gone ahead and updated it so it should support the latitudeMeasurement
and longitudeMeasurement
naming you mentioned.
If you only want to see the map when you click on a tile, you can use the Dashboard Overlay feature. Display your primary tile on your dashboard, then create another dashboard with the map tile and link to that dashboard as an overlay from the primary tile.
Hi Josh,
I use the “Find My” app. This gives the following values. The detection is better than Homey’s own detection (which, as far as I know, works via WiFi detection). The Homey detection did not work reliably for me. That’s why I now use the Find My app. There you have to authenticate yourself with your APPLE ID.
Hi Josh,
The values ​​work great right away. Now I have another suggestion or question as to whether the tile can be customized. I would now like to display all 4 users\devices (iPhones) on a map? Can you customize the custom tile? Many thanks and best regards, Uwe
Hi Josh … oh and one more question. Can I set the start zoom in the custom tile? At the moment I think the location is zoomed out too far by default. I would like it to be a bit closer - VG Uwe
It’s open source, so in theory it could be customized to accomplish that. We were doing something similar with the Life 360 map Custom Tile since their API returns multiple family members. It looks like that feature was introduced in the following commit for the Life 360 Custom Tile.
From a quick look at it, it looks like the setMarkers()
and fitMapToMarkers()
functions handle this in the Life 360 example. In theory, the same approach could be applied to the updatePosition()
in the Geolocation Map Tile.
Unfortunately, I don’t have the spare capacity to look at this at the moment unless it had broader interest from the community.
You can change the zoom on line 165 in the setMapCenter()
function.
Hello Josh, I’ve tried it myself. The only thing I haven’t managed to do is get the map source selection to work as a dropdown menu. So the type of map has to be entered manually. I’ll post the code here
Link to HTML Code → Download - UploadNow.io
Best regards Uwe