mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
74_HOMBOT: formated Value for Reading lastClean
git-svn-id: https://svn.fhem.de/fhem/trunk@10861 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1dfadcd4aa
commit
784ab05e94
@ -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 74_HOMBOT: formated Value for Reading lastClean
|
||||||
- feature 74_HOMBOT: include Detail_Fn link to Luigi Contro Center
|
- feature 74_HOMBOT: include Detail_Fn link to Luigi Contro Center
|
||||||
- feature 49_SSCAM: control of exposure mode day, night & auto is
|
- feature 49_SSCAM: control of exposure mode day, night & auto is
|
||||||
possible now
|
possible now
|
||||||
|
@ -35,7 +35,7 @@ use Time::HiRes qw(gettimeofday);
|
|||||||
use HttpUtils;
|
use HttpUtils;
|
||||||
use Blocking;
|
use Blocking;
|
||||||
|
|
||||||
my $version = "0.2.2";
|
my $version = "0.2.3";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -457,11 +457,18 @@ sub HOMBOT_RetrieveHomebotInfoFinished($$$) {
|
|||||||
$t =~ s/JSON_TURBO/turbo/g;
|
$t =~ s/JSON_TURBO/turbo/g;
|
||||||
$t =~ s/JSON_ROBOT_STATE/hombotState/g;
|
$t =~ s/JSON_ROBOT_STATE/hombotState/g;
|
||||||
$t =~ s/CLREC_CURRENTBUMPING/currentBumping/g;
|
$t =~ s/CLREC_CURRENTBUMPING/currentBumping/g;
|
||||||
$t =~ s/CLREC_LAST_CLEAN/lastClean/g;
|
|
||||||
|
if( $t eq "CLREC_LAST_CLEAN" ) {
|
||||||
|
my @lctime = split( '/' , $v );
|
||||||
|
$v = $lctime[2].".".$lctime[1].".".$lctime[0]." ".$lctime[3].":".$lctime[4];
|
||||||
|
$t = "lastClean";
|
||||||
|
}
|
||||||
|
|
||||||
$t =~ s/JSON_BATTPERC/batteryPercent/g;
|
$t =~ s/JSON_BATTPERC/batteryPercent/g;
|
||||||
$t =~ s/JSON_VERSION/firmware/g;
|
$t =~ s/JSON_VERSION/firmware/g;
|
||||||
$t =~ s/LGSRV_VERSION/luigiSrvVersion/g;
|
$t =~ s/LGSRV_VERSION/luigiSrvVersion/g;
|
||||||
|
|
||||||
|
|
||||||
readingsBulkUpdate( $hash, $t, $v ) if( $t =~ m/[a-z]/s && defined( $t ) && defined( $v ) );
|
readingsBulkUpdate( $hash, $t, $v ) if( $t =~ m/[a-z]/s && defined( $t ) && defined( $v ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user