jimmybobby
Posts: 29
Joined: Wed Feb 20, 2013 9:53 pm

IRC Receiver with a thermal printer?

Tue Feb 02, 2016 9:12 pm

Hi there,

I'm now an A Level Computer Science student, and wondering if I can get the Raspberry Pi (B rev2) to connect to a Pipsta thermal printer, and print a live feed from an IRC channel.

I don't actually have a Pipsta (yet), but would like to think it's possible (preferably using python) to automate this.

I think the general idea I have at the moment is to get some sort of IRC log from a text file (not sure how I'd do this),
Then using python, continuously check if the file has text in, then print this text, then clearing the text file.

I'm OK with the python, it's the IRC part I'm not sure about.

Does anyone have any ideas?


Many thanks!
It's fair to say I like obsolete/old technology. :)
A Level Comp Sci Student

User avatar
DougieLawson
Posts: 37482
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: IRC Receiver with a thermal printer?

Wed Feb 03, 2016 10:20 am

The hardware is the easy part.
http://www.modmypi.com/raspberry-pi/set ... -big-ideas

You should start with a python library https://pypi.python.org/pypi/irc to read your IRC channel.
https://github.com/jaraco/irc
https://pythonhosted.org/irc

Before using that get familiar with IRC by installing irssi with sudo apt-get install irssi because that's a nice sane IRC client that runs in an LXTerminal (or from the command line).
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Return to “Networking and servers”