From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eJTvEoJZYV/cAgAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 00:17:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SAwrDYJZYV8gKQAAB5/wlQ (envelope-from ) for ; Wed, 16 Sep 2020 00:17:06 +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 C75F99400D3 for ; Wed, 16 Sep 2020 00:17:05 +0000 (UTC) Received: from localhost ([::1]:44738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIL8B-0006v6-I0 for larch@yhetil.org; Tue, 15 Sep 2020 20:17:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIL7i-0006ui-CS for emacs-orgmode@gnu.org; Tue, 15 Sep 2020 20:16:34 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:37619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIL7g-0005ip-PB for emacs-orgmode@gnu.org; Tue, 15 Sep 2020 20:16:34 -0400 Received: by mail-pj1-x1030.google.com with SMTP id kk9so616823pjb.2 for ; Tue, 15 Sep 2020 17:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:message-id:date :mime-version:content-transfer-encoding; bh=ePywfgYmi8tDsOiXCmaRzN2ab8rr0mP0wVvnQzmQtz8=; b=NVP+o8eLFtP9iYogjx8uFB8XAnvPU+1kygj4+JjUcujxk3Y/zFBiWY8sdUmg0LRQv/ ie8U2QzwoNPuIpOSdiv7OtHoqh0PR4Rb5CL9CpKmZHs2tbqeA3SCTdbuxyr62rd4OOkH /i73PKY+f72DZUmsCrrWsOq+FVEsFQVKLwA6s7oBQ2oiJtMj+BnER+zzK6RCTNT5YeR7 k4eLmoIYLmn0cEVcVzby7XpGNc18Lwsh1WDUffv150c5wyqeKQPqO2GbRmVxnqIvnxFR Y9/2d6RpQhNR2xe8PwUbcrDHhtxr8GRxUbL/8UwbT3cjkrdrQSv7xt4pBUAfVsDW13vN E8qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=ePywfgYmi8tDsOiXCmaRzN2ab8rr0mP0wVvnQzmQtz8=; b=iwXL3UgGXHaAcPfjf5S1sJ1ZjzT5yE2g7lfNwFVKoGcm2zSlhTzF0s2N2LtzIoA2ya o3YZisTJjSVUSt/zO69wwIUiNoLZ/ip+QQtrPjQ3/8qSP9ZGcj/AuNVnK1Ws67MnieoW OkgJEqWWumZwYXd9x1JTAYZYLr9Rac3qFQlEHgFSZzLDjTPQBv2SL3ZePbs3oRufx/9X YBd89f5V+mdK1CCmdvZS7zT23VNKzAcxiSGMbb+OPw2mtX6s7hRy+pZQRcBBx52jcRDl sFAsk+gOZjWuMlibRM//EsfKJJyVZEeZClq4oePHcyuiM8ZtMm/aaMrmeDl/nia/tTx9 AfHQ== X-Gm-Message-State: AOAM532t+q5yvbKECUjCRlv1eW2sClTuQZEg/Ai4SrhQOW7+pYrEpWCl 8IYk1r7UzkJjKzGnF8Dbkpn/gsSFRdVevQ== X-Google-Smtp-Source: ABdhPJwjsvY0KFwjElP5ZOn3nA54cNt35LlS7AwWBtk4t3qnIhdW0FGnRdXRcqM+ow+8sbAsP1PvoQ== X-Received: by 2002:a17:90a:9708:: with SMTP id x8mr1642789pjo.213.1600215390990; Tue, 15 Sep 2020 17:16:30 -0700 (PDT) Received: from tim-desktop (106-69-134-154.dyn.iinet.net.au. [106.69.134.154]) by smtp.gmail.com with ESMTPSA id gd14sm599252pjb.0.2020.09.15.17.16.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 17:16:30 -0700 (PDT) References: <68dc1ea1-52e8-7d9e-fb2d-bcf08c111eca@intrepidus.pl> <87d02n2yyr.fsf@gmail.com> <482cea5c-4214-57ac-dfeb-1e305180fee5@intrepidus.pl> User-agent: mu4e 1.5.5; emacs 27.1.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: official orgmode parser In-reply-to: <482cea5c-4214-57ac-dfeb-1e305180fee5@intrepidus.pl> Message-ID: <877dsu37ac.fsf@gmail.com> Date: Wed, 16 Sep 2020 10:16:27 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1030.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NVP+o8eL; dmarc=pass (policy=none) header.from=gmail.com; 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.71 X-TUID: bHdH3EpkZbTN Przemys=C5=82aw Kami=C5=84ski writes: > > So, I keep clock times for work in org mode, this is very handy.=20 > However, my customers require that I use their service to provide the=20 > times. They do offer API. So basically I'm using elisp to parse org,=20 > make API calls, and at the same time generate CSV reports with a Python=20 > interop with org babel (because my elisp is just too bad to do that). If= =20 > I had access to some org parser, I'd pick a language that would be more=20 > comfortable for me to get the job done. I guess it can all be done in=20 > elisp, however this is just a tool for me alone and I have limited time=20 > resources on hacking things for myself :) > I would probably use org's org-export-table command to export the clock table as a CSV and then just use a simple script to read in that CSV and do the API calls.=20 > Another one is generating total hours report for day/week/month to put=20 > 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=20 > were much better off if it all stayed in some Scheme :) > Sounds like you have a solution. I would probably just setup a hook to generate the updated table and export it when the file is saved and then have something consume that exported file to update the taskbar.=20 --=20 Tim Cross