Skip to content

angelside/zebra-serial-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zebra Serial Reader CLI

maintenance-status Go Linux Windows License

The zebra-serial-reader finds serial numbers and product names of Zebra printers on the network via IP addresses.

Tested on

  • Windows
  • Linux
  • MacOS

TODO

  • Test if we can awake printer from sleep.

📦 Installation

No installations, it's a single portable binary file. You can put in your binary path and use it from anywhere.

🔨 Usage

  1. Download or build the binary file.
  2. Create a data.json file next to the binary file following the template below. The first variable can be anything that identifies the printer. Second variable is printer's IP address.
{
  "OFFICE_1": "127.0.0.1",
  "OFFICE_2": "127.0.0.2",
  "OFFICE_3": "127.0.0.3"
}
  1. Run the binary without any parameters. It will read the data.json file, print the result to the console, write the results to the __printers.csv file, and then exit.
.\zebra-serial-reader.exe

🚀 Build from source

With task Task

task build

With go build

go build -v -ldflags="-s -w" -o ./__dist/zebra-serial-reader.exe ./cmd/.

📋 Sample results

== Zebra serial number extractor

[OK] Location: OFFICE_1, Serial number: D3Jxxxxxx, Product: ZD620, IP: 127.0.0.1
[OK] Location: OFFICE_2, Serial number: D3Jxxxxxx, Product: ZD620, IP: 127.0.0.2
[ERROR] Location: OFFICE_3, IP: 127.0.0.4

CSV file created successfully: __printers.csv

🎯 Tested Zebra printer models

  • ZD 620
  • ZD 621
  • GK 420d

🤝 Contributing

Before contributing issues or pull requests, could you review the Contributing Guidelines first?

🤩 Support

💙 If you like this project, give it a ⭐ and share it with friends!

🏛️ License

This project is open-sourced software licensed under the MIT license.

About

The zebra-serial-reader finds serial numbers and product names of Zebra printers on the network via IP addresses

Resources

License

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages