P-touch 2430 PC: Unterschied zwischen den Versionen

(Anleitung teilweise aktualisiert)
 
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://git.familie-radermacher.ch/linux/ptouch-print.git
  
git clone https://mockmoon-cybernetics.ch/git/ptouch-print.git
 
 
  cd ptouch-print/
 
  cd ptouch-print/
  
autoreconf -i
+
  ./build.sh
  ./configure --prefix=/usr
 
make
 
  
P-touch 2430 PC via MiniUSB an den Rechner anschließen
+
P-touch 2430 PC via Mini USB an den Rechner anschließen
  
 
<gallery>
 
<gallery>
Zeile 61: Zeile 58:
  
 
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 sonnst wird leer gedruckt :(
+
Bild muss S/W sein, sonst wird leer gedruckt :(
  
 
<gallery>
 
<gallery>
Zeile 70: Zeile 67:
 
  ./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 ===
 
=== TODO ===
Zeile 91: Zeile 92:
 
* Einplatinenrechner mit USB und WLAN finden
 
* Einplatinenrechner mit USB und WLAN finden
 
* P-touch 2430 PC aufmachen und Strom für den Einplatinenrechner abzapfen
 
* P-touch 2430 PC aufmachen und Strom für den Einplatinenrechner abzapfen
* Software für WEB OI umschreiben
+
* Software für WEB GUI umschreiben
 
* MQTT - Warum nicht ;)
 
* MQTT - Warum nicht ;)
  
Zeile 97: Zeile 98:
  
 
* Ziel ist ein autonomes Ding zu haben (yeeeesss Batterien) das man einfach auf den Tisch stellt anschaltet.  
 
* 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 OI angesteuert werden.
+
* Daraufhin verbindet sich der Einplatinenrechner mit dem WLAN und kann über die WEB GUI angesteuert werden.
 
* ...
 
* ...
 
* Profit
 
* Profit

Aktuelle Version vom 30. Juli 2022, 19:05 Uhr

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