Simple and useful shell scripts notes:
temperature for SBC datalogging.
- As in the example, create the three files in a directory of your choice;
- Grant
chmod u+x
to the.sh
files; - Add a
contab -e
line:@reboot /home/$USER/temperature/log.sh 2>&1
- Reboot.. and check with
cat ~/temperature/temp.log
- Set $USER to your username and paths as desired.
- The date and time are recorded with the temperature every minute, remember that this file will grow!