Skip to content

Instantly share code, notes, and snippets.

@arobb
Created October 2, 2016 00:55
Show Gist options
  • Save arobb/59eed2a1746711c48d85d08ac66705e7 to your computer and use it in GitHub Desktop.
Save arobb/59eed2a1746711c48d85d08ac66705e7 to your computer and use it in GitHub Desktop.
Temperature from Raspberry Pi
#!/usr/bin/env bash
vcgencmd measure_temp | sed -n 's/temp=\([0-9.]*\).*$/\1/p' | bc <<< "9 / 5 * `cat` + 32"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment