Skip to content

Instantly share code, notes, and snippets.

@AnotherDroog
Created December 29, 2018 08:10
Show Gist options
  • Save AnotherDroog/3c407ac5d6df7f4c65a2edf2674e653b to your computer and use it in GitHub Desktop.
Save AnotherDroog/3c407ac5d6df7f4c65a2edf2674e653b to your computer and use it in GitHub Desktop.
Raspberry Pi temperature on alpine
#!/bin/sh
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
echo "$((cpu/1000))C"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment