mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
49_SSCam: Reading "CamExposureControl" added
git-svn-id: https://svn.fhem.de/fhem/trunk@10868 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bbeb778e31
commit
4022a5b4ca
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature 49_SSCAM: Reading "CamExposureControl" added
|
||||||
- feature 49_SSCAM: set up of motion detection source now possible
|
- feature 49_SSCAM: set up of motion detection source now possible
|
||||||
- feature 55_GDS: disable conditions after 15.03.2016
|
- feature 55_GDS: disable conditions after 15.03.2016
|
||||||
- feature 74_HOMBOT: formated Value for Reading lastClean
|
- feature 74_HOMBOT: formated Value for Reading lastClean
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
##########################################################################################################
|
##########################################################################################################
|
||||||
# $Id$
|
# $Id$
|
||||||
##########################################################################################################
|
##########################################################################################################
|
||||||
# 49_SSCam.pm
|
# 49_SSCam.pm
|
||||||
@ -27,6 +27,7 @@
|
|||||||
##########################################################################################################
|
##########################################################################################################
|
||||||
# Versions History:
|
# Versions History:
|
||||||
#
|
#
|
||||||
|
# 1.16.1 17.02.2016 Reading "CamExposureControl" added
|
||||||
# 1.16 16.02.2016 set up of motion detection source now possible
|
# 1.16 16.02.2016 set up of motion detection source now possible
|
||||||
# 1.15 15.02.2016 control of exposure mode day, night & auto is possible now
|
# 1.15 15.02.2016 control of exposure mode day, night & auto is possible now
|
||||||
# 1.14 14.02.2016 The port in DEF-String is optional now,
|
# 1.14 14.02.2016 The port in DEF-String is optional now,
|
||||||
@ -2146,7 +2147,7 @@ sub camret_nonbl ($) {
|
|||||||
my $camStatus;
|
my $camStatus;
|
||||||
my ($presetcnt,$cnt,$presid,$presname,@preskeys,$presetlist);
|
my ($presetcnt,$cnt,$presid,$presname,@preskeys,$presetlist);
|
||||||
my ($patrolcnt,$patrolid,$patrolname,@patrolkeys,$patrollist);
|
my ($patrolcnt,$patrolid,$patrolname,@patrolkeys,$patrollist);
|
||||||
my ($recStatus,$exposuremode);
|
my ($recStatus,$exposuremode,$exposurecontrol);
|
||||||
my $userPriv;
|
my $userPriv;
|
||||||
my $verbose;
|
my $verbose;
|
||||||
my $httptimeout;
|
my $httptimeout;
|
||||||
@ -2563,10 +2564,34 @@ sub camret_nonbl ($) {
|
|||||||
$exposuremode = "Unknown";
|
$exposuremode = "Unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$exposurecontrol = $data->{'data'}->{'cameras'}->[0]->{'exposure_control'};
|
||||||
|
if ($exposurecontrol == 0) {
|
||||||
|
$exposurecontrol = "Auto";
|
||||||
|
}
|
||||||
|
elsif ($exposurecontrol == 1) {
|
||||||
|
$exposurecontrol = "50HZ";
|
||||||
|
}
|
||||||
|
elsif ($exposurecontrol == 2) {
|
||||||
|
$exposurecontrol = "60HZ";
|
||||||
|
}
|
||||||
|
elsif ($exposurecontrol == 3) {
|
||||||
|
$exposurecontrol = "Hold";
|
||||||
|
}
|
||||||
|
elsif ($exposurecontrol == 4) {
|
||||||
|
$exposurecontrol = "Outdoor";
|
||||||
|
}
|
||||||
|
elsif ($exposurecontrol == 5) {
|
||||||
|
$exposurecontrol = "None";
|
||||||
|
}
|
||||||
|
elsif ($exposurecontrol == 6) {
|
||||||
|
$exposurecontrol = "Unknown";
|
||||||
|
}
|
||||||
|
|
||||||
# Setreading
|
# Setreading
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
readingsBulkUpdate($hash,"CamLiveMode",$camLiveMode);
|
readingsBulkUpdate($hash,"CamLiveMode",$camLiveMode);
|
||||||
readingsBulkUpdate($hash,"CamExposureMode",$exposuremode);
|
readingsBulkUpdate($hash,"CamExposureMode",$exposuremode);
|
||||||
|
readingsBulkUpdate($hash,"CamExposureControl",$exposurecontrol);
|
||||||
readingsBulkUpdate($hash,"CamModel",$data->{'data'}->{'cameras'}->[0]->{'detailInfo'}{'camModel'});
|
readingsBulkUpdate($hash,"CamModel",$data->{'data'}->{'cameras'}->[0]->{'detailInfo'}{'camModel'});
|
||||||
readingsBulkUpdate($hash,"CamRecShare",$data->{'data'}->{'cameras'}->[0]->{'camRecShare'});
|
readingsBulkUpdate($hash,"CamRecShare",$data->{'data'}->{'cameras'}->[0]->{'camRecShare'});
|
||||||
readingsBulkUpdate($hash,"CamRecVolume",$data->{'data'}->{'cameras'}->[0]->{'camRecVolume'});
|
readingsBulkUpdate($hash,"CamRecVolume",$data->{'data'}->{'cameras'}->[0]->{'camRecVolume'});
|
||||||
@ -3343,6 +3368,8 @@ return;
|
|||||||
<b> "set <name> motdetsc [by_camera] [by_SVS] [disable]" </b> <br><br>
|
<b> "set <name> motdetsc [by_camera] [by_SVS] [disable]" </b> <br><br>
|
||||||
|
|
||||||
The command "motdetsc" (stands for "motion detection source") switchover the motion detection to the desired mode.
|
The command "motdetsc" (stands for "motion detection source") switchover the motion detection to the desired mode.
|
||||||
|
If motion detection will be tuned by camera, the original camera settings are kept.
|
||||||
|
Wird die Bewegungserkennung durch die Kamera eingestellt, werden die originalen Kameraeinstellungen beibehalten.
|
||||||
The successful execution of that opreration you can retrace by the state in SVS -> IP-camera -> event detection -> motion.
|
The successful execution of that opreration you can retrace by the state in SVS -> IP-camera -> event detection -> motion.
|
||||||
An appropriate reading shall follow at later point in time.
|
An appropriate reading shall follow at later point in time.
|
||||||
|
|
||||||
@ -3526,6 +3553,7 @@ return;
|
|||||||
<table>
|
<table>
|
||||||
<colgroup> <col width=5%> <col width=95%> </colgroup>
|
<colgroup> <col width=5%> <col width=95%> </colgroup>
|
||||||
<tr><td><li>Availability</li> </td><td>- Availability of Camera (disabled, enabled, disconnected, other) </td></tr>
|
<tr><td><li>Availability</li> </td><td>- Availability of Camera (disabled, enabled, disconnected, other) </td></tr>
|
||||||
|
<tr><td><li>CamExposureControl</li> </td><td>- indicating type of exposure control </td></tr>
|
||||||
<tr><td><li>CamExposureMode</li> </td><td>- current exposure mode (Day, Night, Auto, Schedule, Unknown) </td></tr>
|
<tr><td><li>CamExposureMode</li> </td><td>- current exposure mode (Day, Night, Auto, Schedule, Unknown) </td></tr>
|
||||||
<tr><td><li>CamIP</li> </td><td>- IP-Address of Camera </td></tr>
|
<tr><td><li>CamIP</li> </td><td>- IP-Address of Camera </td></tr>
|
||||||
<tr><td><li>CamLiveMode</li> </td><td>- Source of Live-View (DS, Camera) </td></tr>
|
<tr><td><li>CamLiveMode</li> </td><td>- Source of Live-View (DS, Camera) </td></tr>
|
||||||
@ -3860,6 +3888,7 @@ return;
|
|||||||
<b> "set <name> motdetsc [by_camera] [by_SVS] [disable]" </b> <br><br>
|
<b> "set <name> motdetsc [by_camera] [by_SVS] [disable]" </b> <br><br>
|
||||||
|
|
||||||
Der Befehl "motdetsc" (steht für motion detection source) schaltet die Bewegungserkennung in den gewünschten Modus.
|
Der Befehl "motdetsc" (steht für motion detection source) schaltet die Bewegungserkennung in den gewünschten Modus.
|
||||||
|
Wird die Bewegungserkennung durch die Kamera eingestellt, werden die originalen Kameraeinstellungen beibehalten.
|
||||||
Die erfolgreiche Ausführung der Operation lässt sich u.a anhand des Status von SVS -> IP-Kamera -> Ereigniserkennung -> Bewegung nachvollziehen.
|
Die erfolgreiche Ausführung der Operation lässt sich u.a anhand des Status von SVS -> IP-Kamera -> Ereigniserkennung -> Bewegung nachvollziehen.
|
||||||
Zu einem späteren Zeitpunkt soll noch ein entsprechendes Reading folgen.
|
Zu einem späteren Zeitpunkt soll noch ein entsprechendes Reading folgen.
|
||||||
|
|
||||||
@ -4043,6 +4072,7 @@ return;
|
|||||||
<table>
|
<table>
|
||||||
<colgroup> <col width=5%> <col width=95%> </colgroup>
|
<colgroup> <col width=5%> <col width=95%> </colgroup>
|
||||||
<tr><td><li>Availability</li> </td><td>- Verfügbarkeit der Kamera (disabled, enabled, disconnected, other) </td></tr>
|
<tr><td><li>Availability</li> </td><td>- Verfügbarkeit der Kamera (disabled, enabled, disconnected, other) </td></tr>
|
||||||
|
<tr><td><li>CamExposureControl</li> </td><td>- zeigt den aktuell eingestellten Typ der Belichtungssteuerung </td></tr>
|
||||||
<tr><td><li>CamExposureMode</li> </td><td>- aktueller Belichtungsmodus (Day, Night, Auto, Schedule, Unknown) </td></tr>
|
<tr><td><li>CamExposureMode</li> </td><td>- aktueller Belichtungsmodus (Day, Night, Auto, Schedule, Unknown) </td></tr>
|
||||||
<tr><td><li>CamIP</li> </td><td>- IP-Adresse der Kamera </td></tr>
|
<tr><td><li>CamIP</li> </td><td>- IP-Adresse der Kamera </td></tr>
|
||||||
<tr><td><li>CamLiveMode</li> </td><td>- Quelle für Live-Ansicht (DS, Camera) </td></tr>
|
<tr><td><li>CamLiveMode</li> </td><td>- Quelle für Live-Ansicht (DS, Camera) </td></tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user