Giter Club home page Giter Club logo

plottool's Introduction

plottool

This script is intended to be used with a HPGL plotter/cutter connected over a serial port.

It will split the file into blocks <=10kB to prevent the plotter from choking on data, as long as data is waiting, the tool will resume with the next part after user input.

This script has been tested with a Cogi CT-630 cutting plotter @Stratum0: https://stratum0.org/wiki/Cogi_CT-630

It also works on macOS, but less reliably so prepare for occasional job cancellation.

Dependencies

For Debian-based Linux distributions (Ubuntu, Mint): sudo apt-get install python3-serial python3-wxgtk4.0 python3-numpy (since Debian buster/testing).

For Arch Linux: sudo pacman -S python-numpy python-pyserial, and install wxpython-phoenix-git from AUR.

For macOS you can use homebrew and pip to install the dependencies: pip install numpy pyserial && brew install wxpython.

Usage

usage is simple:

./plottool file.hpgl will simply print the data to /dev/ttyUSB0

./plottool -p /dev/ttyUSB4 file.hpgl will do the same but to port /dev/ttyUSB4

Note that on macOS, tty-devices follow another naming convention. Look for something like /dev/tty.usbserial-14430 or /dev/cu.usbserial-14430. Both should work equally, but some users reported better results with one or the other.

plottool's People

Contributors

comawill avatar doommaster avatar healthhazard avatar lenaschimmel avatar rohieb avatar smithchart avatar

Watchers

 avatar

Forkers

stratum0 tnias

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.