Main - Will Cooke

  • SecureWebcamFeeds - A document describing how to set up Apache on Debian with SSL and BasicAuth

I'm also starting work on a set of Python CGI scripts to work as a user-friendly wrapper to the RPC functions and an overview of what motion has been captured. Here's some notes from the start of the script....

#!c:/python22/python.exe
# This one for linux -> !/usr/bin/python
#
######################################################################
#  v.   0   -   12-10-04    -   W Cooke -   The begining
#
# Please feel free to alter the script however you want, but please
# keep the Wiki up to date with any fixes or new features
# http://www.whatever.com
#
# Also, please try and comment everything you do so that other people
# can benefit.  You could say this was REMware. You can always take
# the comments out when you run it on your system.
######################################################################


###
# The Plan:  The idea is that motion activity gets stored somewhere, probably a mysql
# database, then when this script is run it generates a list of calendars with the current
# month somewhere in the middle.  The days that have motion will be a clickable link which will
# then load in to the middle of the page either a week view or a day by day view with a little
# preview image from the middle of the movie, which is then clickable to load the movie.
# We'll store the info in MySQL:
#                               Unique ID
#                               Time
#                               Date
#                               Anything else we can get out of motion
# Come to think of it, motion already uses MySQL, so we'll have a look at that as well.
# Admin functions to include an automatic cull of files over a certain date
#
# What I need is a function to generate the calendar, I feed in the month and year and get
# back a HTML calendar with a clicky date if there are any detections for that date. Perhaps
# the colour of the link will change colour depending on how many detections there are on that
# date.  Hmm, thinking about that it might take ages and ages to draw those, so perhaps the
# pages should be built to a shedule.  Actually, once a month-view has been drawn once and that
# month has passed, it will never need to be re-drawn again!  Perhaps take the granularity down
# to a week view, then every week store that page.
#
# I suppose I'm going to have to learn how to make functions and stuff now then.
# Off I go to http://www.diveintopython.org  you can download a free book from there.  It's good!
#
# Yadda yadda yadda.


# The calendar module handles all the date stuff. It know's about days of the week 'n stuff
# The cgitb is for trouble shooting scripts that are running as CGI
# The os is for getting values passed to this script from the browser.  It works the same as from
# the command line, $1 etc.

Personal Preferences

  • Show tool-tip topic info on mouse-over of WikiWord links, on or off: (see details in DefaultPreferences)
    • Set LINKTOOLTIPINFO = off
  • Horizontal size of text edit box:
    • Set EDITBOXWIDTH = 70
  • Vertical size of text edit box:
    • Set EDITBOXHEIGHT = 22
  • Style of text edit box. width: 99% for full window width (default), width: auto to disable.
    • Set EDITBOXSTYLE = width: 99%
  • Optionally write protect your home page: (set it to your WikiName)
    • Set ALLOWTOPICCHANGE =

Topic revision: r2 - 13 Oct 2004, WillCooke
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.