We use this script in local mode to have a quick emergency halt possibilty. Never use this over internet. Only use local network connection!

Download portable AutoHotKey

https://www.autohotkey.com/download/

https://github.com/Lexikos/AutoHotkey_L/releases

Extract the files to some safe place

Download curl.exe for Windows

https://curl.haxx.se/windows

Create script directory and files

create TrikarusEmergencyStop.ahk

^j::
; use "`" to escape percent sign!
; you may need to apply this script to your firewall rules to work correctly because there's an outgoing connection
Run,curl.exe "https://hangdevice:3345/printer/api/Trikarus?apikey=THEKEY&a=emergencyStop&data=" --max-time 1 --insecure

MsgBox, Triggered emergency stop! Please wait ~15 seconds until Duet 2 recovered
return

(info) This script uses curl command to send emergency halt command to Repetier Server (USB) connection. That means it will also work even if Duet is not reachable over ethernet (which sometimes fails).

Put curl.exe and curl-ca-bundle.crt in script dir

Create an icon file (optional step)

Compile TrikarusEmergencyStop.exe

Run Ahk2Exe.exe to configure the output conversion parameters

Use it

It will listen to CTRL + J

(info) You might need to allow firewall exceptions to use this!

If it works it will reset the controller accordingly

  • No labels
Write a comment…