Location accuracy

Internet.shah

New member
Hello there,
I am using difficulties in location based tasks. I select a place in a task but the task not trigger at the said place. Plz resolve my problem.
Thanks
 

dhj49er

Well-known member
There are many unknowns in your request.

Are you using geofences?

If so, what radii are you using?

I assume you have given MD and helper location permission all the time.

Many more.....but rather than try and second guess what you have tried........

Can you post a screenshot of your macro(S)?
 

dhj49er

Well-known member
The macro title suggests you want this macro to run when you go outside, suggesting when you exit an area (rather than enter)

If so, the trigger should be exit area, assuming the geofence area is the one you are inside.

The macro also does not include turning off the torch.

Do you want the macro to do this or do you turn off the torch manually?

If by macro, it could be a simple wait X seconds action followed by Torch off action. This would ensure the torch cannot remain on indefinitely.

Alternatively, it could be when entering the area., using area entered triggered to run torch off action.

Or a combination of both...use cancel macro this macro action after the torch off actions.
 

Internet.shah

New member
Thanks all!
Mr. Dhj49er,
I have put this title because this macro I set for a village where at night time no street lights. The light is only inside a compartment i.e. house etc. but outside dark. So I want the macro should run when I am in the whole village include compartments. My mobile should detect light and should trigger the macro only in dark situation although inside, in screen on and specific time range.
 

dhj49er

Well-known member
It might be better to have 2 macros

The first handles entering and exiting the village.
Uses global Boolean variable called "InVillage" - set true on entering and set false on exit.

Macro 1
T Geofence enter village
T Geofence exit village
A set Invillage True C Trigger fired Geofence enter village
A set InVillage False C Trigger fired Geofence exit village

The second macro handles turning Torch on & off

Macro 2
T Screen On
T Screen off
A Torch On C Trigger fired Screen On
A Torch Off C Trigger fired Screen Off
C In village True
C Time of day 18:00-05:50
 

Dm114

Well-known member
It might be better to have 2 macros

The first handles entering and exiting the village.
Uses global Boolean variable called "InVillage" - set true on entering and set false on exit.

Macro 1
T Geofence enter village
T Geofence exit village
A set Invillage True C Trigger fired Geofence enter village
A set InVillage False C Trigger fired Geofence exit village

The second macro handles turning Torch on & off

Macro 2
T Screen On
T Screen off
A Torch On C Trigger fired Screen On
A Torch Off C Trigger fired Screen Off
C In village True
C Time of day 18:00-05:50
To avoid using a Global "InVillage" variable, I'd gather both macros in a unique one and use a local boolean variable.
 

dhj49er

Well-known member
To avoid using a Global "InVillage" variable, I'd gather both macros in a unique one and use a local boolean variable.
Yes, that would work, but wouldn't allow Invillage to be used in more macros - useful if the OP decides to automate other settings when at that location.

Also, I prefer to keep all my geofence triggered macros separate and in 1 category.

I disable the category when I'm on WiFi and enable the category when WiFi is disconnected.

This prevents MD constant Location access (that occurs when a geofence triggered macro is enabled) when I'm not moving around (on WiFi)

I prefer to save battery than a global variable.
 
Last edited:

Internet.shah

New member
Yes, that would work, but wouldn't allow Invillage to be used in more macros - useful if the OP decides to automate other settings when at that location.

Also, I prefer to keep all my geofence triggered macros separate and in 1 category.

I disable the category when I'm on WiFi and enable the category when WiFi is disconnected.

This prevents MD constant Location access (that occurs when a geofence triggered macro is enabled) when I'm not moving around (on WiFi)

I prefer to save battery than a global variable.

My Macrodroid does not trigger location based macros at exact place. While it's using Google maps. And when you take driving or waking directions through Google maps, it directs you at exact place to turn and give exact distances. Then why it is requiring radius not minimum than 30 meters? Can anybody resolve my problem that Macrodroid should trigger when I reach the exact place?
 

dhj49er

Well-known member
My Macrodroid does not trigger location based macros at exact place. While it's using Google maps. And when you take driving or waking directions through Google maps, it directs you at exact place to turn and give exact distances. Then why it is requiring radius not minimum than 30 meters? Can anybody resolve my problem that Macrodroid should trigger when I reach the exact place?
GPS does not provide exact location.

See the attachment for details on smartphone GPS accuracy.

As for MD Geofence I would recommend a minimum radius of 100m and avoid touching or overlapping Geofence areas.

The other parameter that you can adjust (in settings) is the location update rate. Typically this is usually set for 3, 5 ot more minutes, but can be as low as 5s. The faster the update rate will impact on battery life.

If you want MD Geofence to trigger as soon as possible after entering an area try 10s update rate. But be aware that update rate will be used continuously while any macro has a Geofence trigger, so will impact on battery life.
 

Attachments

  • Screenshot_20240113_072728_DuckDuckGo.jpg
    Screenshot_20240113_072728_DuckDuckGo.jpg
    227.5 KB · Views: 5

dhj49er

Well-known member
I forgot to add...MD uses Google location services and make sure improve location accuracy is ON, in phone system settings
 

Internet.shah

New member
GPS does not provide exact location.

See the attachment for details on smartphone GPS accuracy.

As for MD Geofence I would recommend a minimum radius of 100m and avoid touching or overlapping Geofence areas.

The other parameter that you can adjust (in settings) is the location update rate. Typically this is usually set for 3, 5 ot more minutes, but can be as low as 5s. The faster the update rate will impact on battery life.

If you want MD Geofence to trigger as soon as possible after entering an area try 10s update rate. But be aware that update rate will be used continuously while any macro has a Geofence trigger, so will impact on battery life.
But sir how accuracy of directions during driving with Google maps accurate in all such circumstances you described?
 

dhj49er

Well-known member
But sir how accuracy of directions during driving with Google maps accurate in all such circumstances you described?
Driving with Google maps determines directions on its server not on the phone and doesn't work without an internet connection.

All I can suggest is to check the following

Make sure MD has location permission set all the time

Turn on WiFi scanning as this improves location accuracy

Calibrate the phones compass as this improves location accuracy
 

Dm114

Well-known member
But sir how accuracy of directions during driving with Google maps accurate in all such circumstances you described?
I see, at least, 2 possible explanations:
1) Google's update rate is probably very fast (something like 1s or less)
2) It may use a maximum number of satellites (maybe 5 or more) as the more satellites are used for calculation, the more accurate the result is. MD uses informations provided by Android and, as Google and Android have the same progenitor, everything is possible to promote such or such product...
 
Top