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

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
unclerichy
Posts: 74
Joined: Wed Feb 25, 2004 5:06 pm

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

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Thank you for your efforts. I'll add this to the next rpm release for zm-1.21.4
Regards,
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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?
Phil
unclerichy
Posts: 74
Joined: Wed Feb 25, 2004 5:06 pm

Post by unclerichy »

Yes I have.... :wink:

I'll post it after lunch.
unclerichy
Posts: 74
Joined: Wed Feb 25, 2004 5:06 pm

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Great, I've incorporated it into 1.22.0. Thanks for doing that.
Phil
Post Reply