Home

Awesome

<img src='./header-logo.png'>

Gitter

What is rio?

The main project behind Rio is an interactive, internet connected LED wall. Rio has been used to power a 2 meter x 1.1 meter LED display made by Solid State Group. rio-server currently runs here on a Raspberry Pi and drives 2040 pixels with a generic REST and WebSocket API. We also use rio-canvas and rio-mobile to enable new ways to interact with it.

We were originally inspired by <a href="https://googlecreativelab.github.io/anypixel/">Google Creative Labs's anypixel</a>, however felt that we could create a library ourselves that's a lot easier to build on top of and understand for curious developers who wanted to build something cool.

<img src="./rio-vid.gif"/> <img src="./rio-vid2.gif"/>

New! Checkout the rio-vr branch for our virtual reality implementation!

<img src="./vr.gif"/>

1. <a href='./rio-server'>rio-server</a>

This is the main component in the library. It takes different types of data, converts it to rgb arrays and sends it to the LED wall (or any output e.g. terminal).

<img src="./mario.gif"/> <img src="./twitter.gif"/> <img src="./rio-server/example.gif"/>

At a high level this is broken down into 3 simple concepts:

  1. inputs - These files interpret data coming in before frame data is sent to the LED wall. e.g. video, gifs, arrays of rgb values, text.

  2. outputs - These files interpret frame data and output them:

  1. clients - Integrate with clients that send any form of data, converting them to inputs:

Full installation instructions for installing rio-server onto a Raspberry Pi can be found <a href='./rio-server#installation-on-a-raspberry-pi'>here</a>.

2. <a href='./rio-canvas'>rio-canvas</a>

<img src="./rio-canvas/example.gif"/>

A web app hosting a collection of examples that send pixel data to the rio server.

e.g. pong, paint, breakout and more

You can control rio-canvas from a separate application (e.g rio-mobile) by connecting to it via websockets and sending string messages such as :

3. <a href='./rio-mobile'>rio-mobile</a>

An iOS/Android app built in <a href='https://facebook.github.io/react-native/'>React Native</a> that demonstrates both reading and writing to rio-server.

<img src="./rio-mobile/example.gif"/>

4. <a href='./rio-vr'>rio-vr</a>

<img src="./vr.gif"/>

A react-vr client application that hooks into the rio-server socket, visualising the wall's data in 3d.

Installation

Project specific documentation can be found within each of the application directories above. A few high level notes here to keep in mind:

Pre-requisites (make sure these are installed and linked)

rio-server

OSCommand
OS Xbrew install pkg-config cairo pango libpng jpeg giflib
Ubuntu / Debiansudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
Fedorasudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel
Solarispkgin install cairo pango pkg-config xproto renderproto kbproto xextproto
WindowsInstructions on our wiki

El Capitan users: If you have recently updated to El Capitan and are experiencing trouble when compiling, run the following command: xcode-select --install. Read more about the problem on Stack Overflow.

cd ./rio-server && npm i

rio-canvas

npm i nodemon -g
cd ./rio-canvas && npm i

rio-vr

cd ./rio-vr && npm i

rio-mobile

cd ./rio-mobile && npm i

Running

rio-server

npm run server

rio-canvas

npm run canvas

rio-vr

npm run vr

rio-mobile

npm run ios
npm run android

Hardware spec

<a href="./hardware/">If you're looking to make a big LED wall like we did, here's how we did it</a>

What are you using this for?

We're curious to see how people are using this library. Submit an issue letting us know and we'll show it off here.

Contribute

We welcome new features / bug fixes, feel free to submit a PR or add an issue with your suggestions. Even if the integrations are pretty out there (biosensors, big data, image recognition) we're willing to give it a go and help out.

For more information about contributing PRs, please see our <a href="CONTRIBUTING.md">Contribution Guidelines</a>. Looking at PRs or issues labelled with "good first task" is a great start to contributing.

Getting Help

If you encounter a bug or feature request we would like to hear about it. Before you submit an issue please search existing issues in order to prevent duplicates.

Get in touch

If you have any questions about our projects you can email <a href="mailto:projects@solidstategroup.com">projects@solidstategroup.com</a>.