Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcodpt/rawprinter
An IOT server written in rust for connecting via USB to raw printers.
https://github.com/marcodpt/rawprinter
barcode iot iot-device localserver printer qrcode rawprint rust server thermal-printer zebra zebra-printer
Last synced: about 1 month ago
JSON representation
An IOT server written in rust for connecting via USB to raw printers.
- Host: GitHub
- URL: https://github.com/marcodpt/rawprinter
- Owner: marcodpt
- License: mit
- Created: 2023-10-03T14:08:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T17:35:38.000Z (about 1 year ago)
- Last Synced: 2024-03-29T07:22:43.916Z (9 months ago)
- Topics: barcode, iot, iot-device, localserver, printer, qrcode, rawprint, rust, server, thermal-printer, zebra, zebra-printer
- Language: Rust
- Homepage: https://crates.io/crates/rawprinter
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raw Printer
An IOT server written in rust for connecting via USB to raw printers.## Usage Example
As an example, I will show how to connect the `Zebra` `TLP 2844` printer that
I used to test the server.First you need to identify the `vendor-id` and `device-id` of the printer.
Run the command in the Linux terminal, or similar command in another operating
system.
```
lsusb | grep Zebra
```On my machine I get the following result:
```
Bus 002 Device 008: ID 0a5f:000a Zebra TLP2844
```So to start the server you must run the command:
```
sudo rawprinter --vendor-id 0x0a5f --device-id 0x000a
```If you are compiling manually:
```
sudo ./target/release/rawprinter --vendor-id 0x0a5f --device-id 0x000a
```## Testing
To send a test print I am using [hurl](https://hurl.dev/):
```
hurl --test test.hurl
```## Contributing
It's a very simple project.
Any contribution, any feedback is greatly appreciated.