I am a newbie with MacroDroid and I am impressed with its capabilities. Just started with my journey.
To start a more serious and useful macro, I would like to create one with the following requirements:
1. Mobile number of a family member will send me an SMS message: Ex: WRU?
2. The macro will receive the message and check or get my current GPS location (my mobile device)
3. It will verify the GPS location by comparing it to a pre-determined list of locations (array variable)
4. If found from the list, the macro will send the corresponding location name and not the coordinates
5. If it is not found it will use the GPS info and send a Google Map link instead.
What I have started so far:
Variables:
Text_msg (string) - stores the msg and checks if it matched the exact msg; If matched will trigger the action
Source_no (string) - stores the contact number of the sender
Auth_source (2-dimensional array) - predetermined values; reference matrix table to check the Source_no if it is included in the list;
Ex:
Auth_source(0)(0) = 1st mobile number
Auth_source(0)(1) = 1st family member name
Auth_source(1)(0) = 2nd mobile number
Auth_source(1)(1) = 2nd family member name
.. and so on and so forth.
If sender's number is found in the list. proceed to next action.
GPS_coords (string) - stores the current GPS location
Listed_loc (2-dimensional array) - predetermine values; reference matrix table to check the GPS_coords' value
Ex:
Listed_loc(0)(0) = 1st GPS coordinates entry
Listed_loc(0)(1) = 1st location description
Listed_loc(1)(0) = 2nd GPS coordinates entry
Listed_loc(1)(1) = 2nd location description
.. and so on and so forth.
The goal is for the macro to send back a reply to the sender reflecting the value taken from the second item of the Listed_loc variable.
If there's no match for the sender number, No response or action will be generated/executed.
If sender's mobile number matched but the GPS_loc is not yet listed in the table, send a Google Maps link instead based on the coordinates.
Triggers:
SMS from {v=Auth_source}
Matches: WRU?
Actions:
Share Location
GPS_coords
....
....
I'm stuck. Not familiar yet how the comparison will take place..
Hope someone can lead me or assist me in accomplishing the task.
Thanks in advance.
To start a more serious and useful macro, I would like to create one with the following requirements:
1. Mobile number of a family member will send me an SMS message: Ex: WRU?
2. The macro will receive the message and check or get my current GPS location (my mobile device)
3. It will verify the GPS location by comparing it to a pre-determined list of locations (array variable)
4. If found from the list, the macro will send the corresponding location name and not the coordinates
5. If it is not found it will use the GPS info and send a Google Map link instead.
What I have started so far:
Variables:
Text_msg (string) - stores the msg and checks if it matched the exact msg; If matched will trigger the action
Source_no (string) - stores the contact number of the sender
Auth_source (2-dimensional array) - predetermined values; reference matrix table to check the Source_no if it is included in the list;
Ex:
Auth_source(0)(0) = 1st mobile number
Auth_source(0)(1) = 1st family member name
Auth_source(1)(0) = 2nd mobile number
Auth_source(1)(1) = 2nd family member name
.. and so on and so forth.
If sender's number is found in the list. proceed to next action.
GPS_coords (string) - stores the current GPS location
Listed_loc (2-dimensional array) - predetermine values; reference matrix table to check the GPS_coords' value
Ex:
Listed_loc(0)(0) = 1st GPS coordinates entry
Listed_loc(0)(1) = 1st location description
Listed_loc(1)(0) = 2nd GPS coordinates entry
Listed_loc(1)(1) = 2nd location description
.. and so on and so forth.
The goal is for the macro to send back a reply to the sender reflecting the value taken from the second item of the Listed_loc variable.
If there's no match for the sender number, No response or action will be generated/executed.
If sender's mobile number matched but the GPS_loc is not yet listed in the table, send a Google Maps link instead based on the coordinates.
Triggers:
SMS from {v=Auth_source}
Matches: WRU?
Actions:
Share Location
GPS_coords
....
....
I'm stuck. Not familiar yet how the comparison will take place..
Hope someone can lead me or assist me in accomplishing the task.
Thanks in advance.
Last edited: