apt-get install lm-sensors
cp /usr/share/perl5/PVE/API2/Nodes.pm /usr/share/perl5/PVE/API2/Nodes.pm.bak
cp /usr/share/pve-manager/js/pvemanagerlib.js /usr/share/pve-manager/js/pvemanagerlib.js.bak
Add the following to file /usr/share/perl5/PVE/API2/Nodes.pm
$res->{thermalstate} = `sensors`;
Between lines:
$res->{pveversion} = PVE::pvecfg::package() . "/" .
PVE::pvecfg::version_text();
$res->{thermalstate} = `sensors`;
my $dinfo = df('/', 1); # output is bytes
Add the following snippet to: /usr/share/pve-manager/js/pvemanagerlib.js
{
itemId: 'version',
colspan: 2,
printBar: false,
title: gettext('Manager Version'),
textField: 'pveversion',
value: '',
},
// HERE
{
itemId: 'thermal',
colspan: 2,
printBar: false,
title: gettext('CPU temperature'),
textField: 'thermalstate',
renderer:function(value){
// const c0 = value.match(/Core 0.*?\+([\d\.]+)?/)[1];
// const c1 = value.match(/Core 1.*?\+([\d\.]+)?/)[1];
// return `Core: ${c0} | ${c1}`
const cP = value.match(/Package id0.*?\+([\d\.]+)?/)[1];
return `Package: ${cP}`
}
}
// UNTIL HERE
],
Restart pve proxy
systemctl restart pveproxy
Hard reload Summary screen (cleaning cache): CTRL + SHIFT + R