mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-15 16:46:24 +00:00
Update flask_server.py
This commit is contained in:
@@ -2597,7 +2597,7 @@ def identify_temperature_sensor(sensor_name, adapter, chip_name=None):
|
|||||||
core_num = re.search(r'(\d+)', sensor_name)
|
core_num = re.search(r'(\d+)', sensor_name)
|
||||||
return f"CPU Core {core_num.group(1)}" if core_num else "CPU Core"
|
return f"CPU Core {core_num.group(1)}" if core_num else "CPU Core"
|
||||||
|
|
||||||
# DDR5 Memory temperature sensors (SPD5118)
|
# <CHANGE> DDR5 Memory temperature sensors (SPD5118)
|
||||||
if "spd5118" in chip_lower or ("smbus" in adapter_lower and "temp1" in sensor_lower):
|
if "spd5118" in chip_lower or ("smbus" in adapter_lower and "temp1" in sensor_lower):
|
||||||
# Try to identify which DIMM slot
|
# Try to identify which DIMM slot
|
||||||
# Example: spd5118-i2c-0-50 -> i2c bus 0, address 0x50 (DIMM A1)
|
# Example: spd5118-i2c-0-50 -> i2c bus 0, address 0x50 (DIMM A1)
|
||||||
|
|||||||
Reference in New Issue
Block a user