reboot_temperature/README.md
2022-09-20 10:26:34 +08:00

886 B

reboot_temperature

树莓派温度上限时重启或者关机, 第一时间保护硬件, 不处在温度上线过长时间
搭配libesmtp https://git.aixiao.me/aixiao/libesmtp 实现QQ邮件发送告警

Help Information

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


recv_mail = "1605227279@qq.com";                                    // 接收者QQ