Page 1 of 1

Neu-Fusion NCS370(W) pan/tilt control script

Posted: Thu Jan 05, 2006 12:50 am
by unclerichy
Further to my post in the Hardware Compatibility forum -> http://www.zoneminder.com/forums/viewtopic.php?t=5451 I have now finished the script and uploaded it for your viewing pleasure (if you'll pardon the pun).

The script can be found here -> http://www.hunter13.com/zoneminder/zmcontrol-ncs370.txt

Download it. Rename it to zmcontrol-ncs370.pl and place it in the same directory as the other ZoneMinder scripts (probably /usr/local/bin). Then add your camera and set up a Control Type to point to this script. Screenshots of my configuration can be found at http://www.hunter13.com/zoneminder/ncs370w.html If there's enough interest I'll write up some proper instructions.

In it's current form the camera can be moved left/right, up/down and diagonally. The camera doesn't have native diagonal movement so I've bodged it by sending a left/right followed by an up/down command as appropriate. In addition, the Home position and the 24 preset positions can be moved to. There's no support for setting presets so you'll have to do that via the native camera control webpage or wait for me to implement it.

Posted: Thu Jan 05, 2006 1:01 am
by cordel
Thank you for your efforts. I'll add this to the next rpm release for zm-1.21.4
Regards,
Corey

Posted: Thu Jan 05, 2006 11:58 am
by zoneminder
I've also added an amended version of this to the 1.22.0 stream. Do you have a DB line that I can add into the Controls table describing it's capabilities?

Posted: Thu Jan 05, 2006 12:28 pm
by unclerichy
Yes I have.... :wink:

I'll post it after lunch.

Posted: Thu Jan 05, 2006 2:18 pm
by unclerichy
Here you go:

insert into Controls values (6,'NCS370','Remote','zmcontrol-ncs370.pl',0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,0,NULL,NULL,0,0,0,0,0
,NULL,NULL,NULL,NULL,0,NULL,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,0,NULL,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,0,NULL,NULL,0,0,0,0,0,NULL,
NULL,NULL,NULL,0,NULL,NULL,1,24,1,0,1,1,0,0,0,1,1,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,1,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,0,0
);

This is a copy of the panasonic entry from zmschema.sql with appropriate changes.

Posted: Thu Jan 05, 2006 11:47 pm
by zoneminder
Great, I've incorporated it into 1.22.0. Thanks for doing that.