Both of us are tennis players, and while playing tennis, we realized that we had no way to get information
What it does
The Pebble watch app reads accelerometer data from the racket, and analyzes it to determine what stroke the user hit. It then posts the data to a node server, which communicates with the iPhone app. The iPhone app displays how many forehands, backhands, topspin shots, and slice shots the user hit. It also allows the user to email the session's data to yourself and your coach for further analysis.
How we built it
On the Pebble watch app side, we used Pebble.js to capture the accelerometer data. It uses the data to determine what shot the user hit, and then sends a post request using ajax to the Node.js server. The Node.js server receives the data and consumes the SendGrid API to send emails. It interacts with the iOS app through socket.io. The iOS app displays the data and allows the user to enter your email address and your coach's email address, and they receive emails through the Node server.
Challenges we ran into
Accomplishments that we are proud of
We were new to the Pebble, and at first, programming for it was difficult, especially in C. Eventually, we were able to make a watch app in Pebble.js.
What we learned
- Pebble SDK
- SendGrid API
- HTTP requests (POST and GET)
What's next for BDPebbleTennis
Potential additions to BDPebbleTennis include integrating it with smart court systems, such as Hawkeye. These systems are used all around the world to tell whether shots are in or out. These systems can provide valuable data to indicate the quality of shots players are making while practicing. In addition, while playing a match with a friend, or just practicing, systems like these can help settle on court disputes without argument.