{"id":17100894,"url":"https://github.com/mityax/rpi-temperature-alert","last_synced_at":"2025-10-11T18:30:44.080Z","repository":{"id":191639449,"uuid":"253840723","full_name":"mityax/rpi-temperature-alert","owner":"mityax","description":"Monitor the CPU temperature of a Raspberry Pi, send warn emails if it gets really warm and shutdown the system if it gets too hot","archived":false,"fork":false,"pushed_at":"2020-05-03T21:11:42.000Z","size":36,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T20:44:45.525Z","etag":null,"topics":["kodi","libreelec","monitoring","python","raspberry-pi","raspberry-pi-3","rpi","rpi3","rpi4"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mityax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-07T15:48:34.000Z","updated_at":"2024-10-30T02:41:43.000Z","dependencies_parsed_at":"2023-08-30T22:35:54.800Z","dependency_job_id":null,"html_url":"https://github.com/mityax/rpi-temperature-alert","commit_stats":null,"previous_names":["mityax/rpi-temperature-alert"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mityax/rpi-temperature-alert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mityax%2Frpi-temperature-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mityax%2Frpi-temperature-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mityax%2Frpi-temperature-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mityax%2Frpi-temperature-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mityax","download_url":"https://codeload.github.com/mityax/rpi-temperature-alert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mityax%2Frpi-temperature-alert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008289,"owners_count":26084431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kodi","libreelec","monitoring","python","raspberry-pi","raspberry-pi-3","rpi","rpi3","rpi4"],"created_at":"2024-10-14T15:22:58.851Z","updated_at":"2025-10-11T18:30:43.645Z","avatar_url":"https://github.com/mityax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi temperature alert\nMonitor the CPU temperature of a Raspberry Pi, send warn emails and shut down the system if it gets too hot.\n\nThe original code comes from [here](https://gist.github.com/LeonardoGentile/7a5330e6bc55860feee5d0dd79e7965d). I modified it to send more detailed warning messages and added a nice CPU temperature graph over the past 60 days to the emails. Below\nis an example email.\n\n![Email Screenshot](https://raw.githubusercontent.com/mityax/rpi-temperature-alert/master/email-screenshot.png)\n\n## Setup\n```pip install python-simplemail```\n\nTo run this script periodically (as it is intended) type\n```sudo crontab -e```\nand add this line:\n\n```*/15 * * * * python /home/pi/temperature-alert.py```\n\nThen adjust the email credentials at the beggining of the script.\n\nThat's it. Your Pi is now save.\n\n\n__Setup on systems without pip (e.g. LibreElec and OpenElec)__\n\nTo use this script on systems without pip just download [this python script](https://github.com/gerold-penz/python-simplemail/blob/master/simplemail/__init__.py), rename it to ```simplemail.py``` and place it next to ```temperature-alert.py```\n\n## Testing the Setup\nTo test your setup, just type\n\n```python temperature-alert.py 70```\n\nThis will emulate a CPU temperature of 70°C and thus send you a warn e-mail. Use 81°C to test the shutdown function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmityax%2Frpi-temperature-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmityax%2Frpi-temperature-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmityax%2Frpi-temperature-alert/lists"}