Motion - Small Motion Web
You are here: Foswiki>Motion Web>RelatedProjects>SmallMotionWeb (18 Jun 2011, JimAvery)Edit Attach

SmallMotionWeb - lightweight image browser

Introduction

Primarily developed so could be easy to use on a mobile device.

smotion.PNG

Download

smotion.cgi

Detailed Description

Supports multiple feeds, days and images along with automatic play/reverse modes

Installation

Requirements: Perl & cgi bin

Assumes following output structure (should work with multiple feed directories - though hides this if only 1)

  /etc/motion/thread0.conf 
     jpeg_filename feed1/%Y%m%d/%H%M%S-%q 
     snapshot_filename feed1/%Y%m%d/%H%M%S-snapshot 
     ffmpeg_filename %v-%Y%m%d%H%M%S 
     timelapse_filename feed1/%Y%m%d/timelapse 

Edit CGI script and change following parameters appropriately:

  $imageroot = "/var/www/webcam"; # dir where motion outputs files 
  $webroot = "/webcam"; # virtual url to imageroot 

Usage

The following icons in the UI are shown (hover over in UI for description).

 
about info
goto previous day 
date  current date shown 
>   goto next date 
reverse playback mode 
|<
goto first image 
goto previous image 
xx/yy  currentframe/totalframes 
goto next frame 
>|
goto last frame
P forward playback mode

Comments and Bug Reports


I am getting permission problems when I try to install and run this.

I have tested m Apache set-up on a simple perl and cgi script and they both seem to work. However when I try and run the smotion.cgi script I get a internal server misconfiguration error and the logs show :

[Fri Mar 27 10:25:28 2009] [error] [client 192.168.1.1] (2)No such file or directory: exec of '/home/server/private_html/cgi-bin/smotion.cgi' failed [Fri Mar 27 10:25:28 2009] [error] [client 192.168.1.1] Premature end of script headers: smotion.cgi

Any ideas what is wrong, the file smotion.cgi does exist...

-- RupertPlumridge - 27 Mar 2009

I found that on download the smotion.cgi file had DOS format end-of-line characters. I converted the file to unix format using the dos2unix utility.

Having done that, installation went very smoothly indeed thanks. I'm using Mandriva Linux. This utility will be great for just what it's designed for - accessing the web cam images from a mobile 'phone while out and about.

-- JimAvery - 18 Jun 2011

RelatedProjectsForm edit

ProjectSummary Lightweight image web browser in perl cgi for use by mobile phones
ProjectStatus Stable
ReleaseVersion 1.0
ProjectSubmitter RogerFoskett
Topic revision: r4 - 18 Jun 2011, JimAvery
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.