Motion - Motion Control
You are here: Foswiki>Motion Web>MotionControl (11 Aug 2005, EmilB)Edit Attach

MotionControl

Description

It is very similar to the motion-control program that used the old XmlRpcApi. The difference is that it uses the new MotionHttpAPI.

The reason I made it was because I just needed something easy to use with Lirc. So here it is.

Comments/improvements/etc are welcome.

Attached Files

Latest release: Version 0.2

Older versions:

Installation

Before running the program, you just need to have Python installed.

After/if you have Python installed, you just download the file, edit it where it says "CHANGE ME" with the apropriate variables (see below), and run it.

The only variables which you usually need to change are:

url = "localhost:8080"          # CHANGE ME - motion host and port (see control_*)
threadnr = "0"                  # CHANGE ME - thread number to control (0 - for people with just one camera)
user = ""                       # CHANGE ME - username for basic auth
passwd = ""                     # CHANGE ME - password for basic auth
passwdmode = 0                  # CHANGE ME - 0 = disable, 1 = enable (set it to 1 if you enabled "control_authentication" in motion.conf)

Note: If you set
passwdmode = 0
and motion requires authentication, it will ask in stdin for a password and freeze.

Change Log

  • 0.1 -- initial release, mostly everything should work.
  • 0.2 -- added authentication support.

To Do

No more ideas yet.

-- EmilB - 11 Aug 2005

Comments and Bug Reports


Good initiative.

It will be easier for people to know when you make updates if you give the file a version number and put a brief change history in this topic.

-- KennethLavrsen - 10 Aug 2005
Topic revision: r6 - 11 Aug 2005, EmilB
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.