Some scripts I use from time to time for keeping track of my productivity (pomodoros) on my main machine, and on my phone by coding a telegram bot with a Telegam python API.
I am able to register an activity or event and its duration on Telegram, and have it stored on my notebook in a json file.