kantlivelong / OctoPrint-GCodeSystemCommands

Define G-Code commands that execute local system commands.
GNU Affero General Public License v3.0
37 stars 20 forks source link

Just not working #11

Closed louw9669 closed 4 years ago

louw9669 commented 6 years ago

I created a script on my Pi that toggles a pin connected to the reset button on the controller board. the script works fine but when I try to use Gxx (xx=any number) to run /usr/local/bin/reset.sh it does nothing. I get an OK in the terminal but no reset. I'm assuming I cant use any Gcode, it would have to be unassigned, correct? what am I doing wrong?

kantlivelong commented 6 years ago

Right now gcode parameters aren't passed but there is a PR open that I intend to merge at some point.

For now just create two gcode commands and either embed the value in the script or put it as the command line in the configuration.

louw9669 commented 6 years ago

I think I may be mistaken on how this works then. what is the OCTO value that we enter? I thought when you type G then the octo number in the terminal it runs the script thats assigned. am I right?

-------- Original Message -------- Subject: Re: [kantlivelong/OctoPrint-GCodeSystemCommands] Just not working (#11) From: Shawn Bruce notifications@github.com Date: Mon, March 05, 2018 9:44 am To: kantlivelong/OctoPrint-GCodeSystemCommands OctoPrint-GCodeSystemCommands@noreply.github.com Cc: louw9669 lou@itsjustbits.com, Author author@noreply.github.com

Right now gcode parameters aren't passed but there is a PR open that I intend to merge at some point. For now just create two gcode commands and either embed the value in the script or put it as the command line in the configuration. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

kantlivelong commented 6 years ago

The number is just the suffix of the virtual GCODE command:

IE: 111 = /bin/ls

Command would be OCTO111

louw9669 commented 6 years ago

I got it now. I'll have to try it when I get a chance. Thanks for the info.On Mar 5, 2018 7:18 PM, Shawn Bruce notifications@github.com wrote:The number is just the suffix of the virtual GCODE command: IE: 111 = /bin/ls Command would be OCTO111

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.