Editing Labelprinter

From Chaosdorf Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 12: Line 12:
|has label=No
|has label=No
}}
}}
Label all the things: https://labello.chaosdorf.space/  aus dem Chaosdorfnetzwerk. Alternativ lässt sich der Drucker auch vom eigenen Laptop mittels https://github.com/chaosdorf/labello/ bespielen.
Der Labelprinter druckt auf 62 mm breites Papier endlos aus.
Der Labelprinter druckt auf 62 mm breites Papier endlos aus.
Wir nutzen den Drucker über seine LAN-Schnittstelle; die WLAN-Verbindung ist nicht konfiguriert. Falls der Drucker nicht erreichbar ist und die grüne WIFI-LED leuchtet, wurde er versehentlich auf WLAN umgestellt. In dem Fall: Den kleinen Knopf darunter für einige Sekunden drücken, bis die LED ausgeht. Dann sollte labello wieder funktionieren.


== wtf ==
== wtf ==


Man muss keine grauenhafte Spezial-Software nutzen. Es gibt verschiedene Open Source Projekte, die das spezifische Rasterformat für den Drucker erzeugen können. Diese lassen sich per Socket an den Drucker übertragen.
Man muss keine grauenhafte Spezial-Software nutzen. Es gibt verschiedene Open Source Projekte, die das spezifische Rasterformat für den Drucker erzeugen können. Diese lassen sich per Socket an den Drucker übertragen.
Nutze: [https://labello.chaosdorf.space labello]<br>
GIT: [https://github.com/chaosdorf/labello/ labello]


== Specs ==
== Specs ==
Line 32: Line 24:
  - Technologie: Thermopapier
  - Technologie: Thermopapier


== komplizierteres drucken? ==
== Beispiel ==


Möchtest du etwas drucken, was layouttechnisch komplizierter ist?
Installiere [https://github.com/fozzle/python-brotherprint Brotherprint].


Probiere mal [https://prittstift.chaosdorf.space/ prittstift] aus, das [https://github.com/telegnom/labello andere labello]
Nutze: [https://github.com/chaosdorf/labello/ labello]
<pre>


== Beispielcode für manuelles Gefrickel ==
#!/usr/bin/env python2


Installiere [https://github.com/chaosdorf/labello labello].
import socket
 
from brotherprint import BrotherPrint
<pre>
#!/usr/bin/env python3


from labelprinter import Labelprinter
f_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
f_socket.connect(('172.22.27.26',9100))
printjob = BrotherPrint(f_socket)


class Conf:
printjob.command_mode()
    PRINTER_HOST = "10.2.7.1"
printjob.initialize()
    PRINTER_PORT = 9100
printjob.bold('on')
    PRINTER_TIMEOUT = 60
printjob.send('Label printer is lent by Mic <nomaster@chaosdorf.de>. Use freely and notify if annoying. Put into Hackcenter.')
printjob.print_page('full')


printer = Labelprinter(Conf)
printer.printText('Label printer is lent by Mic <nomaster@chaosdorf.de>. Use freely and notify if annoying. Put into Hackcenter.', bold='on')
</pre>
</pre>
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see Chaosdorf Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)