Go to file
2021-08-05 11:33:09 +08:00
conf 增加进程优先级 2021-08-05 11:22:18 +08:00
Makefile 增加进程优先级 2021-08-05 11:22:18 +08:00
README.md 增加 README.md 2021-08-05 11:33:09 +08:00
reboot_temperature.c 增加进程优先级 2021-08-05 11:22:18 +08:00
reboot_temperature.h 增加进程优先级 2021-08-05 11:22:18 +08:00

reboot_temperature

树莓派温度上限时重启或者关机, 保护硬件
搭配qqMail(https://git.aixiao.me/aixiao/qqMail)实现QQ邮件发送告警

Help Information

thermal_zone = "/sys/class/thermal/thermal_zone0/temp";         // 树莓派温度
temperature = 70                                                // 温度上限
log_file = "log_reboot.log";                                    // 日志文件
second = 60                                                     // 循环秒
nice = -20                                                      // 进程进程优先级 +19 - -20
off_power = 1                                                   // 1关机 0重启