Skip to content

python module for controlling the dcs5020l PTZ camera

License

Notifications You must be signed in to change notification settings

glebite/dcs5020l

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

dcs5020l

Python module for controlling the dcs5020l PTZ camera

Introduction

I had this DCS5020L PTZ camera laying about and I was annoyed by the web interface. So I started looking into how to automate it via HTTP requests in python.

Finding endpoints

I went from various sites such as: Dlink forums for solutions but was stumped when trying to find out camera positions and other controls for the IR emitters.

binwalk is your friend.

I went to DLINK's site, downloaded the firmware upgrade image and ran binwalk over it. Sure enough, I exposed some additional endpoints that I could reach but it wasn't until I ran strings on the alphapd binary that exposed even more.

Found endpoints (that are used now)

  • POST url+/pantiltcontrol.cgi
  • GET url+/image.jpg
  • GET url+/config/ptz_pos.cgi
  • POST url+/nightmodecontrol.cgi

Methods

  • connect
  • disconnect
  • down
  • up
  • left
  • right
  • home
  • getImage
  • getPosition
  • daynight

About

python module for controlling the dcs5020l PTZ camera

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages