3 ms·
Here's the code: https://github.com/nwinter/telepath-logger https://github.com/nwinter/telepath-logger I initially wrote it as an self-tracking activity logger
by nwinter 13y ago
Here's the code: https://github.com/nwinter/telepath-logger https://github.com/nwinter/telepath-logger
I initially wrote it as an self-tracking activity logger with no interface, but when I went to do the time-lapse video, I added the HUD UI and made it save screenshots at regular intervals. The HUD is actually showing on my screen at all times, so it gets included in the screenshots. From those screenshots, I just used ffmpeg to compile a video.
I haven't written this for anyone else to run it, but if you're running Mavericks, you could try! You'd probably want to cut out some of the stuff, like the part that shows the work graphs from my website.
The stats get recorded by all of the TPTracker*.m code. For keystrokes and mouse movements, you just ask to get notified of all system events (the user has to enable assistive access for Telepath). For window switches, light levels, and webcam, you have to poll. GitHub, Trello, and Gmail are polling web APIs, reading the API keys from stupid config files in Dropbox. For tracking how many builds I've done, I wrote a hacky brunch plugin: https://github.com/nwinter/telepath-brunch https://github.com/nwinter/telepath-brunch .
Current music comes from iTunes/Spotify distributed notifications, simple. Work hours and happiness/energy/health come from distributed notifications sent out by a Python script that parses my Emacs org mode files where I record these things whenever I save those files with Emacs after-save-hooks. So those would be unusable unless you were to modify the code to get some other way of doing happiness and mood. Same with the rightmost section: a web view showing the percentile feedback work graph from my website is not easily transferrable.