MS Band

MS Band Server – sensor data in a browser

Chatting recently with Mike Brondbjerg recently about some data visualisation ideas around using the Microsoft Band and we came to the conclusion that getting live sensor data from the band into the browser would open up the opportunity to use the data to drive some visualisation experiences using javascript. We had processing.js in mind but there are a whole slew of javascript visualisation libraries available.I had created a project to get Kinect data into the browser a few months ago (see Kinect 4 Windows V2 – in the browser) so thought it would make a good starting point. I couldn’t consume the real-time sensor data using the Microsoft Band SDK in a console app this time as it is dependent on a non-compatible .NET (no such problems with the Kinect SDK as it is based on WinRT). This meant using a modern Windows App to consume data from the band, send the data over a web socket to a web socket server which broadcasts the data to any client that wishes to connect – in this case a wep page using processing.js in a browser.

bandtest

This all runs on your local machine (or indeed across the web if latency isn’t an issue). Once you have this running there is plenty of scope for creativity; use the heart rate data to drive a visualisation or crowdsource positional data using accelerometer and gyroscope to create a collaborative artwork. Instructions for setting up are at the readme here https://github.com/peted70/BandServerApp

Mike published a test visualisation here

mikesvid

Don’t worry if you have no band available for dev – use the Fake Band instead.

nobandnoproblem

Github project is here https://github.com/peted70/BandServerApp

Tagged , , , , ,

3 thoughts on “MS Band Server – sensor data in a browser

Leave a Reply

Your email address will not be published. Required fields are marked *