Use location variable in geofence

AnitaN

New member
When I start paying for parking in my parking app, I get a notification. I would like to use that notification to do the following:
- set my location in a variable
- somehow use the variable in geofence
- if I leave the area I would like to get a notification to check if I stopped the paid parking action. It shouldn't stop the payment, just show the notification.
- it would be nice if the notification contains two buttons. One to ignore and one to end the parking.

Is this possible?
 

Pepy

Member
So you want to be reminded in case you forget to complete the parking payment? Geofences have to be updated manually so it will have to wait until you finish before proceeding to update the location for the associated trigger.
 

AnitaN

New member
So you want to be reminded in case you forget to complete the parking payment? Geofences have to be updated manually so it will have to wait until you finish and exit the app before proceeding to update the location for the associated trigger.
The payment has already started. But it has to be stopped manually when you leave, which I tend to forget. So if I started paying at 10 am, only parked for an hour and drive away, the payment will last the rest of the day if I don't stop it.

How do I set the parking location to the geofence as soon as my parking app says "payment started"?
 

Pepy

Member
How do I set the parking location to the geofence as soon as my parking app says "payment started"?
You can open the Macrodroid app and use UI interaction to navigate to the associated Geofence then either use the request location button or an Extract text action to retrieve the coordinates from {notification} and search for it.
 
Last edited:

dhj49er

Well-known member
The payment has already started. But it has to be stopped manually when you leave, which I tend to forget. So if I started paying at 10 am, only parked for an hour and drive away, the payment will last the rest of the day if I don't stop it.

How do I set the parking location to the geofence as soon as my parking app says "payment started"?
So after you receive the payment started notification, you want to stop paying when you return to the car and drive away?

If your phone connects via Bluetooth to the car, I suggest using that rather than Geofence.

Receive the payment notification to trigger the macro.

Wait for car Bluetooth to disconnect, if connected - in case you are still in the car.

Leave the car and car Bluetooth disconnects.

Go back to your car and on entering the car the car Bluetooth connects.

Wait for car Bluetooth to connect then do whatever actions you want to do. A loud voice announcement stop payment might be a good reminder. Suggest waiting a minute or so, to allow time for when you remember to stop payment and don't need the reminder. A stopped payment notification could be use to cancel the macro.
 
Last edited:
Top