Adding the domoticz support?
Example of a personal modification of the script for Domoticz integration. Works well but the script is not clean.
Contact me to see for a broadcast of the script.
Ajout du support domoticz ?
Exemple d'une modification perso du script pour intégration Domoticz. Fonctionne bien mais le script n'est pas propre.
Contactez-moi pour voir pour une diffusion du script.

idx_status_printer_state="294"
idx_status_progress="293"
idx_status_time_printing="295"
idx_status_time_remaining="296"
idx_status_temp_nozzle="291"
idx_status_temp_bed="292"
api_domoticz temp $idx_status_temp_nozzle $status_temp_nozzle
api_domoticz temp $idx_status_temp_bed $status_temp_bed
if [ "$jobstatus" == "offline" ]; then
status_progress="0"
elif [ ! -z "$jobstatus" ]; then
status_progress="100"
fi
api_domoticz custom_sensor $idx_status_progress $status_progress
status_printer_state_fr=$(echo "$status_printer_state_fr" | sed 's/ /%20/g')
api_domoticz custom_sensor $idx_status_printer_state "$status_printer_state_fr"
# Convertir le temps restant en minutes avec décimales
status_time_printing_minutes=$(echo "scale=2; $status_time_printing / 60" | bc)
status_time_remaining_minutes=$(echo "scale=2; $status_time_remaining / 60" | bc)
api_domoticz custom_sensor $idx_status_time_printing $status_time_printing_minutes
api_domoticz custom_sensor $idx_status_time_remaining $status_time_remaining_minutes
Adding the domoticz support?
Example of a personal modification of the script for Domoticz integration. Works well but the script is not clean.
Contact me to see for a broadcast of the script.
Ajout du support domoticz ?
Exemple d'une modification perso du script pour intégration Domoticz. Fonctionne bien mais le script n'est pas propre.
Contactez-moi pour voir pour une diffusion du script.