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 40: | Line 40: | ||
== Beispielcode für manuelles Gefrickel == | == Beispielcode für manuelles Gefrickel == | ||
Installiere [https://github.com/ | Installiere [https://github.com/fozzle/python-brotherprint Brotherprint]. | ||
<pre> | <pre> | ||
#!/usr/bin/env | #!/usr/bin/env python2 | ||
from | import socket | ||
from brotherprint import BrotherPrint | |||
f_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |||
f_socket.connect(('172.22.27.26',9100)) | |||
printjob = BrotherPrint(f_socket) | |||
printjob.command_mode() | |||
printjob.initialize() | |||
printjob.bold('on') | |||
printjob.send('Label printer is lent by Mic <nomaster@chaosdorf.de>. Use freely and notify if annoying. Put into Hackcenter.') | |||
printjob.print_page('full') | |||
</pre> | </pre> |