Create a large timeline image using a data export from the Feed Baby mobile app.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
arial.ttf
example.png
generate_stats.php
generate_timeline.php

README.md

Feed Baby Timeline Generator

This script will take a CSV export from the Feed Baby app, and reconstruct the timeline as one big image.

An example of the timeline you can get.

Print it on a poster! Put it on a t-shirt! Or print it out and give it to your child when they're older so you can show them just how much of a pain they were.

Usage

Take the CSV exports from Feed Baby and put them into a sub-directory called data. Then run the generate_timeline.php script.

>ls data
excretions.csv
feeds.csv
sleeps.csv
...

>php generate_timeline.php
Loading data from exported files...
Creating timeline image...
timeline.png written, processing complete

>

You will then have a file called timeline.png in the directory.

Customization

There are some customization options at the top of the script, which let you control if various labels and marking lines show up, and where you can configure the colours. I've not massively tested them, so things may break if you play about with them too much. They should all be well explained in the code comments.

Bonus Statistics

There's also a file which can generate some interesting statistics from the CSV data, such as total number of time spent feeding, how many times your little one has pooped... ever, whether they prefer the left breast over the right, etc. Run the generate_stats.php script to get the output to stdout. What can you do with this information? Tweet it out and share with the world just how much poop is involved in having a child!