Giter Club home page Giter Club logo

gcodeedit's Introduction

GcodeEdit

An executable to modify an indicated GCODE file.

Overview

This initial version works with the Cura slicer software. In subsequent versions, I may add support for other softwares but I would need access to GCODE examples first.

Syntax

This assumes that you've installed it per the instructions below so that it will be in your path.

$ GcodeEdit -t1=190 PathToGcodeFile
# This version will change the extruder's temperature
# setting to 190C.
$ GcodeEdit -info PathToGcodeFile
$ GcodeEdit -ssh PathToGcodeFile
$ GcodeEdit -dryrun PathToGcodeFile
$ GcodeEdit -dryrun -v PathToGcodeFile
$ GcodeEdit -iron=2 PathToGcodeFile

The new dryrun command will remove all heat-, extrusion- and fan-related activities from the file, allowing your printer to go through the motions without making anything.

The new iron command will replay the indicated layer but this time without extruding, effectively ironing that layer so that it's flatter. This might be useful for the second layer, for example, if you're having problems with bed adhesion.

The new ssh command will remove all comments from the file, which is useful in cases where you would like to do some statistics about the size of the file minus comments.

Installation

The installation of this depends upon whether or not you also have a computer based upon the OS X operating system and further, whether or not you already have the Go compiler itself.

Mac

Here are the instructions for installing this executable if you are on an Apple-based computer.

If you just want the executable

$ cd /usr/local/bin      # or anywhere that's in your path
$ curl -o GcodeEdit https://github.com/OutsourcedGuru/GcodeEdit/raw/master/bin/GcodeEdit
$ chmod a+x GcodeEdit

If you have Go installed:

$ cd /usr/local/go/bin
$ sudo curl -o GcodeEdit https://github.com/OutsourcedGuru/GcodeEdit/raw/master/bin/GcodeEdit
$ cd ~/Desktop
$ which GcodeEdit
/usr/local/go/bin/GcodeEdit
$ GcodeEdit -info MyFile.gcode
Slicer:         Cura_SteamEngine 2.3.1
Layers:         239
Print Estimate: 00:05:26
First:          -6
Temp:           187C

Finished.

If you have don't have Go installed:

$ cd /usr/local/bin
$ sudo curl -o GcodeEdit https://github.com/OutsourcedGuru/GcodeEdit/raw/master/bin/GcodeEdit
$ cd ~/Desktop
$ which GcodeEdit
/usr/local/GcodeEdit
$ GcodeEdit MyFile.gcode
Slicer:         Cura_SteamEngine 2.3.1
Layers:         239
Print Estimate: 00:05:26
First:          -6
Temp:           187C

Finished.

Windows or UNIX

Here are the instructions for building this executable if you are on a different operating system.

Install Go

The first step is to install the Go language compiler.

It's then usual to create a Go working folder under your user's profile.

# These two are optional, depending upon whether
# or not you did this during the Go installation
$ mkdir -p ~/go/src
$ cd ~/go/src
$ go get github.com/OutsourcedGuru/GcodeEdit/

This should download everything required and build it for you. Assuming that you installed Go correctly earlier and it's in your path, you should then be able to run it as in the instructions above.

Donate Cryptocurrency
eth-receive btc-receive
Ethereum Bitcoin

gcodeedit's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.