P-touch 2430 PC: Unterschied zwischen den Versionen
Wu (Diskussion | Beiträge) |
Mot (Diskussion | Beiträge) Anleitung teilweise aktualisiert |
||
| (6 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
{{Infobox Projekt | {{Infobox Projekt | ||
|name = P-touch 2430 PC | |name = Labelprinter P-touch 2430 PC | ||
|kategorie = Hardware | |kategorie = Hardware | ||
|status = | |status = stable | ||
|autor = [[Benutzer:wu|wu]] | |autor = [[Benutzer:wu|wu]] | ||
|beschreibung = | |beschreibung = Labelprinter via USB nutzen (später mal mit Web GUI) | ||
|image = | |image = 2430_PC_project_image.jpg | ||
|imagesize = 280 | |imagesize = 280 | ||
|version = | |version = 1.1 | ||
}} | }} | ||
[[Category:Hardware]] | [[Category:Hardware]] | ||
| Zeile 16: | Zeile 16: | ||
Netterweise gibt es hier ein Projekt: | Netterweise gibt es hier ein Projekt: | ||
https:// | https://dominic.familie-radermacher.ch/projekte/ptouch-print/ | ||
Das Projekt per Git clonen, vorher die passenden libs installieren dann kompillieren | |||
apt | apt install cmake gettext git libgd-dev libusb-1.0-0-dev | ||
git clone https:// | git clone https://git.familie-radermacher.ch/linux/ptouch-print.git | ||
cd ptouch-print/ | |||
P-touch 2430 PC via | ./build.sh | ||
P-touch 2430 PC via Mini USB an den Rechner anschließen | |||
<gallery> | |||
Datei:2430_PC_setup.jpg | |||
</gallery> | |||
=== Nutzung === | === Nutzung === | ||
<gallery> | |||
Datei:2430_PC_output_all.jpg | |||
</gallery> | |||
==== 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" | ./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). | Druckt Text zweizeilig in hübscher Schriftart (sollte richtig geschrieben werden und installiert sein). | ||
<gallery> | |||
Datei:2430_PC_output_text.jpg | |||
</gallery> | |||
==== Bild ==== | |||
./ptouch-print --image backspacelogo.png | ./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. | 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 | Bild muss S/W sein, sonst wird leer gedruckt :( | ||
<gallery> | |||
Datei:2430_PC_output_image.jpg | |||
</gallery> | |||
==== commands ==== | |||
./ptouch-print --help | ./ptouch-print --help | ||
Folgende Optionen sind verfügbar: | |||
usage: ./ptouch-print [options] <print-command(s)> | usage: ./ptouch-print [options] <print-command(s)> | ||
options: | 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 | 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 | |||
Aktuelle Version vom 30. Juli 2022, 17:05 Uhr
Status: stable | |
|---|---|
| Beschreibung | Labelprinter via USB nutzen (später mal mit Web GUI) |
| Autor: | wu |
| Version | 1.1 |
| PayPal | |
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

