I made some progress on my Nike+ app today. I finally got my head around exactly what data I am graphing, and I think I’ve found what I’m going to use to display that graph. JChart2D is a minimalistic charting library published under the GPL.
I was able to create a DOM object, pull in the xml file and get the data out into an array. All I need to do is a few calculations and then graph it. I haven’t actually tried the graphing part yet, but the JChart2D site has lots of examples and I think it should work out. If not, there are a bunch of other options.
I still need to get around searching for an ipod when it is connected. Thus far I’ve done everything on my windows laptop that has itunes installed. When I’m looping through the drives on the machine – hitting an empty cd drive causes the program to crash and my catch block doesn’t pick it up. As a very occasional java user – I was a bit taken back by that but there has to be a way around it. I just need to figure it out. I’ll be bugging the java guys at work when I’m ready to tackle it. For now I’ve just set it to the side and worked on other stuff that is key to getting the whole thing to work.
Ultimately though, I just want to be able to fire it up, and have it automatically go out and copy over any new files, without the user needing to tell the program where the ipod is mounted.
My wife liked the stuff I was showing her that I had been collecting on my runs and so I ordered a sensor for her as well. She isn’t sure if she’ll like running with it, so for now we will be using both sensors on my nano. If she really likes running with it, we will order her a nano – but for now I’ll be able to see how the software handles two different sensor ids. I think I know what it will do, but nothing beats finding out for sure. (She doesn’t already own a nano because she
I was digging around again and found someone who has done the same thing in C#. It is so obvious, there are probably more, but this is the first that I’ve seen that runs as a local app. I’ve downloaded the source for it but haven’t opened it up and looked at it yet. It will be interesting to see how someone else has approached the problem.
Oh – and I’ve exercised more recently than shows up in my run data on the side. But in Tampa – I did my work-outs on an elliptical trainer and so it wouldn’t work with the nike+ kit.