P-touch 2430 PC: Unterschied zwischen den Versionen

Wu (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Mot (Diskussion | Beiträge)
Anleitung teilweise aktualisiert
 
(3 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          = stable
|status          = stable
|autor          = [[Benutzer:wu|wu]]
|autor          = [[Benutzer:wu|wu]]
|beschreibung    = Labelmaker via usb nutzen (später mal mit webgui)
|beschreibung    = Labelprinter via USB nutzen (später mal mit Web GUI)
|image          = 2430_PC_project_image.jpg
|image          = 2430_PC_project_image.jpg
|imagesize      = 280
|imagesize      = 280
|version        = 1
|version        = 1.1
}}
}}
[[Category:Hardware]]
[[Category:Hardware]]
Zeile 16: Zeile 16:
Netterweise gibt es hier ein Projekt:
Netterweise gibt es hier ein Projekt:


  https://mockmoon-cybernetics.ch/computer/p-touch2430pc/
  https://dominic.familie-radermacher.ch/projekte/ptouch-print/


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


  apt-get install autopoint
  apt install cmake gettext git libgd-dev libusb-1.0-0-dev
apt-get install libusb-1.0-0-dev
apt-get install libgd-dev


  git clone https://mockmoon-cybernetics.ch/git/ptouch-print.git
  git clone https://git.familie-radermacher.ch/linux/ptouch-print.git


  autoreconf -i
  cd ptouch-print/
./configure --prefix=/usr
make


P-touch 2430 PC via MiniUSB an den Rechner anschließen
./build.sh
 
P-touch 2430 PC via Mini USB an den Rechner anschließen


<gallery>
<gallery>
Zeile 42: Zeile 39:
Datei:2430_PC_output_all.jpg
Datei:2430_PC_output_all.jpg
</gallery>
</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"
==== 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"


./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).


<gallery>
<gallery>
Zeile 49: Zeile 54:
</gallery>
</gallery>


Druckt Text zweizeilig in hübscher Schriftart (sollte richtig geschrieben werden und installiert sein).
==== 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.
Bild muss S/W sein, sonst wird leer gedruckt :(


<gallery>
<gallery>
Zeile 57: Zeile 64:
</gallery>
</gallery>


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


folgende Optionen sind verfügbar:
Folgende Optionen sind verfügbar:


  usage: ./ptouch-print [options] <print-command(s)>
  usage: ./ptouch-print [options] <print-command(s)>
  options:
  options:
        --font <file>           use font <file> or <name>
--debug enable debug output
        --writepng <file>       instead of printing, write output to png file
--font <file> use font <file> or <name>
                                This currently works only when using
--fontsize <size> Manually set fontsize
                                EXACTLY ONE --text statement
--writepng <file> instead of printing, write output to png file
  print-commands:
  print commands:
        --image <file>         print the given image which must be a 2 color
--image <file> print the given image which must be a 2 color
                                (black/white) png
(black/white) png
        --text <text>           Print 1-4 lines of text.
--text <text> Print 1-4 lines of text.
                                If the text contains spaces, use quotation marks
If the text contains spaces, use quotation marks
                                around it.
around it.
        --cutmark               Print a mark where the tape should be cut
--cutmark Print a mark where the tape should be cut
        --fontsize              Manually set fontsize
--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

Labelprinter P-touch 2430 PC

Status: stable

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