Coder Social home page Coder Social logo

fearful-symmetry / zebrasend Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 79 KB

A Rust CLI tool for sending commands to Zebra printers via ZPL and SGD

License: GNU General Public License v3.0

Rust 96.00% Zimpl 4.00%
labeling printing-engine zebra-printer zpl

zebrasend's Introduction

Zebrasend

zebrasend is a small rust utility for sending commands and print jobs to Zebra label printers via SGD, FTP jetdirect and ZPL.

Config

zebrasend uses a small config file to set the printer URLs and style settings, as well as style and print settings. See zebrasend.toml for a maximal example.

Usage

zebrasend --help
zebrasend 0.1.0
A CLI utility for sending commands to zebra printers via CUPS

USAGE:
    zebrasend [OPTIONS] <SUBCOMMAND>

OPTIONS:
    -c, --config-file <FILE>    
    -h, --help                  Print help information
    -p, --printer <PRINTER>     Printer from the specified config to use [default: default]
    -s, --style <STYLE>         Style from the specified config to use [default: default]
    -V, --version               Print version information

SUBCOMMANDS:
    file        Send a ZPL file to the printer
    ftp         send and delete files via FTP
    help        Print this message or the help of the given subcommand(s)
    message     Send a string message to the printer. Individual words will be printed to new
                    lines, use quotes to print on a single line
    printers    Print a list of configured printers
    sgd         Send SGD commands to printer via telnet
    styles      Print a list of configured styles

Examples

# Send a ZPL or NRD file to a printer
zebrasend file home_address.zpl

# Send a ZPL file via FTP
zebrasend ftp put home_address.zpl

# Send a text message to the printer. Each word will be printed on a new line, unless surrounded by quotes.
zebrasend message "my favorite printer is the" GX430t

# Send a SGD command to the printer
zebrasend sgd get memory.ram_size
"2054496 Bytes"

ZPL files

The zpl_files folder contains a number of example ZPL files, including a variety of barcodes. Note that most of these files were developed and tested on a 300DPI printer with 3"x3" paper.

TODO

zebrasend's People

Contributors

fearful-symmetry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.