{"id":11971,"date":"2015-07-08T22:20:36","date_gmt":"2015-07-08T22:20:36","guid":{"rendered":"http:\/\/scruss.com\/blog\/2015\/07\/08\/oh-no-hes-messing-about-with-thermal-printers-again\/"},"modified":"2015-07-09T09:18:20","modified_gmt":"2015-07-09T13:18:20","slug":"oh-no-hes-messing-about-with-thermal-printers-again","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2015\/07\/08\/oh-no-hes-messing-about-with-thermal-printers-again\/","title":{"rendered":"Oh no, he&#8217;s messing about with thermal printers again &#8230;"},"content":{"rendered":"<p><a href=\"https:\/\/instagram.com\/p\/45f5_DRUKI\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"insta-image\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2015\/07\/11251006_1464868833810712_1684257450_n.jpg\" alt=\"\" width=\"640\" height=\"640\" \/><\/a><\/p>\n<p>Instagram filter used: Lo-fi<\/p>\n<p><a href=\"https:\/\/instagram.com\/p\/45f5_DRUKI\/\" target=\"_blank\">View in Instagram \u00e2\u2021\u2019<\/a><\/p>\n<p>Scored this cheapo USB printer on eBay: \u00e2\u20ac\u0153<a href=\"http:\/\/www.ebay.ca\/itm\/141678769270?_trksid=p2057872.m2749.l2649&amp;ssPageName=STRK%3AMEBIDX%3AIT\">High-speed 58mm POS Dot Receipt Paper Thermal Printer USB<\/a>\u00e2\u20ac\u009d. It identifies itself as a\u00c2\u00a0<em>CATEX Technolog<\/em> [sic] POS5890U, with a USB vendor:product ID of b000:0410. After a bit of random fiddling, it shows up as <em>\/dev\/usb\/lp0<\/em> on a Raspberry Pi. After turning off CUPS (as it nabs the device, not even letting root near it), you can print images up to 384 dots (48 mm at 8 dots\/mm) wide using the ESC-POS <strong>GS v 0<\/strong> command. You can use my <a href=\"https:\/\/gist.github.com\/scruss\/36c31a9b653779b2b7d1\">esc-pos-image.py<\/a> script if you wish, and if you need a <a href=\"http:\/\/scruss.com\/blog\/2015\/06\/21\/just-in-case-you-were-needing-a-thermal-printer-test-image\/\">test image<\/a> \u00e2\u20ac\u00a6<\/p>\n<p>(<em>The photo is of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Marie_Doro\">Marie Doro<\/a>; proto-goth 1902 style.<\/em>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oh no, he&#8217;s messing about with thermal printers again &#8230;<\/p>\n","protected":false},"author":2,"featured_media":11972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,11],"tags":[2687,922,2824,229],"class_list":["post-11971","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computers-suck","category-photo","tag-instagram","tag-printer","tag-thermal","tag-usb"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2015\/07\/11251006_1464868833810712_1684257450_n.jpg","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-375","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/11971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=11971"}],"version-history":[{"count":3,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/11971\/revisions"}],"predecessor-version":[{"id":11975,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/11971\/revisions\/11975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media\/11972"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=11971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=11971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=11971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}