I’m still waiting my BeagleBone to do the same your thing… and also to support my website (hosted, not dedicated server) to make a spider web, and manage the processing about large images files (to resize)…
Let me know if u find some problems…
I’m tuned!! ^^
This would serve a webpage containing Hello World basic example... U
could do everything u want served by the way u want,web pages,files,
Instead of wello world u could serve a web page with the IO's status
on beagle bone.
I recommended u to play arround nodeJS (go to nodejs homepage they
have all well documented with lots of examples) and u won't be
a couple of us here in Dublin are doing similar work. I have a
heating controller, based on an Arduino, and a an XBee modem.
Currently, I control this using a small windows Netbook, also with an
XBee modem attached, and running Apache.
The plan is to use the Beaglebone in place of the Windows box, Node.js
in place of apache. Functions on the Node.js server will be exposed as
RESTfull Web Services, consumed by an iPhone App.
All is going well so far. If there is anything specific I can help you
with, let me know.
My $0.02 is that node-xmpp in combination with a cloud service like
Nimbits or Pachube is the cleanest way to make an automation server.
In particular, it lets the bb push information readily. For
example, if someone turns a light on, the bb will send an IM to
Nimbits or Pachube. Conversely, if you want to turn a light on
remotely, you can just send the bb an IM.
At any rate, xmpp is inherently more interactive, since it's a p2p
protocol, and as a result it seems to make for a more natural proxy
for physical computing.
I've taken a slightly different approach - I expose functions on the
BB (written in Node.js) as Web Services. Have a look at http://mobile.rdacorp.com/2011/10/creating-nodejs-web-service.html for
client side. You use a thing called XMLHTTPRequest.... google for that
and you will get plenty of examples.
I too have been interested in using the BeagleBone for home automation
use. I recently released a simple project named webLightSwitch which
implements a web server in node.js and runs on the BeagleBone to serve
up a jQuery Mobile web interface. The interface provides a means to
turn the registered lights on or off. The lights have INSTEON lighting
controllers attached. The web server code communicates through a
serial interface, using node-serialport, to a USB INSTEON PowerLinc
Modem to control the lights. You can more information at the project
page here: http://beagleboard.org/project/webLightSwitch/
I wrote node.js code for a Beaglebone and socket.io to send
commands to an X10 CM15A controller with USB interface. All clients
see the same control panel with on/off status indicators. The
indicators change in real-time as lights are turned on and off. https://github.com/bbx10/bbx10node