Add functionality to get accelerometer values via websockets.