My Raspberry Pi controls power sockets through 2 relays (one for the printer and one for a light). I have been trying to control the GPIO through telegram.
Fortunately, it is possible to use /gcode command in octoprint-telegram, for this I have installed GCodeSystemCommands.
I wrote a bash file with the following:
#!/usr/bin/bash
gpio -g write 18 0
Tried running the bash file through shell and it worked, but not when trying it via telegram
I tried both;
/gcode_18
/gcode_OCTO18
Am I missing something?