I used Node.js for the server so I could read the Bluetooth serial port. There's a sweet little serial library that you can install with npm that works really nicely. My first implementation of the program used Python, which was kind of a pain because there's no timer built in AND the python serial library doesn't have events. I wanted this program to be event-driven so that the end-user would have a better experience.

The code to parse the data from the serial port is also fairly simple: