Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Simple power-off solution for duet

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    1
    1
    182
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pma_undefined
      pma_
      last edited by

      In my HEVO I have SSR installed and one works well but in my converted Artillery Genius I didn't wanted to mess with wires so I decided to use simple remote switch with small script to automatically turn off printer when temperature is below treshold.

      I used Sonoff S26 switch with tasmota installed.

      Then on raspebbery pi I have python script executed every 5 minutes by cron.

      Script is here https://github.com/pmarkiewicz/duet-off
      There is no config file to make this simple. Everything is in one script.

      Conditions to disable printer are:

      • active temperature set to -1
      • printer is idle
      • current temperature for heater with -1 is below 45 deg

      To "install" run
      crontab -e

      and add line
      5 * * * * /usr/bin/python3 /home/pi/duet-off.py

      1 Reply Last reply Reply Quote 1
      • First post
        Last post
      Unless otherwise noted, all forum content is licensed under CC-BY-SA