reboot_temperature/README.md

16 lines
886 B
Markdown
Raw Normal View History

2021-08-05 11:33:09 +08:00
# reboot_temperature
2022-04-10 22:34:13 +08:00
树莓派温度上限时重启或者关机, 第一时间保护硬件, 不处在温度上线过长时间
2022-09-20 10:26:34 +08:00
搭配libesmtp https://git.aixiao.me/aixiao/libesmtp 实现QQ邮件发送告警
2021-08-05 11:33:09 +08:00
## Help Information
2022-04-10 22:34:13 +08:00
[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重启
2021-08-05 11:33:09 +08:00
2022-04-10 22:34:13 +08:00
2022-09-20 10:26:34 +08:00
recv_mail = "1605227279@qq.com"; // 接收者QQ