Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single temperature for high-core CPU's #8

Open
to4ko opened this issue Jul 17, 2023 · 12 comments
Open

Single temperature for high-core CPU's #8

to4ko opened this issue Jul 17, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@to4ko
Copy link

to4ko commented Jul 17, 2023

Hi!

Is it possible to modify script to get single number (Package id 0) readings on summary screen instead of 14?)

image

@Meliox
Copy link
Owner

Meliox commented Jul 17, 2023

Hello,
Should work if you change this line: https://github.com/Meliox/PVE-mods/blob/main/pve-mod-gui-temp.sh#L115C6-L115C21 to "Package id " instead.

@to4ko
Copy link
Author

to4ko commented Jul 17, 2023

Hello, Should work if you change this line: https://github.com/Meliox/PVE-mods/blob/main/pve-mod-gui-temp.sh#L115C6-L115C21 to "Package id " instead.

image

thanks!

@Meliox
Copy link
Owner

Meliox commented Jul 17, 2023 via email

@to4ko
Copy link
Author

to4ko commented Jul 17, 2023

@Meliox one more - how this empy space can be removed?

image

@Meliox
Copy link
Owner

Meliox commented Jul 17, 2023

This is not caused by the mod, hence, I would ask, or fill a bug, to the proxmox team.

Btw. If you want to change "Core 0" to "Package 0", then simply change this line: https://github.com/Meliox/PVE-mods/blob/main/pve-mod-gui-temp.sh#L116

Non-modded:
image

@to4ko
Copy link
Author

to4ko commented Jul 17, 2023

it;s strange - here is mine non-moded
image

@Meliox
Copy link
Owner

Meliox commented Jul 17, 2023

Can you share your non-modded file for comparison?

@to4ko
Copy link
Author

to4ko commented Jul 17, 2023

attached
pvemanagerlib_and_Nodes_pm.zip

@Meliox
Copy link
Owner

Meliox commented Jul 17, 2023

Thanks.
Ok, mine had some leftovers (right):
image

So, I guess we can conclude that something in this section makes the unwanted behavior.

https://github.com/Meliox/PVE-mods/blob/main/pve-mod-gui-temp.sh#L190

@Meliox Meliox added the bug Something isn't working label Jul 17, 2023
@eremem
Copy link
Collaborator

eremem commented Jul 19, 2023

@Meliox I doesn't really look like our bug. Regardless of the modified height, bodyPadding and the other properties, the actual height of the box must grow anyway due to the added temperature entries. The layout manager of ExtJS (the JS framework under the hood) doesn't seem to be able to vertically align the boxes if their heights differ.

@carlox97
Copy link

carlox97 commented Nov 2, 2023

I edited Line 15 and 16 to
CPU_ITEM_PREFIX="Package id "
CPU_TEMP_CAPTION="CPU Package"

Line 233 to
tempStr = \`\${cpuTempCaption}: \${temp}°C\`;\n\

to get "CPU Package: 52°C"

and Line 325 to
temps.push(\`Samsung \EVO \960: \${temp}°C\`);\n\

to get "Samsung EVO 960: 27.85°C"

git

@Meliox do you think it's fine or it might cause problems? I've had none so far.

@Meliox
Copy link
Owner

Meliox commented Nov 2, 2023

Looks great. It will not cause you any problems. You will need to modify the script again if this one is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants