From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: ics calendar? Date: Thu, 7 Sep 2017 10:18:16 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1421d8aad86405589a21ba" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpxdQ-00026y-8Z for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 10:18:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpxdL-0004yk-9t for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 10:18:24 -0400 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:33410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpxdL-0004wr-3t for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 10:18:19 -0400 Received: by mail-pf0-x234.google.com with SMTP id y68so17918044pfd.0 for ; Thu, 07 Sep 2017 07:18:17 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --94eb2c1421d8aad86405589a21ba Content-Type: text/plain; charset="UTF-8" I've been using Kaushal's fantastic ox-hugo to build my course websites (see http://2017.hackinghistory.ca/ for one more or less finished example; slightly out of date and not-yet documented source files are on Github at https://github.com/titaniumbones/Hacking-History/tree/2017). It's a great system and I love it. I've just noticed that Hugo supports .ics formats and thought it would be useful to have a calendar for the class. I've never done .ics exports in org -- I don't use the core calendar/agenda features very effectively -- and am not sure what the best way to do this would be. So I'm really just asking whether other people do ics exports and if so, how you structure the org source files and so forth. I look forward to hearing from everyone! Matt --94eb2c1421d8aad86405589a21ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been using Kaushal's fantastic ox-hugo t= o build my course websites (see = http://2017.hackinghistory.ca/ for one more or less finished example; s= lightly out of date and not-yet documented source files are on Github at https:= //github.com/titaniumbones/Hacking-History/tree/2017).=C2=A0 It's a= great system=C2=A0 and I love it.

I've just n= oticed that Hugo supports .ics formats and thought it would be useful to ha= ve a calendar for the class. I've never done .ics exports in org -- I d= on't use the core calendar/agenda features very effectively -- and am n= ot sure what the best way to do this would be.=C2=A0 So I'm really just= asking whether other people do ics exports and if so, how you structure th= e org source files and so forth.

I look forwa= rd to hearing from everyone!

