thermos.sh: Command line hardware temperature reporting for tmux
About this project
thermos.sh takes temperature data from sensors
(See Lm-sensors.org) and converts it into a simplified read out with color codes to indicate the thermal zone these temperatures are in. Generally anything below 70°C is good for a laptop, so these temperatures will be reported in green. 70 through 80°C show the temperatures in yellow. Above 80°C, reports orange or red if near the critical temperature.
At this time this program is designed to work with my computer where only two number need to be show. If you have a multicore computer, you will need to include other number. The same with other sensors that report temperature.
Features
The ultimate goal of this project is integration with tmux
. But the possiblities to create other programs just like it have piqued my interest.
This program was for the most part written in awk
, and adding new information is as easy as copy and pasting four lines of code. As with all my project, improvement is possible.
Downloads
File | Version | Date | Notes |
---|---|---|---|
thermos.sh | 3.1a | 18 Feb 2013 | Includes Physical id temperature for the CPU.
|
thermos.sh | 3.0a | 17 Feb 2013 | Now using a function in the gawk code. Supports two virtual devices and quad core processors. |
thermos.sh | 2.0a | 28 Sep 2012 | tmux ready, just no way to get tmux to recognize colors yet. |
thermos.sh | 1.0a | 28 Sep 2012 | Currently no tmux integration. |