The BCM2835 system on a chip (SoC) of the Raspberry Pi has a temperature sensor that can be used to measure its temperature from the command line. It can provide information on how much heat the chip has generated during operation and also report on the temperature of the environment. This project's aim is to create a simple shell script that can run automatically as you boot up your Raspberry Pi, take measurements from the temperature sensor at given intervals, and write them into log files that can be viewed later.
For accurate timestamps in your logs, you can optionally use a Real Time Clock accessory
- The worksheet
- (Optional) Final version of the shell script: temperature_log.sh
- Download to your Pi with
wget http://goo.gl/vV2SF5 -O temperature_log.sh --no-check-certificate
- Download to your Pi with
Unless otherwise specified, everything in this repository is covered by the following licence:
Temperature Log by the Raspberry Pi Foundation is licensed under a Creative Commons Attribution 4.0 International Licence.
Based on a work at https://github.com/raspberrypilearning/temperature-log