From 07be9944800e8232dd12dc8c10ee36e04e6482f5 Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 24 Apr 2022 21:59:34 +0200 Subject: [PATCH] first commit --- docs/proxmox/send-cpu-temp-to-ha.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/proxmox/send-cpu-temp-to-ha.md b/docs/proxmox/send-cpu-temp-to-ha.md index 6e25d71..26d6016 100644 --- a/docs/proxmox/send-cpu-temp-to-ha.md +++ b/docs/proxmox/send-cpu-temp-to-ha.md @@ -6,13 +6,20 @@ nano proxmox_sendTemp_2HA ``` ``` -#!/bin/sh +#!/bin/bash +# ___ _ _ _ __ +# / __|| |_ | |_ ___ | '_ \ ___ +# \__ \| _|| \ / _ \| .__// -_) +# |___/ \__||_||_|\___/|_| \___| temp=$(cat /sys/class/thermal/thermal_zone2/temp') - -mosquitto_pub -h host -user -P pass -t proxmox/pve1/cpu_temp -m $temp +mosquitto_pub -h host -u user -P pass -t proxmox/pve1/cpu_temp -m $temp ``` ``` -chmod +x proxmox_sendTemp_2HA;/10 * * * * /proxmox_sendTemp_2HA +chmod +x proxmox_sendTemp_2HA; +``` + +``` +while proxmox_sendTemp_2HA; do sleep 10; done ``` \ No newline at end of file