wiki/docs/proxmox/send-cpu-temp-to-ha.md
Sthope c3e7aa68d4
All checks were successful
continuous-integration/drone/push Build is passing
first commit
2022-04-24 21:53:58 +02:00

303 B

Thanks for nikito7

nano proxmox_sendTemp_2HA
#!/bin/sh

temp=$(cat /sys/class/thermal/thermal_zone2/temp')

mosquitto_pub -h host -user -P pass -t proxmox/pve1/cpu_temp -m $temp
chmod +x proxmox_sendTemp_2HA;/10 * * * * /proxmox_sendTemp_2HA