Skip to content

Instantly share code, notes, and snippets.

View angelperezleon's full-sized avatar

angelperezleon

View GitHub Profile
@angelperezleon
angelperezleon / pi-cpu-stress.sh
Last active February 3, 2024 13:19 — forked from geerlingguy/pi-cpu-stress.sh
Raspberry Pi CPU temperature and throttling test script
#!/bin/bash
# Raspberry Pi stress CPU temperature measurement script.
#
# Download this script (e.g. with wget) and give it execute permissions (chmod +x).
# Then run it with ./pi-cpu-stress.sh
# Variables
#time stamp the log file
now=$(date +"%d-%m-%Y-%H%M%S")
test_results_file="${HOME}/cpu_temp_$now.log"