Punchclock - Part 2


Funny thing about us humans: a constant state of redefinition. So, I am using now a Python script to get an image from my webcam.

The image will overwrite the one previously taken. The script analyses the image via face_recognition and writes a status about my presence in a sqlite-DB (controlled via cron job). fswebcam is used to take the image, some SQL will format the data in the way I need (start work, stark big break, end big break, end work).

The Raspberry Pi solution was fun and simple, yet confidence in the motion sensor was lacking. Averaging helped, but on some occasions it wouldn’t record properly.

The code can be found at github.