Skip to content

Instantly share code, notes, and snippets.

@rlogiacco
Created January 6, 2016 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlogiacco/1b9d36afacf53748e54c to your computer and use it in GitHub Desktop.
Save rlogiacco/1b9d36afacf53748e54c to your computer and use it in GitHub Desktop.
RPi temperature monitor
#!/bin/bash
LOG_FILE=$1
while :
do
temp=`/opt/vc/bin/vcgencmd measure_temp`
temp=${temp:5:16}
echo $(date '+%F %H:%M:%S') [$temp] >>LOG_FILE
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment