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

Thermal receipt printers are finding their way into all sorts of projects that are well beyond the point-of-sale environment that they normally inhabit. And while we applaud all the creative and artistic uses hackers have found for these little gems, this GitHub physical ticket printer has to be the best use for one yet.

According to [Andrew Schmelyun], seeing a fast-food order pop up on a thermal printer was the inspiration for this build. Maintaining over one hundred GitHub repos as he does, it’s easy for the details of any one bug report or feature request to get lost in the swarm of sticky notes that [Andrew] previously used to keep track of his work. To make it happen, he teamed an Epson thermal printer up to a Raspberry Pi Zero W and worked out the details of sending data to the printer using PHP. Luckily, there’s a library for that — the beauty of GitHub.

With the “Hello, World!” bit out of the way, [Andrew] turned his attention to connecting to GitHub. He set up some webhooks on the GitHub side to send a POST request every time an issue is reported on one of his repos. The POSTs are sent via ngrok to a PHP web server running on the Pi, which formats the data and sends the text to the printer. There’s a short video in the tweet below.

Between the sound of the printer working and the actual dead-tree ticket, it’ll be hard for [Andrew] to miss issues now. We’ve seen thermal printers stuffed into cameras, used to send pictures to Grannie, and even watched them commit suicide slowly, but we say hats off to [Andrew] for his solid work ethic and a fun new way to put a receipt printer to use.

Continue reading “Get GitHub Tickets IRL With A Raspberry Pi And A Receipt Printer”

Vote With Your Feet

Gamifying life is silly, fun, and a great way to interact with those strangers who you pass everyday. Here’s one example that might just pop up along your next walk to work. It’s a way to take a very unscientific straw poll on any topic — you won’t even have to use your hands to cast a ballot.

A group called [Vote With Your Feet] has come up with a novel way of casting ballots. Simply walk down the sidewalk and through one of two doorways, each labeled with either side of a dichotomy. Each doorway is able to count the number of people that pass through it, so any issue imaginable can be polled. They already did vim vs emacs (59 to 27),  and we’d like to see Keynes vs Hayek, or even Ovaltine vs Nesquik. Users can send the machine new issues for the masses to vote on, so the entertainment is quite literally limited only by your imagination.

thumbThe physical build is well documented. Since this is used outside, the choice of a flipdot display (of course always fun to play with) is perfect for this high-contrast in any level of light. Each doorway has a break-beam sensor which is monitored by the Raspberry Pi driving the overhead display (here’s code for it all if you want to dig in).

The point of this art installation like this is to get people to interact with their environment in a novel way, which this project has accomplished exceptionally well. In 3 days, they registered over 10,000 votes which are viewable on their website. If you have a project in mind that calls for data visualization you might want to keep this in your back pocket.

We have also seen other ways that doorways can count people outside of voting, if you’re looking for any inspiration yourself.