Fork me on GitHub

Organizations

@github @rss
1 results for cpu
  • Difficulty level: It may take a little longer
    images/featured-image.jpg
    If you want to shut down a Raspberry above a certain temperature, then you are in the right place. I have a script that checks the CPU temperature via crontab: #!/bin/sh # This script reads the Broadcom SoC temperature value and shuts down if it # exceeds a particular value. # 80ÂșC is the maximum allowed for a Raspberry Pi. # Get the reading from the sensor and strip the non-number parts SENSOR="`/opt/vc/bin/vcgencmd measure_temp | cut -d "=" -f2 | cut -d "'" -f1`" # -gt only deals with whole numbers, so round it.
    bash cpu cron linux maker Created Fri, 14 Feb 2020 00:00:00 +0000