HotWing-cli is a is a command-line-based Gcode generator for cutting model aircraft wings on a 4-axis CNC foam cutter (like this). The user defines wing design parameters in a config file, which is then parsed by and converted to gcode by HotWing-cli. HotWing-cli is built on the hotwing-core library.
- Make sure you have Python and Pip installed.
- Download the repository to your computer.
- Navigate to the repository folder
cd /my/folder/hotwing-cli
in your terminal. - Install Dependencies
pip install -r requirements.txt
- Install HotWing-CLI
pip install .
The stand-alone binaries are an easy way to get started. The binaries have scripts that allow you to run the software without using the command line. If you want to avoid the command like see the article on avoiding the command line.
Windows | OSX | Linux |
- Install HotWing-cli per the Installation Instructions
- Generate a config file by running
hotwing-cli init myconfig.cfg
or copy the sample config file. - Modify the config file. See the Config File Options section for details.
- Run HotWing
hotwing-cli parse path-to-my-config.cfg
.
The previous command output the Gcode to the screen but we can output it to a file.
# You can redirect the output
$ hotwing-cli parse path-to-my-config.cfg > saved-gcode.ngc
# Or specify an output file with the -o parameter
hotwing-cli parse path-to-my-config.cfg -o saved-gcode.ngc
For a more detailed walk through see this tutorial
$ hotwing-cli --help # see additional options
hotwing-cli COMMAND FILE [OPTION]...
Examples
$ hotwing-cli init NEW.CFG # create a new config
$ hotwing-cli parse --help # see parse command help
$ hotwing-cli init NEW.CFG # create a new config file
-o Output file to write to. If not specified, the output will be written to stdout.
-d Turn on debugging. The output will be tab separated values instead of gcode.
-s Side to cut - 'l' or 'r'. (default='r')
-t Trims the wing panel before cutting. Specifies the section of wing to cut, starting at the root to the tip. For example '10-20' will cut a section starting at 10 units from the root and ending 20 units from the root (total width of 10 units).
-p The number of points to interpolate/cut each profile surface (top/bottom). (default=200)
-l Distance to place the panel from the left machine pillar. If not specified, the panel will be centered between the machine pillars.