Hallo zusammen ,
gibt es eine Möglichkeit , auf dem Raspi (4B) , neueste Repetier-Srever Update, die Temperatur der Nuozzle auszulesen ?
Ich würde gern den Raspi bei erreichen von unter 50Grad Nozzle Temperatur herunterfahren , kann mir hier jemand weiterhelfen ?
Ich hab davon ehrlich gesagt keinen Plan.....
Daher hab ich es mal über den ChatGP versucht (wollte ich ohnehin mal probiern)
Folgendes meinte dieser:
Here's the complete script with the specific server IP and printer name:
<div>#!/bin/bash
# Wait for the printer to cool down
while true; do
temperature=$(curl http://192.168.xxx.xxx:3344/printer/tool0/Sovol | grep -oP '"actual":\K\d+')
if [ <span>"$temperature"</span> -lt 50 ]; then
break
fi
sleep 60
done
# Shut down the server
sudo shutdown -h now
</div>
This script checks the actual temperature of the nozzle (tool0
) for the printer named Sovol
on the server with IP address 192.168.xxx.xxx
. It waits until the temperature is below 50°C, and then shuts down the server using the sudo shutdown -h now
command.
Dieses Comando funktioniert aber nicht , leider.
Danke schonmal für eure Hilfe.