Ant Farm Redux

Ok, so I've tweaked my program. It now has an extensible interface, statistics reporting, and will compress older folders in the archive with lzma (which I have come to love over the last week or so.) I'm kind of proud of this script, even though it is still very inelegant and hackish. It depends on ssh, scp, and fswebcam being installed.

Also, you'll need to edit the static variables in the ImageUpload class to include a place to ssh into. (Without a password.)

After all that, the usage is pretty simple:

./antwatcher.py VIDEO_DEVICE OUTPUT_DIRECTORY

Which in my case was:

./antwatcher.py /dev/video1 ./out

Source is here: http://www.poweredbytoast.com/files/antwatcher.py.txt

I still want to do some more stability checking on this program... I don't want the whole thing to give out 1 month in. Also, I'm hoping to get my hands on a better webcam. I got this thing for, like, 10 bucks off ebay 4 years ago, and it's age is showing: the video feed is low-res, blurry, and seems to cut out at random times, requiring me to unplug/plug the camera back in from time-to-time.

... oh, and I also need ants. ;)

EDIT: Oh, and happy new year DECADE! :)


0 Responses to Ant Farm Redux

  1. There are currently no comments.

Leave a Reply



About

User