So, instead of doing the work I should be doing, I’ve been seeking out Hacker’s Diet aficionados on Twitter, and found my way to a Hacker’s Diet plug-in for WordPress. Then it occurred to me, it would be possible to write a web app that could pull data from FatWatch right now, without any updates to the app.
For example, a hypothetical “FatWatch plug-in for WordPress” could work like this:
- You enable Wi-Fi Import/Export on your iPhone.
- You enter the iPhone’s URL into the plug-in and press its “update” button.
- The plug-in’s JavaScript loads and parses your weight history from the base URL and the path “/export/weight.csv”.
- The plug-in saves the numbers to a database and displays a pretty chart on your blog.
And, it wouldn’t be too hard to enhance FatWatch to limit export by time range or support additional formats like JSON or XML. Guess what’s going on my to-do list?