Skip to content

Instantly share code, notes, and snippets.

@oneross
Created April 10, 2020 17:15
Show Gist options
  • Save oneross/56642032626766673854f474e479038c to your computer and use it in GitHub Desktop.
Save oneross/56642032626766673854f474e479038c to your computer and use it in GitHub Desktop.
Crontab for Raspberry Pi running Octopi, just to keep a tab on things
# date, uptime, CPU temp, voltage related events from kernal log, on the hour every hour
1 * * * * date >> vitals.log && uptime >> vitals.log && /opt/vc/bin/vcgencmd measure_temp >> vitals.log && (journalctl -k --since=-1h | grep -i voltage) >> vitals.log && echo " " >> vitals.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment