Integrate the outlook calendar into your orgmode agenda
I am using Outlook 365 at my company. All meetings are organized over outlook, but I could not see them in my orgmode agenda, which lead to problems in my daily planning, because I often forgot to plan for those meetings in my daily planning, which is done in orgmode.
I have known ews-orgmode for a while and used it in the past with a different Exchange Server. But it was always a bit of a problem, because it was written in python with some modules, that are not easy to set up on windows (in particular lxml). Getting it to work often took several hours.
So today I tried to solve this issue. I started by creating a fork for ews-orgmode here to be able to do some modifications. To make the setup of python painless, I created a Dockerfile for the script. This makes it easy to run it on any platform without having to setup or configure python. I also added a sample entry in the config.cfg.sample for Office365.
The process is now pretty simple (I tested this on my mac):
- Install docker and git
- clone the repository
git clone https://github.com/abellmann/ews-orgmode.git
- Copy the config.cfg.sample to config.cfg and do the configuration for my user based on the sample for Office365
- create and run the docker image as described in the Readme of the project..
docker build --tag ews-orgmode .
docker run ews-orgmode
- Create a little script, that copies the result to my agenda directory ( on ubuntu/macos)
#!/bin/bash
/usr/local/bin/docker run ews-orgmode > /Users/andreas.bellmann/TODO/wiki/outlook.org
- Create a cronjob, that runs this script hourly
crontab -l
0 * * * * /Users/andreas.bellmann/bin/ews-orgmode.sh