Wrote a little script to archive the Fwink webcam images here at the Columbus, NM library. It plus Python's built-in web server make for a simple solution under the constraints in place here with regard to platforms and operating systems. I'm running it under Cygwin. I had to run the following two commands while ssh'd into the server to get the two scripts to run from the Startup folder:
$ cmd Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
C:\cygwin\home\server>assoc .py=PythonFile assoc .py=PythonFile .py=PythonFile
C:\cygwin\home\server>ftype PythonFile=\cygwin\bin\python2.4.exe "%1" ftype PythonFile=\cygwin\bin\python2.4.exe "%1" PythonFile=\cygwin\bin\python2.4.exe "%1"
reboot now after exiting back into the Bash prompt
completed the test... a few minutes later the damned thing was back online
with the camera clicking away, the archiver archiving, and the server on port
8000 making the images available. It's not even remotely secure, but it's
firewalled pretty well from the outside world.
Back to blog or home page
last updated 2013-01-10 20:41:00. served from tektonic