Open miarcin opened 8 months ago
Hi @miarcin , the problems that I can see are the error in sensors -j output and a non consecutive numbering of CPUs on Gen12.. BTW I expected an error while converting json output into a dictionary before the index error on CPUs... trying to ignore the iwlwifi error in json output and looking at your error, within the .sh launcher set
export PCH_INFO=""
and then within the pve_temp_stats_to_influxdb2.py replace the following (starting at row 67)
for index in range(0,CPU_CORES):
stats[f"core{index}"] = int(data[CORETEMP_NAME][f"Core {index}"][f"temp{index+CORE_OFFSET}_input"])
with this
temp_index = range(2,14)
temp_index_pointer = 0
for index in "0,4,8,12,16,17,18,19,20,21,22,23".split(','):
index = int(index)
stats[f"core{index}"] = int(data[CORETEMP_NAME][f"Core {index}"][f"temp{temp_index[temp_index_pointer]}_input"])
temp_index_pointer += 1
Unfortunately at present time I can not elaborate something universal or more configurable but maybe this will work for you. Let me know if it works ;-)
Thansk it workd, i was not sure if i can change code like you did. I'm not good in programing :) I have still error : " ERROR: Can't get value of subfeature temp1_input: Can't read" , but data are now showing.
The error is related to sensors error as seen in your output, btw I'm glad it works for you now ;-)
I try to implement yours solution for my intel Nuc i7-1270P but i have errors, somehow
ERROR: Can't get value of subfeature temp1_input: Can't read Traceback (most recent call last): File "/root/scripts/pve_temp_stats_to_influxdb2.py", line 68, in
stats[f"core{index}"] = int(data[CORETEMP_NAME][f"Core {index}"][f"temp{index+CORE_OFFSET}_input"])