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

Explore adding variables to command definitions #3

Closed kantlivelong closed 4 years ago

kantlivelong commented 7 years ago

Title explains it all.

Ref #2

b-morgan commented 6 years ago

I'll second this request! I have a Pi Hat to control external 12v fans and I want the speed of those fans to mirror M106 S (and M107 fan off) with = 0-255.

pyr0ball commented 5 years ago

Thirded.

I created a python script to control a NeoPixel strip using command line arguments:

Example: sudo ./NeoPixel_Control.py -m -r 150 -g 150 -b 150

kantlivelong commented 4 years ago

So this is now in 1.0.0. Arguments are passed to commands as environment variables. If you are calling a binary directly you will need to write a wrapper to parse the arguments safely.