@coarse wadi
For safety reasons we do not allow files with certain file extensions.
This is less of a question and more of a public scratchpad that anyone's welcome to comment on.
This script is for the Proxmox VE status screen. It should return a JSON object with current plus historical min/max/avg values for all the CPU cores in a system dynamically.
Unless we get a nice cool evening I can't touch the server until the AC is fixed to bring the room temps down so this is a nice place to save my thoughts.
Attached is the bash script that will be called by PVE for status page refreshes. The JS portion that reads the JSON output of this script is already mostly written and just needs to be adapted slightly once I get back on the server.
I suspect that I bungled the math on the averages somehow at the very least, but I don't want to be sloppy and keep a historical record of all the core temps. 🤷♂️
You can share your code using triple backticks like this:
```
YOUR CODE
```
For longer scripts use Hastebin or GitHub Gists and share the link here