From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: emacs-orgmode@gnu.org
Subject: Re: anyone syncing orgmode calendar with google cal, and if so how?
Date: Mon, 05 Oct 2015 11:17:13 -0400 [thread overview]
Message-ID: <87a8rxmjk6.fsf@yale.edu> (raw)
In-Reply-To: CAOQHXPrjwqfUFLwU2EauWnX6adaioUqtmJhwAbBiajDuZwQiFw@mail.gmail.com
Xebar Saram writes:
> i was wondering if anyone was syncing orgmode calendar with
> google cal, and if so how? i tried this
>
> https://github.com/myuhe/org-gcal.el/issues
>
> which gave errors all the time and thus stopped being usable
>
> im looking for a robust solution. any ideas?
I export the agenda using org-icalendar-combine-agenda-files. If
you have access to a server, it is enough to point
org-icalendar-combined-agenda-file to the right location in your
server and then adding the ics file location in google calendar
(Other calendars/Add by URL). You can automate this with a timer:
#+BEGIN_SRC emacs-lisp
(org-icalendar-combined-agenda-file
"~/public_html/calendar.ics")
(run-with-idle-timer (* 60 60) t
'org-icalendar-combine-agenda-files)
#+END_SRC
If you do not have access to a server, you could use github
(https://pages.github.com/) or bitbucket
(https://confluence.atlassian.com/bitbucket/publishing-a-website-on-bitbucket-221449776.html)
to create a website for your account. Then you can point
org-icalendar-combined-agenda-file to the repo of your website and
commit and push every time that you export the agenda to the ics
file. In this case change org-icalendar-combined-agenda-file
accordingly.
#+BEGIN_SRC emacs-lisp
(org-icalendar-combined-agenda-file
"/path/to/personal/website/repo/calendar.ics")
#+END_SRC
If you do not like timers, you can also automate the process
creating an sh file:
#+BEGIN_EXAMPLE
#!/bin/bash
emacsclient -a '' -e "(org-icalendar-combine-agenda-files nil)"
cd /path/to/personal/website/repo
git add calendar.ics
git commit -m "Update calendar"
git push
#+END_EXAMPLE
And then using a cronjob.
Best,
--
Jorge.
next prev parent reply other threads:[~2015-10-05 15:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 6:46 anyone syncing orgmode calendar with google cal, and if so how? Xebar Saram
2015-10-05 15:09 ` Eric S Fraga
2015-10-05 17:45 ` Rainer M Krug
2015-10-05 18:37 ` Fabrice Popineau
2015-10-05 20:36 ` James Richardson
2015-10-07 11:46 ` Guido Van Hoecke
2015-10-07 11:56 ` Eric S Fraga
2015-10-07 12:08 ` Guido Van Hoecke
2015-10-05 15:17 ` Jorge A. Alfaro-Murillo [this message]
2015-10-06 9:58 ` Julien Cubizolles
2015-10-06 10:03 ` Julien Cubizolles
2015-10-06 10:21 ` Julien Cubizolles
2015-10-06 13:35 ` Eric S Fraga
2015-10-06 14:45 ` Julien Cubizolles
2015-10-06 15:42 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8rxmjk6.fsf@yale.edu \
--to=jorge.alfaro-murillo@yale.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).