From 789befdf4d7fe6c66fe89ed8786496cbee927bf0 Mon Sep 17 00:00:00 2001 From: fredlcore Date: Tue, 14 Sep 2021 14:22:35 +0200 Subject: [PATCH] Update 98_Robotan.pm Small bugfixes --- 98_Robotan.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/98_Robotan.pm b/98_Robotan.pm index 496d4d6..84dd675 100644 --- a/98_Robotan.pm +++ b/98_Robotan.pm @@ -120,7 +120,7 @@ sub Robotan_ParseStatus($$) { foreach my $p ( keys %{$decoded} ) { my $reading = $decoded->{$p}{name}; my $value = $decoded->{$p}{value}; - $reading =~ s/ /_/g; + $reading =~ s/[ \(\)]/_/g; if ($reading eq "Functionality") { if ($value gt "0") { @@ -339,7 +339,7 @@ sub Robotan_EvalHttp ($$$) { Log3 $name, 4, "$name: HTTP response code: " . $param->{code}; if ($param->{path} eq "/json") { &Robotan_ParseStatus($hash, $data); - Log 5, "$data"; + Log3 $name, 5, "Data: $data"; } else { Log3 $name, 4, "$data"; }