Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Add rp1_adc to CPU chip detection in sensors parser

rcourtmana371c3737e60
diff --git a/internal/sensors/parser.go b/internal/sensors/parser.go
index 331b4e3127..d60299e7e0 100644
--- a/internal/sensors/parser.go
+++ b/internal/sensors/parser.go
@@ -95,7 +95,7 @@ func isCPUChip(chipLower string) bool {
"it87", "nct6687", "nct6775", "nct6776", "nct6779",
"nct6791", "nct6792", "nct6793", "nct6795", "nct6796",
"nct6797", "nct6798", "w83627", "f71882",
- "cpu_thermal", "rpitemp",
+ "cpu_thermal", "rp1_adc", "rpitemp",
}
for _, chip := range cpuChips {
diff --git a/internal/sensors/parser_test.go b/internal/sensors/parser_test.go
index 81adcb0d80..d4ee80d66a 100644
--- a/internal/sensors/parser_test.go
+++ b/internal/sensors/parser_test.go
@@ -344,6 +344,7 @@ func TestIsCPUChip(t *testing.T) {
{"nct6775-isa-0290", true},
{"cpu_thermal-virtual-0", true},
{"acpitz-acpi-0", true},
+ {"rp1_adc-isa-0000", true}, // Raspberry Pi RP1 ADC
{"nvme-pci-0100", false},
{"amdgpu-pci-0300", false},
{"unknown-chip", false},