Matt
--94eb2c1421d8aad86405589a21ba-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: ics calendar? Date: Thu, 07 Sep 2017 17:00:35 +0100 Message-ID: <87pob2mrbw.fsf@t3610> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpzEW-0003nx-N2 for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 12:00:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpzEP-0003Ts-2j for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 12:00:48 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:36260) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpzEO-0003Sv-SV for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 12:00:41 -0400 Received: by mail-wm0-x234.google.com with SMTP id r10so1649900wmf.1 for ; Thu, 07 Sep 2017 09:00:39 -0700 (PDT) In-Reply-To: (Matt Price's message of "Thu, 7 Sep 2017 10:18:16 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Matt Price Cc: Org Mode --=-=-= Content-Type: text/plain On Thursday, 7 Sep 2017 at 10:18, Matt Price wrote: > So I'm really just asking whether other people do ics exports and if > so, how you structure the org source files and so forth. I use ics export to make my calendar available to my phone. I have a script that I run periodically which has the following lines: --8<---------------cut here---------------start------------->8--- DIARY=...where my diary.org file resides... emacs -Q --batch --debug-init \ --directory=${HOME}/s/emacs \ --load=custom.el \ --load=esf-org.el --visit=${DIARY}.org --eval='(org-icalendar-export-to-ics)' --8<---------------cut here---------------end--------------->8--- and I then copy the resulting ics file to where Google Calendar, for instance, can find it. My custom.el has all of my Emacs customizations and esf-org.el my org specific customizations. I export all of my appointments and nothing else. Tasks etc. are in other org files. I simply want my Pebble watch to vibrate when I have an upcoming appointment and that's connected to my phone which needs my calendar etc. etc. etc. :-) Sounds like the "For the want of a nail, the kingdom was lost" kind of story: from Emacs via org to my watch in N easy steps! HTH, eric -- : Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWbFtIwAKCRDIkZPY//z2 ffCMAJ0b/UR+GVCLQqSX5Z1kTjbel4zhgQCgl0+V0PkC4/BG/E9uZ0mAqWFkWpU= =5cG8 -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ics calendar? Date: Fri, 08 Sep 2017 11:13:15 +0200 Message-ID: <871snho8no.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqFN3-0004BR-7Z for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 05:14:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqFMy-0006JO-CR for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 05:14:41 -0400 Received: from [195.159.176.226] (port=44642 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqFMy-0006H1-5R for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 05:14:36 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dqFM6-0000n9-4u for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 11:13:42 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Matt Price writes: > I've just noticed that Hugo supports .ics formats and thought it would be > useful to have a calendar for the class. I've never done .ics exports in > org -- I don't use the core calendar/agenda features very effectively -- > and am not sure what the best way to do this would be. So I'm really just > asking whether other people do ics exports and if so, how you structure the > org source files and so forth. 1. Create the headline, "* Hacking History 2017 class {{{n}}}", maybe in a new file, classes.org. 2. Give it a date with "C-c .". AFAIK you have to manually put the cursor on the new line. 3. M-x org-clone-subtree-with-time-shift and give (1- total-number-of-classes) plus a time shift, typically +1w- 4. Export to ICS, maybe as part of your publishing routine if ox-hugo uses ox-publish. You should be able to create something like this, * Hacking History 2017 class {{{n}}} <2017-09-08 Fri 10:00-12:00> * Hacking History 2017 class {{{n}}} <2017-09-15 Fri 10:00-12:00> * Hacking History 2017 class {{{n}}} <2017-09-22 Fri 10:00-12:00> I use org-caldav to synchronize with owncloud for what it is worth. Hope it helps, Rasmus -- The right to be left alone is a human right From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: ics calendar? Date: Fri, 08 Sep 2017 08:52:09 -0700 Message-ID: <87efrhtcgm.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqLaR-0005Gq-7K for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 11:52:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqLaN-0002oB-Ba for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 11:52:55 -0400 Received: from [195.159.176.226] (port=53333 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqLaN-0002nx-4S for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 11:52:51 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dqLZy-00078D-UR for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 17:52:26 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Matt Price writes: > I've been using Kaushal's fantastic ox-hugo to build my course websites (see http://2017.hackinghistory.ca/ for one more or less finished example; slightly out of date and not-yet documented source files are on Github at > https://github.com/titaniumbones/Hacking-History/tree/2017). It's a great system and I love it. > > I've just noticed that Hugo supports .ics formats and thought it would be useful to have a calendar for the class. I've never done .ics exports in org -- I don't use the core calendar/agenda features very effectively -- and am not sure > what the best way to do this would be. So I'm really just asking whether other people do ics exports and if so, how you structure the org source files and so forth. In addition to what others have said, I'll note that the export process "flattens" all entries with dates, so the structure of the org file itself matters less. Apologies if you already knew that... Eric From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: ics calendar? Date: Mon, 11 Sep 2017 09:45:25 -0400 Message-ID: References: <87efrhtcgm.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0b907090f2ef0558ea2349" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drP1m-0007Am-0q for emacs-orgmode@gnu.org; Mon, 11 Sep 2017 09:45:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drP1k-00072K-Pn for emacs-orgmode@gnu.org; Mon, 11 Sep 2017 09:45:30 -0400 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:36536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drP1k-000716-Ip for emacs-orgmode@gnu.org; Mon, 11 Sep 2017 09:45:28 -0400 Received: by mail-pf0-x234.google.com with SMTP id e199so14001827pfh.3 for ; Mon, 11 Sep 2017 06:45:26 -0700 (PDT) In-Reply-To: <87efrhtcgm.fsf@ericabrahamsen.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" Cc: Org Mode --94eb2c0b907090f2ef0558ea2349 Content-Type: text/plain; charset="UTF-8" On Fri, Sep 8, 2017 at 11:52 AM, Eric Abrahamsen wrote: > Matt Price writes: > > > I've been using Kaushal's fantastic ox-hugo to build my course websites > (see http://2017.hackinghistory.ca/ for one more or less finished > example; slightly out of date and not-yet documented source files are on > Github at > > https://github.com/titaniumbones/Hacking-History/tree/2017). It's a > great system and I love it. > > > > I've just noticed that Hugo supports .ics formats and thought it would > be useful to have a calendar for the class. I've never done .ics exports in > org -- I don't use the core calendar/agenda features very effectively -- > and am not sure > > what the best way to do this would be. So I'm really just asking > whether other people do ics exports and if so, how you structure the org > source files and so forth. > > In addition to what others have said, I'll note that the export process > "flattens" all entries with dates, so the structure of the org file > itself matters less. Apologies if you already knew that... > > Eric > thanks to both of you for the hints -- I have my dates in the headlines themselves for various reasons, so I think I have to write a quick export filter to remove them from the ics output. Running a little short o ntime for the start of class (!) but maybe in the next week or s; if I get it to work I'll report back. --94eb2c0b907090f2ef0558ea2349 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Sep 8, 2017 at 11:52 AM, Eric Abrahamsen <= eric@ericabrah= amsen.net> wrote:
Matt Price <moptop99@gmai= l.com> writes:

> I've been using Kaushal's fantastic ox-hugo to build my course= websites (see http://2017.hackinghistory.ca/ for one more or less= finished example; slightly out of date and not-yet documented source files= are on Github at
> https://github.com/titaniumbones= /Hacking-History/tree/2017).=C2=A0 It's a great system=C2=A0 a= nd I love it.
>
> I've just noticed that Hugo supports .ics formats and thought it w= ould be useful to have a calendar for the class. I've never done .ics e= xports in org -- I don't use the core calendar/agenda features very eff= ectively -- and am not sure
> what the best way to do this would be.=C2=A0 So I'm really just as= king whether other people do ics exports and if so, how you structure the o= rg source files and so forth.

In addition to what others have said, I'll note that the export = process
"flattens" all entries with dates, so the structure of the org fi= le
itself matters less. Apologies if you already knew that...

Eric

thanks to both of yo= u for the hints -- I have my dates in the headlines themselves for various = reasons, so I think I have to write a quick export filter to remove them fr= om the=C2=A0 ics output. Running a little short o ntime for the start of cl= ass (!) but maybe in the next week or s; if I get it to work I'll repor= t back.


--94eb2c0b907090f2ef0558ea2349--