1 I use [calendar][] to display birthdays and things that I should
2 remember a few days before they hit the fan. However, `calendar`
3 doesn't know all of my relative's birthdays out of the box. I use
4 [Gramps][] to track my family's genealogy, so all the birthday data is
5 in the Gramps database. This is how we get that information out in a
6 format that calendar can read:
8 $ python src/gramps.py -O wtk -a report -p name=calendar_dates,of="${HOME}/.calendar/birthday"
9 $ grep --color=always -e 'Important Name' -e ^ ~/.calendar/birthday.txt > ~/.calendar/birthday.color
11 The `-e ^` ensures that every line in `birthday.txt` is copied to
12 `birthday.color`, and `-e 'Important Name'` uses ANSI escape sequences
13 to highlight the name of someone particularly close to you.
15 The `CalendarDates` plugin is my adaptation of the `BirthdayReport`
16 plugin distributed with Gramps ([[CalendarDates.patch]]). To install
17 my plugin, create `~/.gramps/gramps34/plugins/CalendarDates`, drop
18 [[CalendarDates.gpr.py]] into the new directory, copy your Gramps
19 installation's version of `BirthdayReport.py` into the new directory
20 as `CalendarDates.py` and apply my patch with:
22 $ patch CalendarDates < CalendarDates.patch
24 [calendar]: http://bsdcalendar.sourceforge.net/
25 [Gramps]: http://www.gramps-project.org/