Skip to content

hikalium/sr5900p

Repository files navigation

sr5900p

A command-line interface for SR5900P tape printer.

# Install
make install

# Preview - preview.png will be generated after each commands:
sr5900p print --dry-run --width 36 --test-pattern
sr5900p print --dry-run --width 12 --test-pattern
sr5900p print --dry-run --width 12 --qr-text 'Hello, world!'
sr5900p print --dry-run --printer ${PRINTER_IP} --qr-text 'Hello, world!' # width auto detect

# Detect your printer's IP with avahi-browse:
sudo apt-get install -y avahi-utils
PRINTER_IP=`avahi-browse -alrpt | grep -E '^=.*SR5900P' | cut -d ';' -f 8`

# OR, you can manually set the IP:
PRINTER_IP=${YOUR_PRINTER_IP}

# Let's print!
sr5900p print --printer ${PRINTER_IP} --test-pattern
sr5900p print --printer ${PRINTER_IP} --qr-text 'Hello, world!'

License

MIT

Author

hikalium

Special Thanks

Mine02C4 (for the initial analysis of the protocol )

About

A command line tool for TEPRA SR5900P

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published