From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SAPaOf29YV9FNQAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 07:25:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mOxLNP29YV/oTwAA1q6Kng (envelope-from ) for ; Wed, 16 Sep 2020 07:25:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 759389402DA for ; Wed, 16 Sep 2020 07:25:49 +0000 (UTC) Received: from localhost ([::1]:34660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIRp6-0007We-Ee for larch@yhetil.org; Wed, 16 Sep 2020 03:25:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIRoU-0007WH-6u for emacs-orgmode@gnu.org; Wed, 16 Sep 2020 03:25:10 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:35938) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIRoO-00069M-EM for emacs-orgmode@gnu.org; Wed, 16 Sep 2020 03:25:09 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 0858DE70AB; Wed, 16 Sep 2020 09:24:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KKMVc8WS3RZq; Wed, 16 Sep 2020 09:24:52 +0200 (CEST) Received: from localhost (jeden09-dwa27.echostar.pl [213.156.109.227]) by mail.mojserwer.eu (Postfix) with ESMTPSA id A43E1E652E; Wed, 16 Sep 2020 09:24:52 +0200 (CEST) References: <68dc1ea1-52e8-7d9e-fb2d-bcf08c111eca@intrepidus.pl> <87d02n2yyr.fsf@gmail.com> <482cea5c-4214-57ac-dfeb-1e305180fee5@intrepidus.pl> User-agent: mu4e 1.1.0; emacs 27.0.50 From: Marcin Borkowski To: =?utf-8?Q?Przemys=C5=82aw_Kami=C5=84ski?= Subject: Re: official orgmode parser In-reply-to: <482cea5c-4214-57ac-dfeb-1e305180fee5@intrepidus.pl> Date: Wed, 16 Sep 2020 09:24:49 +0200 Message-ID: <875z8echfi.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/16 03:24:56 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: vZlknAxBtu8m On 2020-09-15, at 11:17, Przemys=C5=82aw Kami=C5=84ski w= rote: > So, I keep clock times for work in org mode, this is very > handy. However, my customers require that I use their service to > provide the times. They do offer API. So basically I'm using elisp to > parse org, make API calls, and at the same time generate CSV reports > with a Python interop with org babel (because my elisp is just too bad > to do that). If I had access to some org parser, I'd pick a language > that would be more comfortable for me to get the job done. I guess it > can all be done in elisp, however this is just a tool for me alone and > I have limited time resources on hacking things for myself :) I was in the exact same situation - I use Org-mode clocking, and we use Toggl at our company, so I wrote a simple tool to fire API requests to Toggl on clock start/cancel/end: https://github.com/mbork/org-toggl It's a bit more than 200 lines of Elisp, so you might try to look into it and adapt it to whatever tool your employer is using. > Another one is generating total hours report for day/week/month to put > into my awesomewm toolbar. I ended up using orgstat > https://github.com/volhovM/orgstat > however the author is creating his own DSL in YAML and I guess things > were much better off if it all stayed in some Scheme :) Wow, another awesomewm user here; could you share your code? Best, --=20 Marcin Borkowski http://mbork.pl