Merge pull request #2 from rstorr/avoid_time_after
Avoid time after
|2 weeks ago|
|cmd/ups||7 months ago|
|.gitignore||1 year ago|
|.travis.yml||7 months ago|
|LICENSE||7 months ago|
|README.md||4 months ago|
|codelingo.yaml||1 month ago|
|http.go||11 months ago|
|load.go||7 months ago|
|structs.go||11 months ago|
|ups.go||1 month ago|
a simple printing system for labels
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:
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.
to test the application you can simply follow these steps:
go get simonwaldherr.de/go/ups/cmd/ups
nc -l 9100 > zpl &
cat xmlreq.xml | nc localhost 30000
kill -9 $(pidof ups)
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.