Take a picture with Raspberry Pi

If you have a webcam you can try to connect it to Raspberry Pi and let it to take pictures for your glass.
I used fswebcam to take pictures and compress it to jpg format. And then requests library was used to send the image and other information in POST method to https://bareboneglass.appspot.com/upload .

You can change this line to your own XMPP address and customized message with image.
payload = {'xmpp_addr': '[email protected]/pi', 'msg': 'Photo from Pi'}
This guide was first published on Aug 15, 2013. It was last updated on Aug 15, 2013. This page (Take a picture with Raspberry Pi) was last updated on May 04, 2015.