AbelCam Forum
Download AbelCam buy Pro
 
 
 
Welcome Anonymous User
11/22/2024 - 05:09 PM
Quick Search:
Quick Jump:
 
Announcements
Latest Topics
 
Commands List
By: MikeDs
Rank: Frequent User
Topics: 37
From: n/a
Added: 10/30/2009 - 06:02 AM

There are various ways of sending commands to the camera that aren't documented very well. I guess one could reverse engineer everything to figure them out but is there a list somewhere that shows all the possible ways of coding commands into PHP or HTML or Javascript files.

For instance, one can home a camera by a URL like:

http://MyDomain.com:8080/home0-0
or
Move left with: http://MyDomain.com:8080/left0-1

1 meaning 5 positions, 2=10 etc

This is just for HTML but is there a list of all such command capabilities, including Javascript and/or PHP, as well as HTML?
By: MelvinG
Rank: Magna Cum Laude
Topics: 661
From: Los Angeles, USA
Added: 10/30/2009 - 12:53 PM

"This is just for HTML but is there a list of all such command capabilities, including Javascript and/or PHP, as well as HTML?"

It doesn't matter what language(s) are on the page and/or involved in generating the page. The end result must always be an HTTP request for a "special" URL like the ones you mention above.

All the special URLs are documented somewhere but right this second I can't find them. Off the top of my head:

In all of the following, "C" represents the camera number of the cam you want to affect. As you've already discovered, the first (only?) cam is 0 not 1.

Incremental moves of PT:
X and Y are "step sizes" - experiment with values for your cam.

homeC-0
leftC-X
rightC-X
upC-Y
downC-Y

Incremental Zoom:
Z is the zoom increment, usually a small number like 0.1 or 0.2

zoomC-Z {zooms in}
zoomC--Z {zooms out}

Absolute positioning:
X and Y are absolute locations on a -100 to 100 coordinate system.

posC-X,Y {where X and Y are both positive)
posC--X,-Y {where X and Y are both negative)
posC--X,Y {where X is negative and Y positive)
posC-X,-Y {where X is positive and Y negative)

You can also do absolute zoom in conjunction with the pos command by adding zoom value (1.0 to Zoom Max) to any of the above. Like this:

posC-X,Y,Z

For example, pos0-50,25,1.5

Or just go to my site and "steal" my page source - it uses most of the above techniques. My site is "Control Stuff" on the Camera List here on this site.
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 10/30/2009 - 07:57 PM

Melvin, as always you're concise. There's a small correction though:
Incremental Zoom:
Z is the zoom increment, usually a small number like 0.1 or 0.2

zoomC-Z {zooms in}
zoomC--Z {zooms out}

zoom values must have a sign to be relative.

zoomC-Z {zooms to value Z (absolute)}
zoomC-+Z {zooms in (relative)}

Added a Zoom section in the Pan/Tilt Wiki page.