Dim the Raspberry Pi screen

I installed a display in the kitchen, but by default the screen is really bright.

Managed to dim the screen, based on the time of the day.

Blogged about it here: https://andreas.scherbaum.la/blog/archives/1000-Dim-the-Raspberry-Pi-screen.html