Updated Home (markdown)
1 parent
90c537ce04
commit
642fbdf8f8
1 file changed
+3
-2
+3
-2
@@ -10,8 +10,9 @@ $res->{sensorsOutput}
|
||||
|
||||
with
|
||||
|
||||
`
|
||||
my $json_file_path = '/tmp/sensordata.json'; # Ensure this path is correct
|
||||
# Read JSON data from the file
|
||||
open my $fh, '<', $json_file_path or die "Cannot open $json_file_path: $!";
|
||||
my $json_text = do { local $/; <$fh> };
|
||||
close $fh;
|
||||
close $fh;
|
||||
`
|
||||
Reference in new issue
Block a user