mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
49_SSCam: contrib 8.6.1
git-svn-id: https://svn.fhem.de/fhem/trunk@18356 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ae8f1ea145
commit
f0b93e0ac8
@ -47,7 +47,7 @@ use Encode;
|
|||||||
|
|
||||||
# Versions History intern
|
# Versions History intern
|
||||||
our %SSCam_vNotesIntern = (
|
our %SSCam_vNotesIntern = (
|
||||||
"8.6.1" => "20.01.2019 time format in readings and galleries depends from global language attribute ",
|
"8.6.1" => "20.01.2019 time format in readings and galleries depends from global language attribute, minor bug fixes ",
|
||||||
"8.6.0" => "20.01.2019 new attribute snapReadingRotate ",
|
"8.6.0" => "20.01.2019 new attribute snapReadingRotate ",
|
||||||
"8.5.0" => "17.01.2019 SVS device has \"snapCams\" command ",
|
"8.5.0" => "17.01.2019 SVS device has \"snapCams\" command ",
|
||||||
"8.4.5" => "15.01.2019 fix event generation after request snapshots ",
|
"8.4.5" => "15.01.2019 fix event generation after request snapshots ",
|
||||||
@ -4797,10 +4797,18 @@ sub SSCam_camop_parse ($) {
|
|||||||
|
|
||||||
} elsif ($OpMode eq "gethomemodestate") {
|
} elsif ($OpMode eq "gethomemodestate") {
|
||||||
my $hmst = $data->{'data'}{'on'};
|
my $hmst = $data->{'data'}{'on'};
|
||||||
my $hmststr = ($hmst == 1)?"on":"off";
|
my $hmststr = ($hmst == 1)?"on":"off";
|
||||||
|
|
||||||
|
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
|
||||||
|
if($lang eq "DE") {
|
||||||
|
$update_time = sprintf "%02d.%02d.%04d / %02d:%02d:%02d" , $mday , $mon+=1 ,$year+=1900 , $hour , $min , $sec ;
|
||||||
|
} else {
|
||||||
|
$update_time = sprintf "%04d-%02d-%02d / %02d:%02d:%02d" , $year+=1900 , $mon+=1 , $mday , $hour , $min , $sec ;
|
||||||
|
}
|
||||||
|
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
readingsBulkUpdate($hash,"HomeModeState",$hmststr);
|
readingsBulkUpdate($hash,"HomeModeState",$hmststr);
|
||||||
|
readingsBulkUpdate($hash,"LastUpdateTime",$update_time);
|
||||||
readingsBulkUpdate($hash,"Errorcode","none");
|
readingsBulkUpdate($hash,"Errorcode","none");
|
||||||
readingsBulkUpdate($hash,"Error","none");
|
readingsBulkUpdate($hash,"Error","none");
|
||||||
readingsEndUpdate($hash, 1);
|
readingsEndUpdate($hash, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user