{"id":139,"date":"2017-03-02T03:51:26","date_gmt":"2017-03-01T20:51:26","guid":{"rendered":"https:\/\/prosindo.com\/blog\/?p=139"},"modified":"2017-03-02T03:51:26","modified_gmt":"2017-03-01T20:51:26","slug":"using-control-script-ptz-zoneminder-dcs-5020l","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2017\/03\/02\/using-control-script-ptz-zoneminder-dcs-5020l\/","title":{"rendered":"Using Control Script PTZ Zoneminder DCS-5020L"},"content":{"rendered":"<p>PTZ Controls can be used from within ZoneMinder using the control script linked below. Copy the script contents into a file alongside of the other ZM Control Scripts.<br \/>\nPATH: \/usr\/share\/perl5\/ZoneMinder\/Control<\/p>\n<p><a title=\"D-Link DCS-5020L Control Script\" href=\"https:\/\/wiki.zoneminder.com\/D-Link_DCS-5020L_Control_Script\">D-Link DCS-5020L Control Script<\/a><\/p>\n<p>PTZ Settings:<\/p>\n<pre>Main: Type: Remote, Protocol: DCS5020L, Name: DCS5020L, Can Wake, Can Sleep, Can Reset\nMove: Can Move, Can Move Diagonally, Can Move Mapped, Can Move Relative\nPan: Can Pan, Min Pan Step 1, Max Pan Step 30\nTilt: Can Tilt, Min Tilt Step 1, Max Pan Step 30\nPresets: Has Presets, Number: 24, Has Home Preset\n<\/pre>\n<p>Note: Wake turns IR on, Sleep turns IR off, Reset turns IR to auto.<\/p>\n<p>Settings for Control Tab:<\/p>\n<pre>Controllable, Control Type: DCS5020L, Control address: user:pass@ipaddress\n<\/pre>\n<p>Notes:<\/p>\n<ol>\n<li>For PTZ control, the user\/pass combination must be an administrator on the camera. A regular view-only user will not work.<\/li>\n<li>An unknown-quality H.264 stream available at <a class=\"external free\" href=\"http:\/\/user:pass@ip.of.camera\/dgh264.raw\" rel=\"nofollow\">http:\/\/user:pass@ip.of.camera\/dgh264.raw<\/a> . Haven&#8217;t worked out how to get it working in zoneminder yet.<\/li>\n<li>Audio is available from <a class=\"external free\" href=\"http:\/\/user:pass@ip.of.camera\/dgaudio.cgi\" rel=\"nofollow\">http:\/\/user:pass@ip.of.camera\/dgaudio.cgi<\/a> while the accompanying video is at <a class=\"external free\" href=\"http:\/\/user:pass@ip.of.camera\/dgvideo.cgi\" rel=\"nofollow\">http:\/\/user:pass@ip.of.camera\/dgvideo.cgi<\/a><\/li>\n<li>The DCS-5020L script was based on the Trendnet TV-IP400W control script, available at <a class=\"external free\" href=\"http:\/\/www.sfpeter.com\/2008\/07\/new-trendnet-tv-ip400w-controller-for-zoneminder-123x\/\" rel=\"nofollow\">http:\/\/www.sfpeter.com\/2008\/07\/new-trendnet-tv-ip400w-controller-for-zoneminder-123x\/<\/a> . &#8220;<tt>use ZoneMinder::Debug qw(:all);<\/tt>&#8221; was replaced with &#8220;<tt>use ZoneMinder::Logger qw(:all);<\/tt>&#8221; for zoneminder 1.25 compatibility.<\/li>\n<\/ol>\n<p>Source:<br \/>\n&#8211; https:\/\/wiki.zoneminder.com\/D-Link_DCS-5020L_Control_Script<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PTZ Controls can be used from within ZoneMinder using the control script linked below. Copy the script contents into a file alongside of the other ZM Control Scripts. PATH: \/usr\/share\/perl5\/ZoneMinder\/Control D-Link DCS-5020L Control Script PTZ Settings: Main: Type: Remote, Protocol: DCS5020L, Name: DCS5020L, Can Wake, Can Sleep, Can Reset Move: Can Move, Can Move Diagonally, &hellip; <a href=\"https:\/\/prosindo.com\/blog\/2017\/03\/02\/using-control-script-ptz-zoneminder-dcs-5020l\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Using Control Script PTZ Zoneminder DCS-5020L&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":0,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}