Initial Home page
commit
d978918b7d
17
Home.md
Normal file
17
Home.md
Normal file
@ -0,0 +1,17 @@
|
||||
Welcome to the PVE-mods wiki!
|
||||
|
||||
|
||||
#Development note:
|
||||
## Debug external sensor -j out,
|
||||
In /usr/share/perl5/PVE/API2/Nodes.pm
|
||||
Replace
|
||||
`$res->{sensorsOutput}`
|
||||
with
|
||||
` my $json_file_path = '/tmp/sensordata.json'; # Ensure this path is correct and file has chmod 777`
|
||||
|
||||
`# 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;`
|
||||
|
||||
`$res->{sensorsOutput} = $json_text;`
|
||||
Loading…
Reference in New Issue
Block a user