Next Party Planner

You feel like a party (or a picnic) but you have to find a reason. Why not celebrate that you (or you and your family) exist for 100 years, or 2 million hours, or 10 thousand weeks?

Go to Next Party Planner. Fill in your birthdays and check the next opportunity for a picnic.

Did you know?

  • That the The Beatles would have been 10 billion seconds old on 11 December 2020.
  • That the The Rolling Stones will be 300 years old on 2 February 2019.
  • That Radiohead will be 200 years old on 27 January 2019.
  • That the Obama’s will be 150 years old on 23 november 2018 and 80 million minutes old on 3 June 2019

Python sunset timer for Philips Hue

The Philips Hue has a nice API. It took me a few picnics to figure out how it works. So for your convenience I give you a few snippets of Python code.

First you have to figure out what your username is:

With this username you can check lights or turn them on and off:

And now a wrapper function:

The iot class is a homebrew event logger:

You can use crontab to set timers. But why not make it yourself 🙂

You have to put all timers in timers.txt
Yes, I know, it looks a lot like crontab. This one is not better, but I made it myself 🙂

And you need to know when the sun rises and sets. I didn’t write this class myself but I also forgot where I found it. Credits to the anonymous maker!

Convert gedcom to html with bootstrap, d3 and jquery using python

What did the life of my grandfather look like? Did he have siblings? Who were his parents? I had many question and on one of these Sunday afternoon I decided to go for it. I tried some genealogy websites and offline programs and selected Gramps. I found my grandfather into some of those websites that have digitized family records and started filling my database with ancestors, aunts, great aunts. I found that my grandfather had a small brother who died at the age of 3 and that his mother died of Spanish flu.

And then the moment came to share the result with my family, the ones that are still alive. I tried a few html generators but they all looked fairly old fashioned. Therefore I wrote one myself: gedcom2html. Gedcom is a (or the) standard for genealogy files. Gedcom2html uses d3 sunbursts for an ancestor and descendant fan chart. It uses d3 force simulation for a graph of all individuals in the gedcom file.

An example says more than words. So have a look at the family tree of the Dutch Royal Family  You can convert a gedcom file to html yourself using my script on github: gedcom2html

Unfortunately the solution doesn’t scale. It works excellent for a gedcom file with a few hundred individuals. But with a larger gedcom file (>2000) the html files explode to 500 kB each. The script should be improved by moving functionality from the server (python) to the client (javascript). All data should be in a single json file and be read by the JS script. To be fixed during a future picnic.