Just so people know I got this working, with a monitoring bash file I found on this forum will have to find and book mark it.
It writes out to a file, then mounted that file in a nfs share and basically cat and echoed it back into proxmox
Used a cronjob for it like the below it runs every minute.
#!/bin/bash
dir="/mnt/PWM/"
nfs_server="x.x.x.x:/mnt/user/FANSHARE"
command_to_run="ls -l $dir"
while true; do
if mountpoint -q $dir; then
echo "NFS directory is already mounted. Running command..."
# Replace the following line with the command you want to run when the NFS directory is mounted
cat /mnt/PWM/pwm > /sys/class/hwmon/hwmon3/pwm1
break
else
echo "NFS directory is not mounted. Attempting to mount..."
mount $nfs_server $dir
if [ $? -eq 0 ]; then
echo "NFS directory successfully mounted. Running command..."
# Replace the following line with the command you want to run when the NFS directory is mounted
cat /mnt/PWM/pwm > /sys/class/hwmon/hwmon3/pwm1
break
else
echo "Mount failed. Waiting for 30 seconds..."
sleep 30
fi
fi
done
Asked chapgpt to write that for me. I'm ok at reading scripting never been good at writing it.