From 3f31a4ee4fcccf6930397e72f76f82c1963cee15 Mon Sep 17 00:00:00 2001 From: Meliox <5264368+Meliox@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:15:31 +0200 Subject: [PATCH] Updated Home (markdown) --- Home.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Home.md b/Home.md index a1645ac..d5cd08f 100644 --- a/Home.md +++ b/Home.md @@ -5,14 +5,17 @@ Welcome to the PVE-mods wiki! ## 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; -` \ No newline at end of file +$res->{sensorsOutput} = $json_text; +``` \ No newline at end of file