Multiple changes:
- Rename pve-mod-gui-temp.sh to pve-mod-gui-sensors.sh - Update readme and screenshot
This commit is contained in:
parent
6dcfbfb624
commit
2f05163369
@ -3,7 +3,7 @@
|
|||||||
# This script's working directory
|
# This script's working directory
|
||||||
SCRIPT_CWD="$(dirname "$(readlink -f "$0")")"
|
SCRIPT_CWD="$(dirname "$(readlink -f "$0")")"
|
||||||
|
|
||||||
MODS="pve-mod-gui-temp.sh pve-mod-nag-screen.sh"
|
MODS="pve-mod-gui-sensors.sh pve-mod-nag-screen.sh"
|
||||||
|
|
||||||
ACTION=${1:-install}
|
ACTION=${1:-install}
|
||||||
for m in $MODS; do
|
for m in $MODS; do
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
# Display configuration for HDD, NVME, CPU
|
# Display configuration for HDD, NVME, CPU
|
||||||
# Set to 0 to disable line breaks
|
# Set to 0 to disable line breaks
|
||||||
|
# Note: use these settings only if the displayed layout is broken
|
||||||
CPU_ITEMS_PER_ROW=0;
|
CPU_ITEMS_PER_ROW=0;
|
||||||
NVME_ITEMS_PER_ROW=0;
|
NVME_ITEMS_PER_ROW=0;
|
||||||
HDD_ITEMS_PER_ROW=0;
|
HDD_ITEMS_PER_ROW=0;
|
||||||
@ -350,12 +351,12 @@ function install_mod {
|
|||||||
|
|
||||||
if [ $enableNvmeTemp = true -o $enableHddTemp = true ]; then
|
if [ $enableNvmeTemp = true -o $enableHddTemp = true ]; then
|
||||||
sed -i "/^Ext.define('PVE.node.StatusView',/ {
|
sed -i "/^Ext.define('PVE.node.StatusView',/ {
|
||||||
:a;
|
:a;
|
||||||
/items:/!{N;ba;}
|
/items:/!{N;ba;}
|
||||||
:b;
|
:b;
|
||||||
/'thermal.*},/!{N;bb;}
|
/'thermal.*},/!{N;bb;}
|
||||||
a\
|
a\
|
||||||
\\
|
\\
|
||||||
{\n\
|
{\n\
|
||||||
xtype: 'box',\n\
|
xtype: 'box',\n\
|
||||||
colspan: 2,\n\
|
colspan: 2,\n\
|
||||||
@ -387,7 +388,6 @@ function install_mod {
|
|||||||
textField: 'sensorsOutput',\n\
|
textField: 'sensorsOutput',\n\
|
||||||
renderer: function(value) {\n\
|
renderer: function(value) {\n\
|
||||||
const objValue = JSON.parse(value);\n\
|
const objValue = JSON.parse(value);\n\
|
||||||
\n\
|
|
||||||
let speeds = [];\n\
|
let speeds = [];\n\
|
||||||
\n\
|
\n\
|
||||||
// Loop through the parent keys\n\
|
// Loop through the parent keys\n\
|
||||||
@ -412,8 +412,8 @@ function install_mod {
|
|||||||
\n\
|
\n\
|
||||||
return '<div style=\"text-align: left; margin-left: 28px;\">' + (speeds.length > 0 ? speeds.join(' | ') : 'N/A') + '</div>';\n\
|
return '<div style=\"text-align: left; margin-left: 28px;\">' + (speeds.length > 0 ? speeds.join(' | ') : 'N/A') + '</div>';\n\
|
||||||
}\n\
|
}\n\
|
||||||
},
|
},
|
||||||
}" "$pvemanagerlibjs"
|
}" "$pvemanagerlibjs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add an empty line to separate modified items as a visual group
|
# Add an empty line to separate modified items as a visual group
|
||||||
BIN
pve-mod-sensors.png
Normal file
BIN
pve-mod-sensors.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
pve-mod-temp.png
BIN
pve-mod-temp.png
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
22
readme.md
22
readme.md
@ -1,18 +1,18 @@
|
|||||||
# Proxmox mods and scripts
|
# Proxmox Virtual Environment mods and scripts
|
||||||
A small collection of script and mods for Proxmox
|
A small collection of scripts and mods for Proxmox Virtual Environment (PVE)
|
||||||
|
|
||||||
If you find this helpful, a small donation is appreciated, [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K8XPMSEBERH3W).
|
If you find this helpful, a small donation is appreciated, [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K8XPMSEBERH3W).
|
||||||
|
|
||||||
## Node temperature view
|
## Node sensor readings view
|
||||||
(Tested compatibility: 7.x, 8.0.x, 8.1.x, 8.2.x)
|
(Tested compatibility: 7.x - 8.2)
|
||||||
|
|
||||||
This bash script installs a modification to the Proxmox Virtual Environment (PVE) web user interface (UI) to display temperature information in a flexible manner for CPU, NVME and HDDs/SSDs. Fan speeds are also displayed, if available.
|
This bash script installs a modification to the Proxmox Virtual Environment (PVE) web user interface (UI) to display sensor readings in a flexible manner. Supported are CPU, NVMe/HDD/SSD temperatures and fan speeds.
|
||||||
|
|
||||||
The modification includes three main steps:
|
The modification includes three main steps:
|
||||||
|
|
||||||
1. Create backups of the original files located at `/usr/share/pve-manager/js/pvemanagerlib.js` and `/usr/share/perl5/PVE/API2/Nodes.pm` in the `/root/backup` directory.
|
1. Create backups of the original files located at `/usr/share/pve-manager/js/pvemanagerlib.js` and `/usr/share/perl5/PVE/API2/Nodes.pm` in the `backup` directory relative to the script location.
|
||||||
2. Add a new line to the `Nodes.pm` file that reads the thermal state information of the host using the `sensors` command.
|
2. Add a new line to the `Nodes.pm` file that enables host system sensor readings using the `sensors` command.
|
||||||
3. Modify the `pvemanagerlib.js` file to expand the space in the StatusView and add a new item to the items array that displays the temperature information in Celsius for CPU, NVME and HDDs/SSDs.
|
3. Modify the `pvemanagerlib.js` file to expand the space in the host summary view and add new items that displays the temperature information in Celsius for CPU, NVME and HDDs/SSDs, and fan speeds, if available.
|
||||||
|
|
||||||
The script provides two options: `install` and `uninstall`. The `install` option installs the modification, while the `uninstall` option removes it by copying the backup files to their original location. The script also restarts the `pveproxy` service to apply the changes.
|
The script provides two options: `install` and `uninstall`. The `install` option installs the modification, while the `uninstall` option removes it by copying the backup files to their original location. The script also restarts the `pveproxy` service to apply the changes.
|
||||||
|
|
||||||
@ -21,16 +21,16 @@ For HDDs/SSDs readings to work, the kernal module drivetemp must be installed.
|
|||||||
### Install
|
### Install
|
||||||
```
|
```
|
||||||
apt-get install lm-sensors
|
apt-get install lm-sensors
|
||||||
wget https://raw.githubusercontent.com/Meliox/PVE-mods/main/pve-mod-gui-temp.sh
|
wget https://raw.githubusercontent.com/Meliox/PVE-mods/main/pve-mod-gui-sensors.sh
|
||||||
```
|
```
|
||||||
Or use git clone.
|
Or use git clone.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Adjustments are available in the first part of the script, where paths can be edited, cpucore offset and display information.
|
Adjustments are available in the first part of the script, where paths can be edited, cpucore offset and display information.
|
||||||
|
|
||||||
## Nag screen deactivation
|
## Nag screen deactivation
|
||||||
(Tested compatibility: 7.x, 8.0.x, 8.1.x, 8.2.x)
|
(Tested compatibility: 7.x - 8.2)
|
||||||
This bash script installs a modification to the Proxmox Virtual Environment (PVE) web user interface (UI) which deactivates the subscription nag screen.
|
This bash script installs a modification to the Proxmox Virtual Environment (PVE) web user interface (UI) which deactivates the subscription nag screen.
|
||||||
|
|
||||||
The script provides two options: `install` and `uninstall`. The `install` option installs the modification, while the `uninstall` option removes it by copying the backup files to their original location.
|
The script provides two options: `install` and `uninstall`. The `install` option installs the modification, while the `uninstall` option removes it by copying the backup files to their original location.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user