Weight Watcher Widget 0.14

 

Ever wanted to know how many points is in that food item? It's easy to figure out with the new Weight Watchers Widget calculator. In looking at the point structure, I knew right off, that there must be a formula. Sure enough, my first Google search returned this article. In that article, they posted the following formula:




Where:

p = Points

c = Calories

f = Fat Grams

r = Dietary fiber Grams


(Note: min{r, 4} equals the number of grams of dietary fiber or 4, whichever is smaller. )


I turned that formula into a a widget. Now, you can easily calculate points based on the information on the food item. I posted this on MacUdate for anyone else looking for something that does this.


This widget is based off the Apple developer example "which" that is included with the Xcode dev tools.


I originally posted 0.1 to Macupdate, but I soon realized that I never changed the default icon that you see in the widget toolbar. I also noticed that if you used Activity Monitor to see the processes running, it was also reporting the old name of which. I have corrected both of those issues in the 0.11 version.


0.12 has been tidied up even further. I removed some unused graphics, unused javascript and HTML, and removed all references to Apple's "Which" sample that I used to base this widget.


0.13 was a complete change to the look and was completely redone in DashCode. I added a backside to the widget, and added a link to this site.


0.14 added the ability to round to the nearest half point.


Drop me a note if you have any questions.


james at kingscrossing dot net