brent timothy saner on 7 Jan 2016 10:41:32 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Programming help |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 01/07/2016 01:36 PM, Joe Rosato wrote: > I really liked the talk last night that Mark gave, very informative we ll > presented. Though not a programmer I do get excited when I can write > something in as few lines of code as possible, be it scripting, python , > perl, or cobol. (OK.. forget cobol). > > So in light of last night I figured I would try this with > python/hashes.. I tried this a while back and was too busy at work to > think straight and pissed at myself that it was turning into a torture d > bash script where you opt for speed over elegance just to get the job > done. I plan to take my time to do it RIGHT, not kludgy. > > Small background on the topic. I have been using Hamster > <https://github.com/projecthamster/hamster> to track my time at work, it > is simple and clean. Has a gui, command line (hamster-cli) and a tiny > database. Exports to a interactive web page to analyze your time usage . > I use google tasks on my phone and wanted to find a way to add those > tasks to Hamster without typing them in again. GOAL= /*I add some task s > on my phone the night before, and in the morning they are already insi de > Hamster for me to track my time.*/ > > I found tasky.py <https://github.com/jrupac/tasky> which allows me to > puke out my google task lists to a file. The output format is well > structured and I just need to write something to parse it and get it > into Hamster via hamster-cli. (incidentally the documentation is poor - - > I just use 'tasky.py -l --nocolor' to create my output file - nothing > more.) I attached the file and changed some personal info but not the > format. > > */caveats/* > 1. Hamster does not accept 'future' dates since it is not a task manag er > but a time tracker. I figured I would have it add my tasks to the day > before at odd hours like 1am, 2am, 3am, etc.. (as if already > started/completed) and then and I can redo the times in the morning. > 2. Indents matter in the attached file, there are sub-tasks > > *What do I want to parse and where do I want it to go?* > _Google Tasks --> Hamster_ > List --> tag > Task --> activity (with the above tag) > Notes --> Notes > Due Date ----> ehh, I'll figure that out later > > Give me your thoughts! For those part of the Triangle discussion last > night - I figured it out! Only sent it to Walt so as to not spill the > beans for others. > > Joe Rosato > > NB: Am I shamelessly using the PLUG list to forward my own agenda? Yes . > You know, you may be reinventing the wheel here for the most part. Have you heard of TaskWarrior? https://taskwarrior.org/ It even stores the tasks in plaintext files (fairly easily parseable): http://www.taskextras.org/projects/taskwarrior/wiki/Cookbook#Where-does- task-stores-the-data-How-do-I-backup-it which would have probably saved you a lot of headache. But kudos! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJWjrE9AAoJEIwATC+TSB9r0owQAMs5e2KaYXgVqgEdNZ8qTjdw ZHd9P6Cq7qu67gLeimOxuAssYO4YHyF/Y2cVGcbxXGMsOIRL/eiaoECUYJ2Y8599 NQCShgkShrRqSiD8ngodkMigIfCL2MHGGAWurbuOHn9/pHb50nfdt3hZ0PazU+83 6v0iLyucTVg3RQLSpQkuixilzpCISIGpX6NPO3GeghaBvURzwC5wdrj7uEQFisRc risFRijNRCZhO3hWA7EfHAaLPWBxXhlLDRMkAy8xpDedfPqH9g7PUroLo6BWo350 ZtlGfiOelObDqno5+glBR8XQuE2rt8zeoX5FMhpHn8BcoByIJE29Tg+ga/3xLcsM 5zJ+5SEeQjNhOpsfF7+W/HJu4EG0o0WeGTojBZUplfivwvFosY3ssoO7o3+aCBwo oxNs5t2NHtBdR1XkNF0G9w7aG0NC9QrkmFrSAILGW7slNfsSzQW6V0SQK3yRlNE8 fPjEUq3eJFXMbWdOjNkWoym9yUqGRebFj/huyo/lYChTmGcMIP2S4Kt8PpMnvgad Es/9PdpKlNoKGY0XuMDUIwxii0+IN+bREq7rGyc3SYJdnKdBuHLswzsmNIid8fDG emdEbxfDCwGEAN4PRhruHghKZsQ8HYYxo+d48vUUD40+iyKKafkekQO+KpGq9xZe O2Rz3LkpB7BinWAK7jsp =FhfN -----END PGP SIGNATURE----- ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug