Updated Home (markdown)
parent
ef21b907c0
commit
f931e9a80f
7
Home.md
7
Home.md
@ -5,11 +5,11 @@ Welcome to the PVE-mods wiki!
|
|||||||
## Debug external sensor -j out,
|
## Debug external sensor -j out,
|
||||||
In /usr/share/perl5/PVE/API2/Nodes.pm
|
In /usr/share/perl5/PVE/API2/Nodes.pm
|
||||||
Replace
|
Replace
|
||||||
`
|
|
||||||
$res->{sensorsOutput}
|
$res->{sensorsOutput}
|
||||||
`
|
|
||||||
with
|
with
|
||||||
`
|
|
||||||
my $json_file_path = '/tmp/sensordata.json'; # Ensure this path is correct and file has chmod 777`
|
my $json_file_path = '/tmp/sensordata.json'; # Ensure this path is correct and file has chmod 777`
|
||||||
|
|
||||||
`# Read JSON data from the file`
|
`# Read JSON data from the file`
|
||||||
@ -18,4 +18,3 @@ with
|
|||||||
`close $fh;`
|
`close $fh;`
|
||||||
|
|
||||||
`$res->{sensorsOutput} = $json_text;
|
`$res->{sensorsOutput} = $json_text;
|
||||||
`
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user