mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
49_SSCam: fix autocreate bug with https
git-svn-id: https://svn.fhem.de/fhem/trunk@21684 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
621e04a500
commit
51d017bb75
@ -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.
|
||||||
|
- bugfix: 49_SSCam: fix autocreate bug with https
|
||||||
- change: 37_echodevice.pm more loginformations set "NPM_login new"
|
- change: 37_echodevice.pm more loginformations set "NPM_login new"
|
||||||
- bugfix: 88_HMCCU: corrected var command
|
- bugfix: 88_HMCCU: corrected var command
|
||||||
- bugfix: 73_AutoShuttersControl: fix roommate absent
|
- bugfix: 73_AutoShuttersControl: fix roommate absent
|
||||||
|
@ -54,6 +54,7 @@ eval "use Cache::Cache;1;" or my $SScamMMCacheCache = "Cache::Cache";
|
|||||||
|
|
||||||
# Versions History intern
|
# Versions History intern
|
||||||
our %SSCam_vNotesIntern = (
|
our %SSCam_vNotesIntern = (
|
||||||
|
"9.2.2" => "14.04.2020 increase read timeout of Redis server cache, fix autocreate bug with https ",
|
||||||
"9.2.1" => "24.02.2020 set compatibility to SVS version 8.2.7 ",
|
"9.2.1" => "24.02.2020 set compatibility to SVS version 8.2.7 ",
|
||||||
"9.2.0" => "10.12.2019 attribute \"recChatTxt\" for sending recordings by SSChatBot ",
|
"9.2.0" => "10.12.2019 attribute \"recChatTxt\" for sending recordings by SSChatBot ",
|
||||||
"9.1.0" => "08.12.2019 attribute \"snapChatTxt\" for sending snapshots by SSChatBot ",
|
"9.1.0" => "08.12.2019 attribute \"snapChatTxt\" for sending snapshots by SSChatBot ",
|
||||||
@ -5888,7 +5889,6 @@ sub SSCam_camop_parse ($) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for my $kn ($ss..($sgn-1)) {
|
for my $kn ($ss..($sgn-1)) {
|
||||||
# next if $kn >= $hash->{HELPER}{SNAPLIMIT};
|
|
||||||
$g = SSCam_cache($name, "c_read", "{SNAPOLDHASH}{$sn}{snapid}");
|
$g = SSCam_cache($name, "c_read", "{SNAPOLDHASH}{$sn}{snapid}");
|
||||||
SSCam_cache($name, "c_write", "{SNAPHASH}{$kn}{snapid}", $g) if(defined $g);
|
SSCam_cache($name, "c_write", "{SNAPHASH}{$kn}{snapid}", $g) if(defined $g);
|
||||||
SSCam_cache($name, "c_remove", "{SNAPOLDHASH}{$sn}{snapid}");
|
SSCam_cache($name, "c_remove", "{SNAPOLDHASH}{$sn}{snapid}");
|
||||||
@ -6963,7 +6963,7 @@ sub SSCam_Autocreate ($$) {
|
|||||||
|
|
||||||
if(!$camhash) {
|
if(!$camhash) {
|
||||||
$camname = "SSCam.".makeDeviceName($sn); # erlaubten Kameranamen für FHEM erzeugen
|
$camname = "SSCam.".makeDeviceName($sn); # erlaubten Kameranamen für FHEM erzeugen
|
||||||
my $arg = $hash->{SERVERADDR}." ".$hash->{SERVERPORT};
|
my $arg = $hash->{SERVERADDR}." ".$hash->{SERVERPORT}." ".$hash->{PROTOCOL};
|
||||||
$cmd = "$camname $type $sn $arg";
|
$cmd = "$camname $type $sn $arg";
|
||||||
Log3($name, 2, "$name - Autocreate camera: define $cmd");
|
Log3($name, 2, "$name - Autocreate camera: define $cmd");
|
||||||
$err = CommandDefine(undef, $cmd);
|
$err = CommandDefine(undef, $cmd);
|
||||||
@ -10149,8 +10149,8 @@ sub SSCam_cache ($$;$$) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
my $cto = 0.5;
|
my $cto = 0.5;
|
||||||
my $rto = 0.5;
|
my $rto = 2.0;
|
||||||
my $wto = 0.5;
|
my $wto = 1.0;
|
||||||
my %Redispars = ( cnx_timeout => $cto,
|
my %Redispars = ( cnx_timeout => $cto,
|
||||||
read_timeout => $rto,
|
read_timeout => $rto,
|
||||||
write_timeout => $wto
|
write_timeout => $wto
|
||||||
@ -10176,6 +10176,7 @@ sub SSCam_cache ($$;$$) {
|
|||||||
$cache = CHI->new( driver => 'Redis',
|
$cache = CHI->new( driver => 'Redis',
|
||||||
namespace => $fuuid,
|
namespace => $fuuid,
|
||||||
server => "$server:$port",
|
server => "$server:$port",
|
||||||
|
reconnect => 1,
|
||||||
on_set_error => 'warn',
|
on_set_error => 'warn',
|
||||||
on_get_error => 'warn',
|
on_get_error => 'warn',
|
||||||
redis_options => \%Redispars,
|
redis_options => \%Redispars,
|
||||||
@ -10279,8 +10280,12 @@ sub SSCam_cache ($$;$$) {
|
|||||||
my $g = $cache->get($key);
|
my $g = $cache->get($key);
|
||||||
$brt = tv_interval($bst);
|
$brt = tv_interval($bst);
|
||||||
Log3($name, 1, "$name - Cache time read key \"$key\": ".$brt) if(AttrVal($name,"debugCachetime",0));
|
Log3($name, 1, "$name - Cache time read key \"$key\": ".$brt) if(AttrVal($name,"debugCachetime",0));
|
||||||
|
if(!$g) {
|
||||||
|
return "";
|
||||||
|
} else {
|
||||||
return $g;
|
return $g;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# einen Key entfernen
|
# einen Key entfernen
|
||||||
if($op eq "c_remove") {
|
if($op eq "c_remove") {
|
||||||
|
Loading…
Reference in New Issue
Block a user