mattgrayyes , Englisch
@mattgrayyes@chaos.social avatar

For @emf, I’m making Mastodot, which in theory prints toots that are hashtagged for the event!

docpop ,
@docpop@mastodon.social avatar

@mattgrayyes @emf this is wonderful and reminds me of the experiments around the early days of Twitter. I love this energy.

geofflankow ,

@mattgrayyes Will you be feeding it straight into a shredder this time?

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

You wouldn't believe how long I was sending escape commands at the printer before i thought to look for a library...

Thunderbolt93 ,
@Thunderbolt93@chaos.social avatar

@mattgrayyes if it looks stupid but works it ain't stupid

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

Great, Mastodot seems to be working all by itself now!
Let’s see if I get some time/energy over the next few days to get it to do some formatting and image printing!

(It’s turned off now, don’t spam the emf hashtags to make it print plz)

alda ,
@alda@topspicy.social avatar

@mattgrayyes That gave me an idea: The same but baudot shortwave broadcast.

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

I did manage to successfully print images yesterday, I just need to write a more complicated print spooler to deal with it.

Yes. This is the second time I’ve written a print spooler in JavaScript.

Noisy dot matrix printer prints a small picture of Brian Blessed, a larger version of the same photo, then feeds through so you can see both of them and the text “!I’m Brian Blessed”

neverpanic ,
@neverpanic@chaos.social avatar

@mattgrayyes I'm wondering whether that can be improved by throwing some dithering at those images, for more grayscale bandwidth.

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

The hard bit here is that, like all ESC/POS libraries, they can’t speak in my LX-350’s reduced subset of ESC/P commands, it’s expecting to control a receipt printer.
It’s mostly fine. But with things like image printing, I’ve had to bodge the library to get some line spacing.
And I haven’t got the text size options working yet, but I think it’s sending slightly more advanced commands for it so I’ll bodge around it.

steve ,
@steve@prattle.org.uk avatar
mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

It’s formatting time!
Had to fiddle a bit to get the line breaking working between words rather than in the middle of them.

Wouldn’t have got this far without help from the amazing @thisisjofrank!

alifeee ,
@alifeee@mastodon.social avatar

@mattgrayyes

been seeing your posts about printing just agyer being given a thermal printer by @yaxu

it is also my turn to figure out how to echo things to USB... looks like you are doing it to "lp0" which I also have!

or find a library...

picture of receipt printer

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

Found more things im having to do manually. Escape sequences for different text formatting

zxguesser ,
@zxguesser@oldbytes.space avatar

@mattgrayyes This makes me want to play with my dot matrix again. 😍​
They're fiddly, but I do love printer escape sequences. It's so satisfying the way you can send some bytes down a wire and double struck italic text just happens.
Sending a PDF to modern printer is convenient, but it's so ESC 4 ESC G boring 😀​

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

Spent the evening rewriting my bodgy test code into something more useable, and in such a way I can format the toots. Up until now it could only dump the whole toot as a plaintext string.
I’ve got it logging all the separate bits to the console, so tomorrow’s job is to send them to the printer with formatting.
Then see if the library can “just deal with” images from a URL or if I’m going to have to download and convert first.

ddlyh ,
@ddlyh@topspicy.social avatar

@mattgrayyes
How are you dealing with federation, given that your machine will presumably only see toots known about by your instance? I would have thought a gup.pe group or other account mention system would work better than a hashtag as then you can use any toot that arrives at the account inbox?

mattgrayyes OP , (Bearbeitet )
@mattgrayyes@chaos.social avatar

Yeeeeesssss! It bloody works!
Just got to strip the html tags out of the toot content, so it’s just text, and it’s basically done! #mastodot

thomastospace ,
@thomastospace@phpc.social avatar

@mattgrayyes That's so epic! Also love that the alt text gets added even though it would be quite useless in this case 😅

thejpster ,
@thejpster@hachyderm.io avatar

@mattgrayyes very nice! Speaking raw ESC/P has been on my “to learn” list for a long time.

LapTop006 ,
@LapTop006@aus.social avatar

@mattgrayyes am wondering how well control characters pass through, can I toot music with the bell, ASCII art, etc

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

See you at EMF, little printer!

mattgrayyes OP ,
@mattgrayyes@chaos.social avatar

Yes it was working. No it’s not working now. That’s tomorrow’s problem.

nowster ,
@nowster@fosstodon.org avatar

@mattgrayyes Was a dot matrix printer, now it don't matrix? Best of luck!

IcyPalm ,
@IcyPalm@mastodon.social avatar

@mattgrayyes club-mate 😍

anathem ,
@anathem@kif.rocks avatar

@mattgrayyes At least the toot printer at #GPN22 is working, blowing toots all over the hackcenter as they are written. (Some people try and catch their own toots here ^^)

zymurgic ,
@zymurgic@mastodon.online avatar

@mattgrayyes @thisisjofrank You've got one of those fancy ones that does both double height and double width text

steve ,
@steve@prattle.org.uk avatar

@mattgrayyes We added image printing to the till receipt printers for this event.

(Don't mind the "EMF 2022", we used last event's till database to test because this event's doesn't have any transactions in it yet.)

markp ,
@markp@mastodon.me.uk avatar

@mattgrayyes I made a huge mess in the bar with a thermal receipt printer in previous years that looked for mention of "emfcamp" via Twitter. That was fun! I peaked with the photobooth in 2018 which printed a LOT of pictures over the weekend and always seemed busy (when it wasn't suffering a paper jam!). Might have to make a more portable version and resurrect it sometime .

ij ,
@ij@HoFra.rocks avatar

@mattgrayyes that reminds me
of The Cuckoo’s Egg, where the guy puts printers between the Server and the Uplink, to print every Traffic and See what the Hacker actually did...

feralfive ,
@feralfive@mastodon.social avatar
galaxydinodragon ,
@galaxydinodragon@social.linux.pizza avatar

@mattgrayyes is this gonna be similar to YouTube Livestream comments getting printed then shredded? That was fun

socksinspace ,
@socksinspace@sueden.social avatar

@mattgrayyes @emf Is that the one from "We Shred Your Comments, Live" ?

wrosecrans ,
@wrosecrans@mstdn.social avatar

@mattgrayyes @emf So, who is gonna be the first person to work out the timing of the dot matrix printer to get it to play the rhythm of Never Gonna Give You Up while printing?

rickscully ,
@rickscully@mastodon.social avatar

@mattgrayyes yeah, no one will do rude things. Never. Nope.

foo ,
@foo@fosstodon.org avatar

@mattgrayyes @emf Sweet! I've got a receipt printer in my home office which is connected to @lpd and will print to it when you mention it.
https://fosstodon.org/@foo/110289002246443522

thomastospace ,
@thomastospace@phpc.social avatar

@mattgrayyes @emf Is this thing on?

chthonicionic ,
@chthonicionic@mastodon.online avatar

@mattgrayyes @emf does it then feed into Fedi-shreddi?

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine