-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from tchellomello/version_1_2_2
Version 1.2.2
- Loading branch information
Showing
16 changed files
with
112 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Example of configuration for Home Assitant (https://home-assistant.io) | ||
|
||
More info: | ||
https://home-assistant.io/components/amcrest/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Example of configuration for Home Assistant | ||
# ~/.homeassistant/configuration.yaml | ||
amcrest: | ||
- host: 192.168.1.5 | ||
name: LivingRoom | ||
username: admin | ||
password: super-password | ||
|
||
- host: 192.168.1.6 | ||
name: Garage | ||
username: admin | ||
password: super-password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# vim:sw=4:ts=4:et | ||
import time | ||
from amcrest import AmcrestCamera | ||
|
||
amcrest = AmcrestCamera('192.168.1.5', 80, 'admin', 'super-password') | ||
|
||
amcrest.camera.zoom_in("start") | ||
time.sleep(0.5) | ||
amcrest.camera.zoom_in("stop") | ||
|
||
# Snapshot | ||
amcrest.camera.snapshot(path_file="/tmp/snapshot.jpg") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# vim:sw=4:ts=4:et | ||
import time | ||
from amcrest import AmcrestCamera | ||
|
||
amcrest = AmcrestCamera('192.168.1.6', 80, 'admin', 'super-password') | ||
|
||
amcrest.camera.zoom_out("start") | ||
time.sleep(0.5) | ||
amcrest.camera.zoom_out("stop") | ||
|
||
# Snapshot | ||
amcrest.camera.snapshot(path_file="/tmp/snapshot.jpg") |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,7 @@ pycrest_PYTHON = \ | |
log.py \ | ||
ptz.py \ | ||
special.py \ | ||
utils.py \ | ||
nas.py \ | ||
storage.py \ | ||
$(NULL) |
Oops, something went wrong.