Your intructable worked great thanks!
I also use pushbullet.
At night I use the Light_off command while printing.
When it is finished I get a push message witch is fine. The problem is that I get a overexposed picture of the finished print. It seems that the the light is turned on again for a short moment when pushbullet triggers the webcam.
The cam has too less time to focus and sends me that blurry and overexposed picture.
Does anyone know how to fix that? (I don't want to leave the light on.)
Maybe also a sleep command for the light_on.sh file?