https://github.com/tomburgs/raspberry-cpu-temp
🫐 Easy-to-use tool to get Raspberry Pi's cpu temperature and report statistics 🌡️.
https://github.com/tomburgs/raspberry-cpu-temp
devops raspberry-pi report-statistics temperature
Last synced: 6 months ago
JSON representation
🫐 Easy-to-use tool to get Raspberry Pi's cpu temperature and report statistics 🌡️.
- Host: GitHub
- URL: https://github.com/tomburgs/raspberry-cpu-temp
- Owner: Tomburgs
- License: mit
- Created: 2018-05-28T23:01:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T13:00:11.000Z (almost 6 years ago)
- Last Synced: 2025-10-11T12:58:38.656Z (6 months ago)
- Topics: devops, raspberry-pi, report-statistics, temperature
- Language: Shell
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Raspberry PI Temperature
Easy-to-use tool to get cpu-idle state temperature and report statistics.
This tool will work by default on all elinux systems, this includes raspbian.
Get started
----
To get started, clone the repository.
```
$ git clone https://github.com/tomburgs/raspberry-cpu-temp
```
in order to launch the script navigate to it's folder and launch it.
```sh
~ $ cd raspberry-cpu-temp
~/raspberry-cpu-temp $ ./temp.sh
```
Reponse
----
If the script is working correctly you will see 100 runs with 1 second timeouts.
Once the script is done running you will see Highest, Average & Last temperature, as well as Temperature loss from previous run & Rating returned like this:
```
Results:
Highest temp: 42.9 'C
Average temp: 41 'C
Last temp: 40.8 'C
Temp loss: 5 'C
Rating: Good
```
Debug
----
If the script has problems rewriting prev.data file, give it permission:
```
$ sudo chmod +x prev.data
```
If you cannot run the file because of line endings (^M), this likely means you have edited the file in windows env.
Easy fix for this is to run this command line:
```
$ sed -i -e 's/\r$//' temp.sh
```
License
----
MIT