Raspberry pi cpu temp monitor
In Bash, you can redirect that output to a file.Įxecuting echo "Hello Raspberry Pi fans!" > hello.txt will create file hello.txt and its contents will be set to match Hello Raspberry Pi fans!. Running echo "Hello World" will print Hello World to console. If you are interested in learning more about the available options refer to documentation.ĭocumentation of rrdtool graph can be found here.
RRD expects data to be stored in it at given intervals (step). Create a Round Robin DatabaseĪ Round Robin Database (RRD) is a time series database. If you encounter a Permission denied message, run chmod 700 get_temp.sh before executing again.
Raspberry pi cpu temp monitor code#
To test the code above store it in a file (i.e. #!/bin/bash TEMP_READING = $(/opt/vc/bin/vcgencmd measure_temp ) TEMP_VALUE = $.