Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2012 18:40
Show Gist options
  • Save anonymous/025263923d39ccb95f31 to your computer and use it in GitHub Desktop.
Save anonymous/025263923d39ccb95f31 to your computer and use it in GitHub Desktop.
Raspberry Pi
puts "Hallo, ich werde nun alle 10 Sekunden die Temperatur speichern"
var = 0
loop do
var = var + 1
puts var
exec("vcgencmd measure_temp >> temp.txt")
sleep(10)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment