tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
216 stars 76 forks source link

Remove 'http{s}://' and '/' from possible URLs when initiating the Amcrest object #25

Closed tchellomello closed 7 years ago

tchellomello commented 7 years ago

Remove 'http{s}://' and '/' from possible URLs when initiating the Amcrest object.

#from
cam = AmcrestCamera('http://192.168.1.10/', 80, 'admin', 'secret')
#to
cam = AmcrestCamera(' 192.168.1.10', 80, 'admin', 'secret')