#Temperature monitoring on the shell #BASH

5 messages · Page 1 of 1 (latest)

solemn kayakBOT
#

@coarse wadi

File Attachments Not Allowed

For safety reasons we do not allow files with certain file extensions.

¼#'r Said

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. 🤷‍♂️

Code Formatting

You can share your code using triple backticks like this:
```
YOUR CODE
```

Large Portions of Code

For longer scripts use Hastebin or GitHub Gists and share the link here

Ignored these files due to them having disallowed file extensions
regal tapir
#

Slap Docker + telegraf on there then hook it up to OpenObserve

#

also keep in mind if you store CPU data once per second or whatever you'll collect quite a bunch of data

coarse wadi
#

God that's awful. Ugh. Can't get anything fancy for free anonymously these days! Shucks!