Geofence zone names as an option for a string variable

dialoguefog

New member
When setting a string variable, it would be helpful to be able to set the variable as Zone Name that I set when creating a Geofence.

Now I have to create multiple if statements for each trigger and set the variable manually.

Thanks!
 
What is the difference between having many GeoFences or having many variables for GeoFences?
The work you have to use it.

For example, I have a macro which registers in a file the places i have been to.
So, I need to convert the geofence name into a string.
If i had the magic string, i'd do:

Write to file: "Places" → current geofence name.

And that's it. Easy.



Buuuuut, since we don't have this "current geofence name", i have to create:
→a global variable named "Place now";
→another macro, which updates this variable when entering or exiting a geofence
→a gigantic trigger:
Geofence Entry trigger: Place A
Geofence Exit trigger: Place A
Geofence Entry trigger: Place B
Geofence Exit trigger: Place B
Geofence Entry trigger: Place C
Geofence Exit trigger: Place C
(If there were a trigger such as "Geofence Entry trigger: Any", or maybe an option to select multiple geofences in the same trigger, it would be awesome.)
→a gigantic ifElse:
If (trigger fired: Geofence Entry trigger: Place A)
Update Place now to "Place A"
Else if (trigger fired: Geofence Exit trigger: Place A)
Update Place now to ""
Else if (trigger fired: Geofence Entry trigger: Place B)
Update Place now to "Place B"
Else if (trigger fired: Geofence Exit trigger: Place B)
Update Place now to ""
Else if (trigger fired: Geofence Entry trigger: Place C)
Update Place now to "Place C"
Else if (trigger fired: Geofence Exit trigger: Place C)
Update Place now to ""

This is having 3 geofences, imagine having dozens, or maybe hundreds? 😭
 

Dm114

Well-known member
The work you have to use it.

For example, I have a macro which registers in a file the places i have been to.
So, I need to convert the geofence name into a string.
If i had the magic string, i'd do:

Write to file: "Places" → current geofence name.

And that's it. Easy.



Buuuuut, since we don't have this "current geofence name", i have to create:
→a global variable named "Place now";
→another macro, which updates this variable when entering or exiting a geofence
→a gigantic trigger:
Geofence Entry trigger: Place A
Geofence Exit trigger: Place A
Geofence Entry trigger: Place B
Geofence Exit trigger: Place B
Geofence Entry trigger: Place C
Geofence Exit trigger: Place C
(If there were a trigger such as "Geofence Entry trigger: Any", or maybe an option to select multiple geofences in the same trigger, it would be awesome.)
→a gigantic ifElse:
If (trigger fired: Geofence Entry trigger: Place A)
Update Place now to "Place A"
Else if (trigger fired: Geofence Exit trigger: Place A)
Update Place now to ""
Else if (trigger fired: Geofence Entry trigger: Place B)
Update Place now to "Place B"
Else if (trigger fired: Geofence Exit trigger: Place B)
Update Place now to ""
Else if (trigger fired: Geofence Entry trigger: Place C)
Update Place now to "Place C"
Else if (trigger fired: Geofence Exit trigger: Place C)
Update Place now to ""

This is having 3 geofences, imagine having dozens, or maybe hundreds? 😭
Do you mean you have already defined dozens or hundreds of Geofences? 😱
 
Top