diff --git a/73_NUKIBridge.pm b/73_NUKIBridge.pm index 83bb12b..361a6fe 100644 --- a/73_NUKIBridge.pm +++ b/73_NUKIBridge.pm @@ -46,7 +46,7 @@ use JSON; use HttpUtils; -my $version = "0.3.41"; +my $version = "0.4.0"; @@ -552,7 +552,22 @@ sub NUKIBridge_getLogfile($) { foreach my $logs (@{$decode_json}) { $ret .= ''; + if($logs->{timestamp}) { + $ret .= "timestamp: "; + $ret .= "$logs->{timestamp}"; + $ret .= ' '; + } + + if($logs->{type}) { + $ret .= "type: "; + $ret .= "$logs->{type}"; + $ret .= ' '; + } + foreach my $d (reverse sort keys %{$logs}) { + next if( $d eq "type" ); + next if( $d eq "timestamp" ); + $ret .= "$d: "; $ret .= "$logs->{$d}"; $ret .= ' '; diff --git a/74_NUKIDevice.pm b/74_NUKIDevice.pm index adf8a80..7708dd6 100644 --- a/74_NUKIDevice.pm +++ b/74_NUKIDevice.pm @@ -33,7 +33,7 @@ use warnings; use JSON; #use Time::HiRes qw(gettimeofday); -my $version = "0.3.41"; +my $version = "0.4.0";