Updated Home (markdown)
parent
7416090d42
commit
90c537ce04
5
Home.md
5
Home.md
@ -6,15 +6,12 @@ Welcome to the PVE-mods wiki!
|
||||
In /usr/share/perl5/PVE/API2/Nodes.pm
|
||||
Replace
|
||||
|
||||
`$res->{sensorsOutput}`
|
||||
$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;
|
||||
`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user