You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meliox edited this page Jun 11, 2024
·
10 revisions
Welcome to the PVE-mods wiki!
#Development note:
Debug external sensor -j output
In /usr/share/perl5/PVE/API2/Nodes.pm
Replace
...
$res->{sensorsOutput}
....
with
my $json_file_path = '/tmp/sensordata.json'; # Ensure this path is correct
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;