This is cool. Would love a system like home assistant w/ little blueprints that you could add. For example maybe you want to track your location and have that get defined automatically, i.e. anytime I visit the coffee shop, Iām working, so define that as work.
If you're on iOS, Life Cycle[1] can do this kind of thing for you. You can assign locations to categories (and it often does a good job of guessing them anyway) and it'll tally them up on a weekly/monthly/yearly basis.
Since it is just a text file, it is easy to merge it with other data at any point in the future.
So you could log your position on a different device. And only when you want to analyze the data, you write a script which converts the positions to lines like: