P-touch 2430 PC

Version vom 30. Juli 2022, 19:05 Uhr von Mot (Diskussion | Beiträge) (Anleitung teilweise aktualisiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Crystal Clear action run.png
Labelprinter P-touch 2430 PC

Status: stable

2430 PC project image.jpg
Beschreibung Labelprinter via USB nutzen (später mal mit Web GUI)
Autor: wu
Version 1.1
PayPal Spenden für P-touch 2430 PC


Setup

Netterweise gibt es hier ein Projekt:

https://dominic.familie-radermacher.ch/projekte/ptouch-print/

Das Projekt per Git clonen, vorher die passenden libs installieren dann kompillieren

apt install cmake gettext git libgd-dev libusb-1.0-0-dev
git clone https://git.familie-radermacher.ch/linux/ptouch-print.git
cd ptouch-print/
./build.sh

P-touch 2430 PC via Mini USB an den Rechner anschließen

Nutzung

Einzeilig

./ptouch-print --font "Comic Sans MS:bold" --text "Sorry for your loss"

Zweizeilig

./ptouch-print --font "Comic Sans MS:bold" --text "Sorry" "for your loss"

Dreizeilig

./ptouch-print --font "Comic Sans MS:bold" --text "Sorry" "for your" "loss"

Vierzeilig

./ptouch-print --font "Comic Sans MS:bold" --text "Sorry" "for" "your" "loss"

Druckt Text zweizeilig in hübscher Schriftart (sollte richtig geschrieben werden und installiert sein).

Bild

./ptouch-print --image backspacelogo.png

Druckt entweder das entsprechende Bild oder gibt die Größe des Bands in PX zurück, wenn das Bild zu groß ist. Bild muss S/W sein, sonst wird leer gedruckt :(

commands

./ptouch-print --help 

Folgende Optionen sind verfügbar:

usage: ./ptouch-print [options] <print-command(s)>
options:
	--debug			enable debug output
	--font <file>		use font <file> or <name>
	--fontsize <size>	Manually set fontsize
	--writepng <file>	instead of printing, write output to png file
print commands:
	--image <file>		print the given image which must be a 2 color
				(black/white) png
	--text <text>		Print 1-4 lines of text.
				If the text contains spaces, use quotation marks
				around it.
	--cutmark		Print a mark where the tape should be cut
	--pad <n>		Add n pixels padding (blank tape)
other commands:
	--version		show version info (required for bug report)
	--info			show info about detected tape
	--list-supported	show printers supported by this version

TODO

  • Einplatinenrechner mit USB und WLAN finden
  • P-touch 2430 PC aufmachen und Strom für den Einplatinenrechner abzapfen
  • Software für WEB GUI umschreiben
  • MQTT - Warum nicht ;)

Zielzustand

  • Ziel ist ein autonomes Ding zu haben (yeeeesss Batterien) das man einfach auf den Tisch stellt anschaltet.
  • Daraufhin verbindet sich der Einplatinenrechner mit dem WLAN und kann über die WEB GUI angesteuert werden.
  • ...
  • Profit