Loaction of users on Dashboard

Is there a way to show the location of a user on a dashboard?
Just like on Home Assistant. Or maybe users iPhone location?

Probably hopefully this is

Nonetheless, what’s possible now is, you can show the user’s address on the dash, or/and you can show the map with the location pointer as camera device, which can be added to the dash.

With Here location services and the Here app you can create a map, but one needs to hand over their billing info to the company behind Here (not to the app dev).

How to:

https://community.homey.app/t/app-pro-here-free-location-map-services/115217/5

Second option

No need for handing over your billing info:

You’ll need a little script, and something which provides the latitude and longitude (Macrodroid, Tasker etc).

Script:

// The arguments should be added to the Homeyscript flowcard "and Run [script] with arguments"
const latitude = args[0].split(",")[0];
const longitude = args[0].split(",")[1];

const response = await fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${latitude}&lon=${longitude}`)
//
const data = await response.json();

// Check if (correct) data is returned
if (!data.address.village) {
  throw new Error("No data returned for: \nlatitude = " + latitude
    + "\nlongitude =" + longitude + "\n response = " + response + "\n data = " + data);
}

const aDdress = data.address.road + " " + data.address.house_number + " " + data.address.village;

const addRess = '"' + aDdress + '"';

// Write result to Hscript tag:
await tag('address_found', addRess);

// To check if arguments are OK:
// await tag('address_found', `${addRess} Checks: Args:${args[0]} Lat:${args[0].split(",")[0]} Lon:${args[0].split(",")[1]}`);
return true;

Flow:

Thank s @Peter_Kawa. For now I will use users address on the dash.

How is the developing off new futures, are they still developing of is this something the community has to pick up?

1 Like

YW. No clue about new features. You can use this topic to discuss I think: Homey Dashboards | Megathread

1 Like