Skip to content

Commit

Permalink
Update 98_Robotan.pm
Browse files Browse the repository at this point in the history
Small bugfixes
  • Loading branch information
fredlcore authored Sep 14, 2021
1 parent 9e04413 commit 789befd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 98_Robotan.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -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";
}
Expand Down

0 comments on commit 789befd

Please sign in to comment.