conf | ||
Makefile | ||
README.md | ||
reboot_temperature.c | ||
reboot_temperature.h |
reboot_temperature
树莓派温度上限时重启或者关机, 第一时间保护硬件, 不处在温度上线过长时间
搭配qqMail(https://git.aixiao.me/aixiao/qqMail)实现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重启
send_mail = "1605227279"; // 发送者QQ
mail_key = "dqqpbbbxoaziba"; // 发送者QQ密钥
recv_mail = "1605227279"; // 接收者QQ