This is a simple Bash script to log the temperature of your Raspberry PI. You can install it from source or you can download and execute the latest binary.
If you are on your raspberry pi terminal then type:
wget https://github.com/louigigr/RPITempLog/releases/download/v0.1-lw/PiTempLogger.x
In order to execute the latest binary you need to make the file executable
chmod +x PiTempLogger.x
Binary execution needs superuser rights
sudo ./PiTempLogger.x
It should run on any system that has vcgencmd and dialog installed
vcgencmd is already present on Raspberry Pi 3
To install dialog type:
sudo apt-get install dialog
git clone https://github.com/louigigr/RPITempLog.git
cd RPITempLog
chmod +x PiTempLogger.sh
./PiTempLogger.sh
Upon running the script you will be presented with a menu. This is the place where all the main functions are listed.
- Run Temperature log: When selected a default log output file is created named temp.tlog. If you have changed the name of the output log by selecting option 2 from the menu then the log will be output accordingly. You will be asked to enter the Log total time, which is the total time the logger will run. After that you will be asked to enter the Log Period which is the interval between each log.
- Select the log filename: Using this option you can enter a specific name for your log. The prefix .tlog is automatically added. The output file is a tab seperated table which you can use as you wish. Changing output filenames during sessions can help you monitor your PI's temperature in different conditions(e.g. different emulators)
- View Log: With this option you can view the latest log. Using option 2 to change the output log basicaly switches between logs if they exist. So by entering a name for an existing log in option 2 will display that log when selecting option 3.
- Exit Logger: Quits the logger. It will ask you to keep the logs or delete them.
*This script has been tested on a RPI3 running RetroPie 4.4.38-v7+ #938 SMP armv71 GNU/Linux
Released under the GPLv3 license .