My wife and I used to use Latitude to keep track of each-others' commutes, which can be highly variable. Since Latitude shut down, I've been unsatisfied with the sketchy or absurdly complicated alternatives. However, we don't like to just call or send a manual SMS text message, because it is highly likely that the other person is in a meeting, focused on driving or whatever, and we don't want to rudely interrupt.
The code requires two files that should be shared among all family members:
- /storage/sdcard0/wherecode.txt, which contains a shared code of length 115 characters or less. This is used as the key for catching SMS, so make it random. E.g, the contents could be
Code: Select all
thedeefita4QuahX3imu9oFieyie8Kee2oy4Ji3aequo1je1ax
- /storage/sdcard0/wherenums.txt, which contains a comma-separated list of the authorized sending and receiving phone numbers. There should be no spaces and no extra commas. E.g., the contents could be
Code: Select all
111-222-3333,111-222-3334,111-222-3335
- where? auth When Automagic is run, check for the above files and load their contents. Also, ask about verbosity.
- where? get A shortcut asks who to find, and sends an SMS requesting their location.
- where? recv Catches the location-requesting SMS, polls for location, and responds with the coords in an SMS. Optionally shows a notification that location was requested.
- where? view Catches the location-response SMS, and displays the coords as a pin in your favorite mapping program.
To set it up: Copy identical files and flows to everyone's phone. Before running the first time, try where? auth to make sure the files are in place, then install the shortcut in where? get to the desktop.
To use it: Hit the shortcut and wait a minute for the map to display. This is not a live moving display; that is, it only drops a single pin, and does not update it automatically.
To Do:
- it might be possible to make a weak version of a live location viewer, if we can replace SMS with a push-notification system.
- It might be nice to use the phone's "favorites" contact list
- It might be nice to be able to generate shared random OTP keys or use an encryption scheme for the responses. Has anyone implemented RSA in Automagic yet?
- Other comments/improvements/ideas appreciated!