Skip to content

Monitor the raspberry pi cpu temperature and send email/shutdown in case it's too high.

License

Notifications You must be signed in to change notification settings

MartinWagenbach/CoreTemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoreTemp

Monitor the Raspberry Pi cpu temperature and send an e-mail or shutdown in case it's too high.


Installation

  • Clone this repo to your Raspberry Pi using https://github.com/MartinWagenbach/CoreTemp.git.

  • Go to your directory where you cloned the repo and install the requirements.

$ pip3 install -r requirements.txt
  • Edit the CoreTemp.ini.

  • Move the CoreTemp.ini to your config path.

$ cp CoreTemp.ini /etc/

Setup as service (Optional)

  • Let’s create a file called: /etc/systemd/system/coretemp.service
[Unit]
Description=Monitor CPU temperatur with CoreTemp.py
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
Environment=HOME=/root/
Environment=PYTHONUNBUFFERED=1
ExecStart=/usr/local/share/CoreTemp/CoreTemp.py

[Install]
WantedBy=multi-user.target
  • That’s it. We can now start the service:
$ systemctl start coretemp
  • And automatically get it to start on boot:
$ systemctl enable coretemp

Contributors

MartinWagenbach Tikrass
MartinWagenbach Tikrass
github.com/MartinWagenbach github.com/tikrass

About

Monitor the raspberry pi cpu temperature and send email/shutdown in case it's too high.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages