Keep that Route Forever!

aka: Just type 'help'

In the main Spacebrew repository, there is a little Node script called node_persistent_admin.js. This is a useful little CLI Node application for setting up routes that you want to keep around no matter what. It will re-connect a route if one of the clients disconnects and reconnects, and it will also prevent other people from accidentally (or maliciously!) destroying the route.

The persistent admin currently only connects to a spacebrew server running on the same computer using the default port (9000). When you start up the persistent admin, it lists all the valid commands you can use. In order to get more detail on how to use the various commands, just type
"help" and it will list all the commands with a short description on how they are used.

For Advanced Users:
You can also connect to the persistent admin via websocket and send it commands that way. The persistent admin sets up a websocket server on port 9001 by default, but you can pass in a different port to use via the command line like so:

node node_persistent_admin.js 9011

The commands you send over websocket are simply text exactly the same as you would type into the command line. Currently the websocket connections do not receive any data from the server, it is just one-way communication.

Connecting a SparkFun Kit to Spacebrew

Connecting a SparkFun Kit to Spacebrew

Prototyping interactive environments can be tricky and time-consuming. One of our favorite time-saving tricks is to turn existing interactive projects into components we can use - akin to standing on the shoulders of giants. 

This tutorial walks you through how to connect a SparkFun Bar Graph Breakout Kit to Spacebrew. Once the kit is built and connected to Spacebrew, you can have any number of interactive projects publish data to it.

Read More

Connect an Arduino Project to Spacebrew via Processing

Connect an Arduino Project to Spacebrew via Processing

In this tutorial we will walk you through how to take an existing Arduino project and make it talk with Spacebrew. We will use an Arduino to connect a photocell sensor to an existing javascript graph example.

This tutorial builds on an example that comes with Arduino software. To access the example within the program, go to File -> Examples -> 04.Communication -> Graph, or view it online here: http://www.arduino.cc/en/Tutorial/Graph.

Read More