July 23, 2024

hopeforharmonie

Step Into The Technology

Get GitHub Tickets IRL With A Raspberry Pi And A Receipt Printer

2 min read

[ad_1]

Thermal receipt printers are locating their way into all kinds of tasks that are properly beyond the level-of-sale environment that they commonly inhabit. And when we applaud all the resourceful and artistic makes use of hackers have uncovered for these little gems, this GitHub actual physical ticket printer has to be the ideal use for just one yet.

According to [Andrew Schmelyun], observing a rapidly-foods purchase pop up on a thermal printer was the inspiration for this build. Sustaining around a single hundred GitHub repos as he does, it’s easy for the information of any a person bug report or characteristic ask for to get misplaced in the swarm of sticky notes that [Andrew] previously utilized to continue to keep monitor of his operate. To make it take place, he teamed an Epson thermal printer up to a Raspberry Pi Zero W and labored out the particulars of sending knowledge to the printer using PHP. Luckily, there is a library for that — the splendor of GitHub.

With the “Hello, Earth!” bit out of the way, [Andrew] turned his notice to connecting to GitHub. He set up some webhooks on the GitHub aspect to deliver a Article ask for every single time an situation is reported on just one of his repos. The POSTs are despatched by way of ngrok to a PHP world wide web server jogging on the Pi, which formats the facts and sends the textual content to the printer. There’s a limited movie in the tweet down below.

Between the audio of the printer doing the job and the actual useless-tree ticket, it’ll be challenging for [Andrew] to miss concerns now. We have witnessed thermal printers stuffed into cameras, utilised to deliver photos to Grannie, and even watched them dedicate suicide slowly, but we say hats off to [Andrew] for his stable work ethic and a entertaining new way to place a receipt printer to use.



[ad_2]

Source url

hopeforharmonie.co.uk | Newsphere by AF themes.