GithubHelp home page GithubHelp logo

simonwaldherr / ups Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 6.0 23 KB

Uncommon Printing System

License: MIT License

Zimpl 1.36% Go 98.64%
printing printer print zpl zpl-programming-language go golang xml hacktoberfest-accepted labeling-tool

ups's Introduction

UPS - Uncommon Printing System

a simple printing system for labels

GoDoc

I wrote the Uncommon Printing System a long time ago to replace a proprietary printing system called NiceWatch by NiceLabel. Don't get me wrong, Nice Label Designer is still the best WYSIWYG Label Editor on Earth, but NiceWatch is slow and unstable. The UPS is programmed to support Label Templates designed with NiceLabel Designer and print them on ZPL compatible printers.

This repository contains a refactored version of UPS. It only contains general purpose features, features like:

  • handling invalid XML-Files from SAP systems
  • reload missing data in XML-Files from SAP systems
  • save log-data to a BI (business intelligence) system
  • transfer material master data to a sub-system
  • load printer data from a SAP database table

are not included.

I use UPS in a customized version to print up to 10000 labels daily. UPS can also do a lot more with ease, but in the current case of application it is not needed. You can even run UPS on a Raspberry Pi.

Currently I only print on Zebra ZM400, Zebra ZT410, Zebra QL 420 (plus) and Zebra QLn 420, but I plan to extend the UPS to support non ZPL printers as well.

Test it

to test the application you can simply follow these steps:

  1. go get simonwaldherr.de/go/ups/cmd/ups
  2. ups &
  3. nc -l 9100 > zpl &
  4. cat xmlreq.xml | nc localhost 30000
  5. kill -9 $(pidof ups)

Why

Why what? Why I wrote the application? Because I did not want to bother anymore with an unstable proprietary software! I wasted several hours a week managing the NiceWatch system and keeping it running. I had much better things to do and that's why I wrote UPS.

Why I made some choices the way I made them? Mostly there is also a reasonable cause - you want an example? There is a function called cdatafy which adds CDATA-sections to the XML-string. You may ask why on earth someone would need such a function. Because many SAP developers don't know anything about XML in general and XML marshalling in specific, so they just concatenate strings and as result they create invalid XMLs. It seems like the favorite word of most SAP consultants is standard, but when it comes to actual W3C, WHATWG, IETF, ISO, โ€ฆ standards, they do not care.

But

If you only need a tool to print images on a Label-printer you can use this tool:
SimonWaldherr/zplgfa - GitHub

License

MIT

ups's People

Contributors

simonwaldherr avatar yaserazfar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.