Hi, could help me about same problem?
Inside my /var/lib/Repetier-Server/database/extcommands.xml file I created a two new commands: "Switch light" and "Switch FAN" that work perfectly. (all step are done)
Now I need to switch fan at beginning of print (before extruder on!) but the command @execute Switch FAN (write in event dependent tab) doesn't work.
If I understood, the cause is that "Switch FAN" is a command that I see in menu. (it call a GPIO24.sh batch)
So, to try to solve this issue, I added in extcommands.xml file, after commands end tag, this string:
<execute name="FAN" allowParams="true">/home/pi/Desktop/FAN.sh</execute>
where FAN.sh is a copy of "GPIO24.sh" called from "Switch FAN" (with same procedure for permission and so on..)
but it still does't work..
two questions:
1) My syntax isn't correct? there is some error?
2) to verify command, instead of start print, is possible write "@execute FAN" inside gcode console?
Thank you in advance
Vittorio