Updated Home (markdown)
parent
166686bed0
commit
7416090d42
6
Home.md
6
Home.md
@ -10,9 +10,11 @@ Replace
|
|||||||
|
|
||||||
with
|
with
|
||||||
|
|
||||||
`my $json_file_path = '/tmp/sensordata.json'; # Ensure this path is correct
|
`
|
||||||
|
my $json_file_path = '/tmp/sensordata.json'; # Ensure this path is correct
|
||||||
|
|
||||||
# Read JSON data from the file
|
# Read JSON data from the file
|
||||||
open my $fh, '<', $json_file_path or die "Cannot open $json_file_path: $!";
|
open my $fh, '<', $json_file_path or die "Cannot open $json_file_path: $!";
|
||||||
my $json_text = do { local $/; <$fh> };
|
my $json_text = do { local $/; <$fh> };
|
||||||
close $fh;`
|
close $fh;
|
||||||
|
`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user