First commit.

The time logic controller is a bit too simple right now. To be improved in next update !

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>