Skip to content

Instantly share code, notes, and snippets.

@cprerovsky
Created November 13, 2012 09:12
Show Gist options
  • Select an option

  • Save cprerovsky/4064793 to your computer and use it in GitHub Desktop.

Select an option

Save cprerovsky/4064793 to your computer and use it in GitHub Desktop.
raspberry pi temperature monitoring script
#!/bin/bash
DATE=`date +"%Y-%m-%d %H:%M:%S"`
TEMP=`/opt/vc/bin/vcgencmd measure_temp | egrep -o --color=never "[0-9.]+"`
PATH=`dirname "$0"`
echo "$DATE $TEMP" >> $PATH/temp.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment