Spacebrew.js Apps with Built-in Routing Capabilities

Now you can create spacebrew.js apps with built in routing capabilities. As shown in the video above, it is now possible to embed the ability to connect your app to a subscriber or publisher directly from the app itself.

We developed these prototypes (along with the updates to the spacebrew.js library) primarily for mobile apps since our current web-based admin tool does not render well on most mobile devices. Here are links for the three different prototypes that we created for you to try out. First off we have the button prototype. Next up we have the slider prototype. Finally we have the string sender prototype.

All three of these examples use an updated version of the javascript library coupled with an admin mixin, which provides the admin functionality. This new library and the admin mixim are not  available in the spacebrew.js repo because they are not officially supported yet (in other words, we haven't tested them thoroughly enough). However, you can get a sneak peak here.

From a broader perspective these apps demonstrate how anyone can create their own custom admin apps, or integrate admin functionality into their client apps.​ Soon we hope to provide more documentation that will help you explore these areas.

pySpacebrew Library with Examples and Docs

pySpacebrew_Range_Client.png

Earlier this weekend we finished creating the example sketches and initial documentation for the pySpacebrew library. This library, which was contributed by Adam Mayer, makes it easy to connect pythons scripts and applications to Spacebrew. You can download the library and example scripts from github. Check-out the readme file and the examples to get up and running quickly.

Similar to the Spacebrew.js and ofxSpacebrew libraries, we’ve included four example sketches in the pySpacebrew repo. One for each of the three standard data types, and the fourth one featuring a custom data type. These core examples will be actively maintained along with the library itself. Here is a brief overview of each one.

  • The string example is a simple stripped down chat app
  • The range sketch functions like a console-based slider/potentiometer
  • The boolean script turns the enter/return key into a toggles switch
  • The custom data example functions like a virtual dice

We’ve been using this library for a few months now, especially when working with Raspberry Pis. Here are links to other projects and explorations where we’ve used this library:

  • The Raspberry Pi Experiments repo contains sketches that show how to control LED strips and Servos connected to a Raspberry Pi via Spacebrew.
  • The Open CV Motion Sensor repo features an advanced client/sensor application that uses cameras to detect motion – this app can be run on a full-fledge computer or a Pi.

Please note that these two apps are not maintained actively along with the pySpacebrew library. This means that they may not feature the very latest version of the pySpacebrew library. With that in mind, make sure to refer to the example sketches and documentation in the library’s own repository when creating your own apps.

Try out the pySpacebrew library and send us your feedback. We'd also love to hear more information about whatever you create.