
Needed some code digging (because it's not too - khm - well documented), for example to enable SSL connection for the bot part of the code (for using port 7070 on Freenode). I've used the irc library in Python to create a simple IRC bot that listens to the channel and does the required I/O. to quickly distinguish between people, assign different colours to the different users.second line is the message posted, if longer than the width of the LCD then scroll it.connect to a specified IRC server and join a specific channel.The base function of the code is crystallized out as: Mraa is already installed on the base image, but UPM had to be added manually to the Dockerfile. In the docs I've found that there's a specific docker starter container made by the Resin team for Python code, and that looked like a good point to start off from.įirst I was thinking using the default mraa library that Intel provides for the low level I/O, but fortunately also found UPM, a higher level library that already supports a lot of sensors and I/O - including the RGB-LCD! That saves a lot of time indeed, and has both Python and Node.js API for quicker code (besides the base C++). Downloaded their image (and checked out getting started guide), flashed it onto the board through the Android breakout board, and it was ready to get some code on (well, kinda). I've started a new project in the Resin.io interface based on Edison. a Grove LED (on one of the digital pins).a Grove RGB-LCD (that is controlled over the I2C lines).


For this I've used parts that were pretty much lying around in the Hackerspace:
