Tag Archives: Open Source

Python ipcam library for Foscam and other ip web cameras

Here is a very helpful, easy to use, python library for Foscam and other ip web cams. I have been using it with a Raspberry Pi.

IPCam Python Library

Here’s an example of how it works:

Instantiate a camera connection.

from ipcam import IPCam

cam = IPCam(host='http://192.168.1.121',
            username='mylogin',
            password='mypass')

Get a snapshot from the camera.

snapshot = cam.get_snapshot()

Save the snapshot to a file.

from datetime import datetime

file_name_suffix = datetime.now().strftime("%Y%m%d_%H%M%S")
file_name = 'snapshot_{}.jpg'.format(file_name_suffix)
f = open(file_name, 'wb')
f.write(snapshot)
f.close()

Additionally, you can set camera parameters easily as well, they’re all by name, and right on the connection object.

cam.set_param('resolution',32)

Asterisk is the Digital PBX

VoIP has, thanks again to the Open Source community, become a technology we can all get our hands on.

I am, of course, talking about VoIP for business. No longer are we slaves to six-figure Cisco, Samsung, Panasonic "VoIP" offerings. I hesitate to even put most of them in a category of real VoIP because many of the Enterprise turn-key offerings have an analog backbone with digital plug-in cards. Now, for a mere $2-3,000 a small/medium business can have the same capabilities large corporations have been taking advantage of with VoIP or just traditional PBX technology.

Further, in many cases, the several thousand dollar system is superior and more scalable. Let alone, more cost effective. What am I talking about? If you don’t already know, the Open Source world was graced with a wonderful VoIP PBX called Asterisk some years ago now.

And, it is now what I refer to as "proven technology." I say this because not only have I successfully implemented several medium to large scale installations with little to no difficulty, but there are now thousands of businesses relying on Asterisk software and the Digium hardware that may be purchased for higher end applications (T1/E1, trunking, telco, etc).

To find out more about one of my favorite picks in the BEST OF category for any technology…Asterisk…visit http://www.digium.com. Also, the Astricon Conference is coming to Phoenix, Arizona, my home town of nearly 20 years, hosting an all Asterisk VoIP convention.

Feedback on user experience, technical and consulting questions are welcome and invited.