From fb8faeb2cf4df0c21d335e40520c8b919f0e3b3b Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 24 Apr 2022 22:04:25 +0200 Subject: [PATCH] first commit --- docs/proxmox/send-cpu-temp-to-ha.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/proxmox/send-cpu-temp-to-ha.md b/docs/proxmox/send-cpu-temp-to-ha.md index 26d6016..23cd7a5 100644 --- a/docs/proxmox/send-cpu-temp-to-ha.md +++ b/docs/proxmox/send-cpu-temp-to-ha.md @@ -12,8 +12,15 @@ nano proxmox_sendTemp_2HA # \__ \| _|| \ / _ \| .__// -_) # |___/ \__||_||_|\___/|_| \___| +host=MQTT_IP +user=MQTT_USERNAME +pass=MQTT_PASSWORD + +proxmox_name=pve1 + temp=$(cat /sys/class/thermal/thermal_zone2/temp') -mosquitto_pub -h host -u user -P pass -t proxmox/pve1/cpu_temp -m $temp + +mosquitto_pub -h $host -u $user -P $pass -t proxmox/$proxmox_name/cpu_temp -m $temp ``` ```