TeaNode · Documentation · Source

Location

The TeaNode app on your phone, an iPhone or an Android phone, can keep a record of where you go: each visit to a place, from when you arrived to when you left, on a map of your day. Your server keeps it, names the places, shares it with the people you choose, and your agent reads it, so "when did I last go to the gym" or "is Sam home yet" has an answer. Nothing is asked of the phone until you open Location in the app and turn it on.

What is recorded

What the phone records waits on the phone only until your server has it, so a day offline arrives whole when the network is back.

Trips and ways of travel

Between two visits is a trip, and each part of it is sorted into a way of travel: walk, run, bike, car, bus, train, boat or plane. Walking, running, cycling and driving come from the phone's motion activity, which the app asks for in Location setup (Motion & Fitness on the iPhone, Physical activity on Android); a flight is told by its distance and speed, and without motion activity the speed alone is a guess. A bus, a train or a boat is yours to say: open the part's menu and choose the right way, and your correction stays when the day is worked out again.

The Travel tab adds up how far you went each way, by day, week, month and year, in the units you chose.

Where the names come from

A new place is first named after its nearest city, from a table that ships with the server, and then named properly by the server's place provider: OpenStreetMap's public Nominatim service unless the operator sets another (a Photon of their own) or none. The provider is sent the place's position and nothing else: not your name, not the time, not your other places. The dashboard's and the Android app's maps are drawn from OpenFreeMap's tiles, fetched through your server, so your browser and your phone talk to nobody else; the iPhone app draws its maps with Apple Maps. Both are set under places in the configuration.

Sharing with your circle

Your location is yours. You share it with one person you share a circle with, or with the whole circle, at one of two levels:

You see no more of anybody than you share with them: share your visits to see theirs, share where you are to see where they are, or share nothing and see nothing. A phone allowed Location only while the app is in use shares no visits, and Location off, recording off or a pause shares nothing. When that hides somebody from you, a banner on the phone and the dashboard says what you cannot see and why, with the button that changes it.

The people you share with see you on a map, live, on the dashboard and in the app. When you arrive at or leave a place you named or labeled, those who share their own visits with you get a notification ("arrived home"); a place the server only found a name for tells nobody, and neither does a day the phone sends late. Leaving the circle ends the share at once.

Your agent

Your agent reads all of it with its location tool: where you are, where you were, how you got there and how far you cycled this month, which places you go to, and where the people who share with you are. Each day you have visits also becomes a short journal page that the agent's dreams read, so it learns your routine. In a chat with other people it speaks only of your own location, never of somebody who shared theirs with you.

Erasing

Erase takes away your positions and visits, for a day, a range or everything, along with the places you never named or labeled. Forget removes one place and its visits. What your agent already learned from those days stays in its memory until you remove it there, and the screens say so when you erase. Turning Location off in the app stops the recording.

On the command line it is teanode location, with now, visits, trips, travel, places, share, erase and the rest; teanode location --help lists them.

Documentation

Getting started

Running it

Security

Contributing

Every document is also plain markdown, listed in /llms.txt.