PVE-mods/src/PVENodeInfo/patches/01-nodes-pm-sensors.patch
Meliox 0c25030a21
Migrate file patching from sed/python into generic patching scheme (#181)
* Start patching

* rework apply and revert patches to patch

* don't let a patch failure abort apt install

* roll the mod back if its post-apply hook errors

* add patch for gpu history

* Start patching

* rework apply and revert patches to patch

* don't let a patch failure abort apt install

* roll the mod back if its post-apply hook errors

* add patch for gpu history

* fix rrd history patch for compilation

* add test workflows

* Move test and CI to separate PR

* Start patching

* rework apply and revert patches to patch

* don't let a patch failure abort apt install

* roll the mod back if its post-apply hook errors

* add patch for gpu history

* fix rrd history patch for compilation

* add test workflows

* Move test and CI to separate PR

* readd test-release

* realign test-release with main

---------

Co-authored-by: Meliox <na>
2026-06-10 20:07:33 +02:00

16 lines
786 B
Diff

--- usr/share/perl5/PVE/API2/Nodes.pm 2026-05-24 02:05:58.000000000 +0200
+++ /usr/share/perl5/PVE/API2/Nodes.pm 2026-06-08 20:38:56.988900119 +0200
@@ -536,6 +536,12 @@
$res->{pveversion} = PVE::pvecfg::package() . "/" . PVE::pvecfg::version_text();
+ # Collect sensor data from PveMod_SensorInfo
+ use PVE::API2::PVEMod_SensorInfo;
+ $res->{PveMod_JsonSensorInfo} = PVE::API2::PVEMod_SensorInfo::get_sensors_info();
+ $res->{PveMod_Version} = PVE::API2::PVEMod_SensorInfo::get_pve_mod_version();
+ $res->{PveMod_upsInfo} = PVE::API2::PVEMod_SensorInfo::get_ups_info();
+ $res->{PveMod_systemInfo} = PVE::API2::PVEMod_SensorInfo::get_system_info();
my $dinfo = df('/', 1); # output is bytes
$res->{rootfs} = {