<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eric Blue's Blog &#187; Health</title>
	<atom:link href="http://eric-blue.com/category/health/feed/" rel="self" type="application/rss+xml" />
	<link>http://eric-blue.com</link>
	<description>Technology, Philosophy, and Personal Development</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:30:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatically sync &amp; import Garmin TCX data</title>
		<link>http://eric-blue.com/2011/07/10/automatically-sync-import-garmin-tcx-data/</link>
		<comments>http://eric-blue.com/2011/07/10/automatically-sync-import-garmin-tcx-data/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 22:22:26 +0000</pubDate>
		<dc:creator>ericblue76</dc:creator>
				<category><![CDATA[Fitness]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Quantified Self]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://eric-blue.com/?p=1501</guid>
		<description><![CDATA[Over the last few weeks, I&#8217;ve been gradually increasing the supported devices for TRAQS.me.  As of today, I&#8217;ve successfully integrated FitBit, Withings, GPS data (GPX files), MyZeo, and now Garmin Heartrate monitors (TCX files).

Devices like ...]]></description>
			<content:encoded><![CDATA[<p>Over the last few weeks, I&#8217;ve been gradually increasing the supported devices for <a href="http://traqs.me">TRAQS.me</a>.  As of today, I&#8217;ve successfully integrated FitBit, Withings, GPS data (GPX files), MyZeo, and now Garmin Heartrate monitors (TCX files).</p>
<p style="text-align: center;"><a href="/wp-content/uploads/2011/07/garminfr60-red.jpg"><img class="aligncenter" title="garminfr60-red" src="/wp-content/uploads/2011/07/garminfr60-red-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Devices like FitBit make syncing and importing data relatively fast.  As soon as the device syncs with the ANT-based station, data is uploaded to the FitBit site and this can be easily extracted.  However, for Garmin devices like the FR60 heart-rate monitor, extracting data from the Garmin Training Center product is a manual process.  You have to manually launch the app, go to Export, and save your data as a .TCX file.</p>
<p>You can pick and choose each activity to export (tedious), or you can save the entire data (a larger file ~ 15MB of data now) which takes some time to save and process.  This is clearly less than ideal.  In an effort to have my data INSTANTLY imported and available, I spent some time researching ways to accomplish this.  The hacker in me was thrilled when I discovered a linux-based open source project called <a href="http://code.google.com/p/garmintools/">GarminTools</a>.  From the project page:</p>
<blockquote><p>&#8220;This software provides Linux users with the ability to communicate with the Garmin Forerunner 305 via the USB interface. While this is the only Garmin unit that I own, I did implement all of the <a rel="nofollow" href="http://www.garmin.com/support/pdf/IOSDK.zip">documented Garmin protocols</a> as of Rev C (May 19, 2006) over the USB physical link. This means that if you have a Garmin with a USB connection to a PC, you ought to be able to use this software to communicate with it.</p>
<p>If you&#8217;re looking for a complete solution to all of your Linux Garmin GPS needs, this is not it. I own a Garmin Forerunner 305 and wrote this code specifically so I could download and save data from that particular GPS unit to my Linux machine. I tried <a rel="nofollow" href="http://www.gpsbabel.org/">gpsbabel</a>, but found that it did not have command line options specific to the Forerunner run and lap data &#8211; all I could do was get the tracklog. That&#8217;s how all of this got started. I also wanted a few other things, like the ability to convert a track log into a Google maps encoded polyline, and (eventually) the ability to generate PNG images of heart rate and elevation data.&#8221;</p></blockquote>
<p>I&#8217;m going to eventually dig deeper into this project, but since my time is more constrained this weekend I opted for a more pragmatic (ok cheap) hack.  I discovered that the <a href="http://www.garmin.com/garmin/cms/us/intosports/training_center">Garmin Training Center</a> app stores individual TCX files each time you sync under a folder (on Windows 7) like:</p>
<blockquote><p>C:\Users\username\AppData\Roaming\GARMIN\Devices\1110044\History</p></blockquote>
<p>I figured a simple approach would be to sync this folder with my server, find any files newer than the last imported Activity/Heartrate data, and process.  A simple windows share could have sufficed, but I figured it might be easier just to sync with Dropbox and make the data available from any of my computers.  So, here&#8217;s the quick n&#8217; dirty recipe:</p>
<p>1) If you don&#8217;t already have an account, signup for <a href="http://www.dropbox.com">Dropbox</a> and install clients on your computer running Garmin Training Center, and where you ultimately want to send your .tcx files.</p>
<p>2) After your Dropbox folder is setup and you&#8217;ve done a simple test to verify sync works, you&#8217;ll want to share this folder.  Now, I&#8217;m sure there&#8217;s an easy way to share folders OUTSIDE of the Dropbox folder, however 1 minute of Googling with no luck made me look for another option.  On Windows-based machines you can actually do the equivalent of a Unix symlink using the <a href="http://technet.microsoft.com/en-us/sysinternals/bb896768">Junction program</a> from sysinternals.  Here&#8217;s how to set it up:</p>
<ul>
<li>Download and install Junction from the URL (you can copy the junction.exe file to c:\windows\system32)</li>
<li>Go to the command prompt (cmd), cd to your Dropbox directory, and run:</li>
<li>c:\windows\system32\junction GarminHistory C:\Users\username\AppData\Roaming\GARMIN\Devices\1110044\History</li>
<li>Do a directory listing and verify the new GarminHistory folder exists under Dropbox and syncs properly</li>
</ul>
<p>3) Go to your destination server where Dropbox is installed and presto, you have all of your workout/activity/heartrate data available in .TCX format!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Automatically+sync+%26+import+Garmin+TCX+data+http://eric-blue.com/?p=1501+via+@ericblue" title="Post to Twitter"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://eric-blue.com/2011/07/10/automatically-sync-import-garmin-tcx-data/&amp;title=Automatically+sync+%26+import+Garmin+TCX+data" title="Post to Delicious"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://eric-blue.com/2011/07/10/automatically-sync-import-garmin-tcx-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TRAQS.me &#8211; Tools for Reporting &amp; Analysis of the Quantified Self</title>
		<link>http://eric-blue.com/2011/06/26/traqs-me/</link>
		<comments>http://eric-blue.com/2011/06/26/traqs-me/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 03:40:41 +0000</pubDate>
		<dc:creator>ericblue76</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Fitness]]></category>
		<category><![CDATA[Geocoding]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[Memex]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Personal Informatics]]></category>
		<category><![CDATA[Quantified Self]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://eric-blue.com/?p=1484</guid>
		<description><![CDATA[A month ago around this time I was anxiously awaiting the first annual Quantified Self conference in Mountain View, CA. This was a fantastic conference on many levels and, although a little late, deserves a ...]]></description>
			<content:encoded><![CDATA[<p>A month ago around this time I was anxiously awaiting the first annual <a href="http://www.quantifiedself.com/conference/">Quantified Self conference</a> in Mountain View, CA. This was a fantastic conference on many levels and, although a little late, deserves a future post detailing the great sessions, people, and companies who were there.  I didn&#8217;t have an official speaking session, but I used this event as a milestone to make forward progress on my <a href="http://eric-blue.com/2011/03/13/fitness-tracking-platform-update-on-progress/">personal project for fitness tracking</a>.</p>
<p>Since last August when the project was originally envisioned, I&#8217;ve made a lot of progress on not only building this system for my own use, but also expanding on the original idea of just &#8216;tracking fitness&#8217;.  Fitness is one significant component of improving oneself and general well-being.  But, when most people think of fitness, it&#8217;s associated with simply going to the gym, running on the treadmill, or pumping iron indoors, and tracking these activities in some journal.  The scope of my project has since grown to include tracking for sleep quality, detailed location tracking and geocoding, and heart rate monitoring.  I&#8217;d like to eventually expand the scope further to include nutrition tracking, health metrics (blood pressure, nutrient levels/blood tests, cholesterol, etc.), and even more subject things like mood and factors that affect emotional well-being.</p>
<p>With this in mind, my personal project has evolved into a more general purpose tool for tracking and analysing data related to the Quantified Self.  Hence, my new project name TRAQS.me (Tools for Reporting &amp; Analysis of the Quantified Self) or simply put, it&#8217;s a tool that (Tracks &#8220;Me&#8221;).  I&#8217;ve put together a slideshow/presentation that gives a decent overview of the entire project:<br />
<center><br />
<a target="newwin" href="http://www.slideshare.net/ericblue76/traqsme-presentation"><img class="aligncenter size-full wp-image-1495" title="traqsme" src="http://eric-blue.com/wp-content/uploads/2011/06/traqsme.png" alt="" width="517" height="287" /></a><br />
</center><br />
I&#8217;ve also put up a site at <a href="http://traqs.me">http://traqs.me</a> that contains the presentation and a static <a href="http://traqs.me/demo/">demo</a> (HTML pages) that illustrate the Dashboard, Report, and Map features.  The code is still a few weeks away from getting to the point that I&#8217;m ready to distribute a binary installer, and a little further out until the code is shareable (probably on GitHub).  I&#8217;m still working out what portion of the code will be released as open source (splitting out the data import, reporting/data export, and UI components), entertaining how traqs.me could be used by others as an online service, and ultimately figuring out how to license appropriately.  Stay tuned for more!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=TRAQS.me+%E2%80%93+Tools+for+Reporting+%26+Analysis+of+the+Quantified+Self+http://eric-blue.com/?p=1484+via+@ericblue" title="Post to Twitter"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://eric-blue.com/2011/06/26/traqs-me/&amp;title=TRAQS.me+%E2%80%93+Tools+for+Reporting+%26+Analysis+of+the+Quantified+Self" title="Post to Delicious"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://eric-blue.com/2011/06/26/traqs-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fitness Tracking Platform: Update on Progress</title>
		<link>http://eric-blue.com/2011/03/13/fitness-tracking-platform-update-on-progress/</link>
		<comments>http://eric-blue.com/2011/03/13/fitness-tracking-platform-update-on-progress/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 23:58:19 +0000</pubDate>
		<dc:creator>ericblue76</dc:creator>
				<category><![CDATA[Fitness]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[InfoViz]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Personal Development]]></category>
		<category><![CDATA[Personal Informatics]]></category>
		<category><![CDATA[Quantified Self]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://eric-blue.com/?p=1407</guid>
		<description><![CDATA[Last August, I enthusiastically blogged about an idea I had for creating a Fitness Tracking Platform; personal informatics for fitness.  Since that time I&#8217;ve been gradually making progress and am getting closer to fulfilling that ...]]></description>
			<content:encoded><![CDATA[<p>Last August, I enthusiastically blogged about an idea I had for creating a <a href="http://eric-blue.com/2010/08/14/fitness-tracking-platform-personal-informatics-for-fitness/">Fitness Tracking Platform</a>; personal informatics for fitness.  Since that time I&#8217;ve been gradually making progress and am getting closer to fulfilling that original vision.  I figured I would do a quick writeup and share some of the progress I&#8217;ve made, and layout a simple roadmap for taking it to the next level.  For right now I have some screenshots I can share.  In the coming weeks I plan on putting up an actual demo application, and may release a large portion of the code as open source.  Ultimately, I still need to figure out what I plan to do with it, but my immediate goal is to build something that is practical and useful for myself.  The original idea started out to mainly track fitness related data (and that&#8217;s primarily what I&#8217;ve been doing), but the application for this could apply generically to any form of self tracking.  It&#8217;s possible this could be one of the earliest efforts to create an open source application for personal tracking (see the <a href="http://quantifiedself.com/self-tracking-links-to-get-you-started/">Quantified Self list of software</a>).</p>
<p><strong>What&#8217;s Been Done So Far?</strong></p>
<p>If you look at the <a href="http://eric-blue.com/wp-content/uploads/2010/08/Fitness_Tracking_Platform.jpg">original diagram I created</a>, there where a few different components to this tracking platform (local storage, data collection scripts/api integration, and the presentation layer).</p>
<ul>
<li><strong>Local Storage &#8211; Personal copy of data stored in MySQL</strong>.  I created the local storage piece almost immediately after writing the article in Aug.  I chose to use MySQL as a database, and created a schema that was suited towards collecting my initial data set of interest: data from my FitBit and WiThings scale.  The schema accounts for storing both daily and intraday activity for calories burned/consumed, activity score (+very active, moderately active, and lightly active), total distance, steps taken, sleep, and weight.  I&#8217;ve now created about a dozen or so SQL queries that will generate useful reports on this historical data.</li>
</ul>
<ul>
<li><strong>Data collection scripts/API Integration. </strong>I immediately leveraged the<a href="http://eric-blue.com/projects/fitbit/"> Perl FitBit API </a>I originally wrote last April to sync data from the FitBit site to my local database.  I created a nightly cron job that will request the daily + intraday stats and save to the db using Perl::DBI.  I also took a similar approach with the WiThings scale.  Although I haven&#8217;t created a Perl wrapper yet for Withings, they do publish and easy to use <a href="http://www.withings.com/en/api/bodyscale">REST API</a> for getting access to your weight.  This script also runs on a nighly basis and saves weight information to the local database.</li>
</ul>
<ul>
<li><strong>Presentation Layer</strong>.  This has been the most complicated piece so far.  I&#8217;ve created a Java-based webapp using Spring 3.0/Jetty to build the analytics UI.  For now the UI is built with 2 major views: a dashboard, and reporting interface.  The dashboard displays both historical and daily information in a visually-pleasing format using Google Charts.  You can see a daily snapshot (+ weekly, quarterly, and yearly views) and see stats on your activity, distance, steps taken, weight, sleep and intraday stats (activity and sleep level on an hourly basis).  I&#8217;ve also built a light home-grown reporting interface that integrates with the Google Visualization API and easily builds dynamic tables and charts based on the provided SQL queries.</li>
</ul>
<p><strong>Screenshots</strong></p>
<ul>
<li>Dashboard View</li>
</ul>
<p style="text-align: center;"><a title="dashboard by ericblue76, on Flickr" href="http://www.flickr.com/photos/56683314@N00/5523777619/"><img class="aligncenter" src="http://farm6.static.flickr.com/5253/5523777619_2aebd6852b.jpg" alt="dashboard" width="499" height="500" /></a></p>
<ul>
<li>Historical Stats &#8211; Multiple Activity Logs</li>
</ul>
<p style="text-align: center;"><a title="historical by ericblue76, on Flickr" href="http://www.flickr.com/photos/56683314@N00/5524370032/"><img class="aligncenter" src="http://farm6.static.flickr.com/5100/5524370032_f9cb7461c8.jpg" alt="historical" width="500" height="212" /></a></p>
<ul>
<li>Historical Stats &#8211; Distance Bar Chart</li>
</ul>
<p style="text-align: center;"><a title="historical2 by ericblue76, on Flickr" href="http://www.flickr.com/photos/56683314@N00/5524935054/"><img class="aligncenter" src="http://farm6.static.flickr.com/5015/5524935054_5a6257c9cd.jpg" alt="historical2" width="500" height="212" /></a></p>
<ul>
<li>Daily Stats</li>
</ul>
<p style="text-align: center;"><a title="daily by ericblue76, on Flickr" href="http://www.flickr.com/photos/56683314@N00/5524369764/"><img class="aligncenter" src="http://farm6.static.flickr.com/5174/5524369764_7523be1e36.jpg" alt="daily" width="500" height="213" /></a></p>
<ul>
<li>Intraday Stats</li>
</ul>
<p style="text-align: center;"><a title="intraday by ericblue76, on Flickr" href="http://www.flickr.com/photos/56683314@N00/5524370070/"><img class="aligncenter" src="http://farm6.static.flickr.com/5171/5524370070_29ac8c1a96.jpg" alt="intraday" width="500" height="212" /></a></p>
<ul>
<li>Reporting</li>
</ul>
<p style="text-align: center;"><a title="report_closeup by ericblue76, on Flickr" href="http://www.flickr.com/photos/56683314@N00/5524524164/"><img class="aligncenter" src="http://farm6.static.flickr.com/5059/5524524164_17005eabdc.jpg" alt="report_closeup" width="500" height="233" /></a></p>
<p><strong>Immediate Next Steps?</strong></p>
<p>The current code is fairly stable and mostly ready for a demo.  Before I make it live I&#8217;m planning on adding a few major features:</p>
<ol>
<li>Geo-Location support &#8211; I&#8217;ve been <a href="http://eric-blue.com/2010/08/28/geolocation-gps-and-self-tracking/">tracking GPS coordinates</a> since I purchased my QStarz device in September.  I&#8217;m thinking of adding a couple Map and GPS tracklog views to the Dashboard.  And, this could lead to some interesting location-based reporting as well.  I have a ton of saved .gpx files, so it&#8217;s a matter of writing an integration script to parse and store in the db.  And, some lightweight presentation layer to dynamically generate .KML and overlay on top of Google Maps.</li>
<li>Simple mobile interface.  I&#8217;d like to be able to access the interface using my iPhone and having some light interface to get quick stats and graphs would be nice.</li>
<li>Come up with a catchy project name.  As I stated earlier, although the original scope of this was for fitness tracking, this type of platform can be used for tracking any type of personal statistics.</li>
</ol>
<p><strong>Future Roadmap</strong></p>
<ol>
<li>Tracking detailed sleep info from <a href="http://www.myzeo.com/">MyZeo</a>.  Since I wrote the original vision I had the chance to do a review for the <a href="http://eric-blue.com/2011/01/02/zeo-personal-sleep-coach-hacking-your-way-to-a-better-nights-sleep/">MyZeo sleep device</a>.  I&#8217;ve also <a href="https://github.com/ericblue/Perl-Zeo-API">created a Perl API</a> so it&#8217;s simply a matter of writing the integration script to start recording in the MySQL DB.</li>
<li>Tracking workout info from my iPhone app &#8211; iFitness.  I also have about 10 years worth of workout information either stored from previous products (like CrossTrainer) or written down.</li>
<li>Tracking heartrate info from my Garmin heartrate monitor watch.</li>
<li>Integrate with the new official <a href="http://fitbit.com">Fitbit</a> API.  Since I wrote my initial (unofficial) Perl API, fitbit has embraced the developer community and <a href="http://dev.fitbit.com/">released a support API </a>(yes!)</li>
</ol>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Fitness+Tracking+Platform%3A+Update+on+Progress+http://eric-blue.com/?p=1407+via+@ericblue" title="Post to Twitter"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://eric-blue.com/2011/03/13/fitness-tracking-platform-update-on-progress/&amp;title=Fitness+Tracking+Platform%3A+Update+on+Progress" title="Post to Delicious"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://eric-blue.com/2011/03/13/fitness-tracking-platform-update-on-progress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Zeo Personal Sleep Coach &#8211; Hacking Your Way To A Better Night&#8217;s Sleep</title>
		<link>http://eric-blue.com/2011/01/02/zeo-personal-sleep-coach-hacking-your-way-to-a-better-nights-sleep/</link>
		<comments>http://eric-blue.com/2011/01/02/zeo-personal-sleep-coach-hacking-your-way-to-a-better-nights-sleep/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 18:53:48 +0000</pubDate>
		<dc:creator>ericblue76</dc:creator>
				<category><![CDATA[Brain]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Fitness]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[Mind]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Personal Development]]></category>
		<category><![CDATA[Personal Informatics]]></category>
		<category><![CDATA[Quantified Self]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://eric-blue.com/?p=1344</guid>
		<description><![CDATA[
What&#8217;s a better way to kick off the New Year than by giving tips on how to improve your overall quality of sleep? I decided to write this post as a mini-review of the Zeo ...]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1346" title="zeo1" src="http://eric-blue.com/wp-content/uploads/2011/01/zeo1.jpg" border="0" alt="" width="413" height="305" /></p>
<p>What&#8217;s a better way to kick off the New Year than by giving tips on how to improve your overall quality of sleep? I decided to write this post as a mini-review of the <a href="http://myzeo.com">Zeo Personal Sleep Coach</a> and share some open source tools and APIs to help with saving your Zeo data for your own personal analysis.</p>
<p><strong>Overview<br />
</strong></p>
<p>In retrospect, 2010 was a pivotal year for me since I first learned about some amazing new technology gadgets that help you keep track of your overall health and well-being. Last February I discovered the <a href="http://www.withings.com">WiThings</a> scale that will automatically track your weight and BMI, and will upload your data online so you can set goals and visually see how you are progressing.  Then, in April I received my <a href="http://www.fitbit.com">FitBit</a> and have been consistently using it to track my overall fitness activity &#8211; calories burned, miles walked, activity level, etc.  The thing that I love about these gadgets is that they &#8220;just work&#8221;: simply stepping on scale, or wearing a little gadget on your belt will help produce interesting sets of data and visual graphs that can help guide you to take action to improve your health.  A few months ago I discovered another amazing device called the <a href="http://www.myzeo.com/">Zeo Personal Sleep Coach</a> that will actually track how well you&#8217;re sleeping, provide detailed data and visual feedback, and give coaching tips to improve your overall quality of sleep.</p>
<p><strong>What is Zeo?</strong></p>
<p>In a nutshell, the Zeo product is designed to analyze your sleep patterns and provide you with a lightweight wireless headband, a bedside display, a set of online analytical tools, and a personalized email-based coaching program.  The main thing that initially blew me away with Zeo was the fact that the wireless headband will actually record your brainwave activity!  Not only can the device tell you what time you go to bed and what time you wake up, but it will provide detailed info on exactly when you&#8217;re lightly sleeping, in REM sleep, and in deep sleep.  With all this info at its disposal, the Zeo is able to provide you some valuable information and tools to analyze trends in your sleeping patterns.  Here&#8217;s a sample of some of the sleep data you can review once it&#8217;s been uploaded to the myzeo.com site:</p>
<ul>
<li><strong>Zeo Sleep Score</strong></li>
</ul>
<blockquote><p>When you wake up and place the headband back on the bedside display, the Zeo will provide you with an overall sleep score (ZQ) that is based on your sleep quality and quantity.  Your base score is your total sleeping time, combined with restorative sleep (Deep &amp; REM) and disrupted sleep (wakeups, total wake time).  Think of the score as your overall grade for how well you slept.  I was surprised to learn that the average score for my age group is a ZQ score of 77.  Since I started using the Zeo in November, my sleep score has been averaging a ZQ of 98.</p></blockquote>
<p><a href="http://eric-blue.com/wp-content/uploads/2011/01/zeo_score.jpg"><img class="aligncenter size-full wp-image-1363" title="zeo_score" src="http://eric-blue.com/wp-content/uploads/2011/01/zeo_score.jpg" alt="" width="563" height="322" /></a></p>
<ul>
<li><strong>Sleep Graph</strong></li>
</ul>
<blockquote><p>This is where the Zeo data can get interesting.  This particular graph will not only show what time you went to bed and woke up, but also the total time it took to fall to sleep and a detailed breakdown of what sleep phase you were in throughout the night!  Reviewing this graph can provide some telling feedback on how different factors may impact your night&#8217;s sleep: going to bed too early/late, stress (a racing mind), too much caffeine or alcohol, working out too late in the evening, etc.</p></blockquote>
<p><a href="http://eric-blue.com/wp-content/uploads/2011/01/zeo_graph.jpg"><img class="aligncenter size-full wp-image-1359" title="zeo_graph" src="http://eric-blue.com/wp-content/uploads/2011/01/zeo_graph.jpg" alt="" width="563" height="352" /></a> <strong> </strong></p>
<ul>
<li><strong>Sleep History</strong></li>
</ul>
<blockquote><p>The sleep history graph will show key information (ZQ score, total sleep time, deep sleep/rem sleep, etc.) for different time intervals (daily, weekly, monthly).  Again, being able to use this data to see trends in your sleeping patterns can provide some useful feedback on how to be more conscious of what&#8217;s impacting your quality of sleep.</p></blockquote>
<p><a href="http://eric-blue.com/wp-content/uploads/2011/01/zeo_graph2.jpg"><img class="aligncenter size-full wp-image-1361" title="zeo_graph2" src="http://eric-blue.com/wp-content/uploads/2011/01/zeo_graph2.jpg" alt="" width="563" height="341" /></a></p>
<p>For a good review and video of the Zeo, I&#8217;d recommend reading the<a href="http://online.wsj.com/article/SB124451280076496767.html"> WallStreet Journal article</a> from last year (note the price for the Zeo is now $199.95 USD and available at retailers like Brookstone &amp; Sharper image).  And, for another recommended review with some detailed info on how the Zeo actually works check out <a href="http://dreamstudies.org/2010/11/29/product-review-zeo-personal-sleep-coach/">Ryan Hurd&#8217;s review</a> and some <a href="http://www.myzeo.com/pages/52_for_health_professionals.cfm">peer-reviewed literature on the science behind Zeo</a>.</p>
<p><strong>Open Source and APIs </strong></p>
<p>Now, this is where the post gets a little technical (and exciting)!  The thing that I *really* like about the Zeo is their willingness to give you as much access to your sleep data as possible and embracing open source as a compliment to their commercial offering.  How are they doing this?  Zeo issued a <a href="http://whatiszeo3.myzeo.com/hp/3/pr/2010/06/api/">press release back in June</a> announcing their new open API to allow 3rd party companies and individual developers complete access to their sleep data.  The <a href="http://mysleep.myzeo.com/api/api.shtml">published API</a> offers developers the ability to register and signup for an API Key, and provides a comprehensive REST API (using both JSON and XML) so 3rd party libraries can be developed.</p>
<p>Zeo currently offers some sample code using the API in a variety of languages (Perl, PHP, Java, etc.) and a fully working Ruby libarary developed by <a href="http://dailyburn.com/">DailyBurn</a>.  In order to help ease my own effort to download data and help other developers, I decided to create my own OO <a href="http://eric-blue.com/2010/05/11/fitbit-unofficial-perl-api-and-csv-download/">Perl library similar to the one I initially created for Fitbit</a> back in May.  Unlike the FitBit libary which is somewhat unofficial (Fitbit does not offer &#8216;published&#8217; API for developers), the Zeo Perl library has been fully tested against the published API, and any future changes by Zeo can be easily incorporated in the the library.</p>
<p>The Perl API (WebService::Zeo) is now hosted on GitHub at <a href="https://github.com/ericblue/Perl-Zeo-API">http://github.com/ericblue/Perl-Zeo-API</a>.  In the near future this library will also be made available on CPAN.  This module provides an OO (Object-Oriented) library that currently supports all major services in the REST catalog (methods for getting sleep averages, detailed sleep data based on exact dates and ranges, and pagination to step through the sleep records).</p>
<p><strong>More Open Source &#8220;Hacking&#8221;</strong></p>
<p>In my mind, the officially supported API is major news for techy geeks and data junkies (me).  But, it gets even cooler&#8230;. along with the Web API, Zeo also offers:</p>
<ul>
<li>Zeo Data Decoder Library &#8211; A version of software and a library that enables a user to decode Zeo sleep data stored on a memory card without uploading data to mySleep.myZeo.com.</li>
<li>Zeo Raw Data Library &#8211; A version of software and a library that enables a user to decode Zeo sleep data and raw signal data in real time using the auxiliary serial port located on the back of Zeo.</li>
</ul>
<p>Their <a href="http://developers.myzeo.com/">developer site</a> lists some cool sample projects:</p>
<ul>
<li>Integrate Zeo sleep data into a website that tracks your weight, nutrition, and exercise.</li>
<li>Create a desktop application to view and process Zeo sleep data.</li>
<li>Build a lucid dreaming system to notify you when you are in REM sleep and alert you using a sound.</li>
<li>Use Zeo while you are awake to measure meditation.</li>
</ul>
<p>Overall, I&#8217;m very pleased with the Zeo so far and would highly recommend to anybody interested in improving their sleep quality.  And, for the &#8220;hackers&#8221; out there, the open source offering provides some great tools to access all of your sleep data and analyze in unique and interesting ways.  Happy 2011, and I wish all of you restful sleep and a healthy ZQ score!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Zeo+Personal+Sleep+Coach+%E2%80%93+Hacking+Your+Way+To+A+Better+Night%E2%80%99s+Sleep+http://eric-blue.com/?p=1344+via+@ericblue" title="Post to Twitter"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://eric-blue.com/2011/01/02/zeo-personal-sleep-coach-hacking-your-way-to-a-better-nights-sleep/&amp;title=Zeo+Personal+Sleep+Coach+%E2%80%93+Hacking+Your+Way+To+A+Better+Night%E2%80%99s+Sleep" title="Post to Delicious"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://eric-blue.com/2011/01/02/zeo-personal-sleep-coach-hacking-your-way-to-a-better-nights-sleep/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fitbit &#8211; Unofficial Perl API and CSV Download</title>
		<link>http://eric-blue.com/2010/05/11/fitbit-unofficial-perl-api-and-csv-download/</link>
		<comments>http://eric-blue.com/2010/05/11/fitbit-unofficial-perl-api-and-csv-download/#comments</comments>
		<pubDate>Wed, 12 May 2010 06:03:57 +0000</pubDate>
		<dc:creator>ericblue76</dc:creator>
				<category><![CDATA[Fitness]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Quantified Self]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://eric-blue.com/?p=1206</guid>
		<description><![CDATA[The other week I received my Fitbit and have been in geek heaven ever since.  Fitbit is a tiny magical device($99 USD) that automatically tracks your fitness and sleep statistics. Throughout the day it ...]]></description>
			<content:encoded><![CDATA[<p>The other week I received my <a href="http://www.fitbit.com">Fitbit</a> and have been in geek heaven ever since.  Fitbit is a tiny magical device($99 USD) that automatically tracks your fitness and sleep statistics. Throughout the day it will track your calories burned, steps taken, distance traveled, your activity level, and even track your sleep patterns. All of this data is synced wirelessly through your base station to Fitbit&#8217;s website where you can get very detailed daily and historical graphs. The main benefit is that you can be conscious of and keep track of your fitness level, food your eating, and how well you&#8217;re sleeping so you can make better choices throughout the day.</p>
<p>The Fitbit team is working hard on manufacturing and distribution and have future plans for releasing an official API.  Although the website does offer most of the features you&#8217;ll need, you can not download your data.  The goals is to have an API that will allow you to do this and also integrate some other applications.  I spent some time coding last weekend and have create an OO Perl API to access all Fitbit information and even download historical data in CSV format.  I&#8217;ve setup a &#8216;Fitbit Hack&#8217; project.  Check out:<br />
<a href="http://eric-blue.com/projects/fitbit/"><img class="aligncenter size-medium wp-image-1211" title="fitbit_portal" src="http://eric-blue.com/wp-content/uploads/2010/05/fitbit_portal-300x247.gif" alt="" width="300" height="247" /></a><br />
<a href="http://eric-blue.com/projects/fitbit/">http://eric-blue.com/projects/fitbit/</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Fitbit+%E2%80%93+Unofficial+Perl+API+and+CSV+Download+http://eric-blue.com/?p=1206+via+@ericblue" title="Post to Twitter"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://eric-blue.com/2010/05/11/fitbit-unofficial-perl-api-and-csv-download/&amp;title=Fitbit+%E2%80%93+Unofficial+Perl+API+and+CSV+Download" title="Post to Delicious"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://eric-blue.com/2010/05/11/fitbit-unofficial-perl-api-and-csv-download/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Live Forever With 8 Simple Tips</title>
		<link>http://eric-blue.com/2009/02/03/live-forever-with-8-simple-tips/</link>
		<comments>http://eric-blue.com/2009/02/03/live-forever-with-8-simple-tips/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 04:10:33 +0000</pubDate>
		<dc:creator>ericblue76</dc:creator>
				<category><![CDATA[Health]]></category>
		<category><![CDATA[Interesting]]></category>

		<guid isPermaLink="false">http://eric-blue.com/?p=749</guid>
		<description><![CDATA[George Dvorsky at Sentient Developments has posted a great article:
Eight tips to dramatically improve your chances of living forever
1. Eat the right foods
2. Avoid the wrong foods
3. Adopt a calorically restricted diet
4. Supplement your diet ...]]></description>
			<content:encoded><![CDATA[<p>George Dvorsky at <a href="http://www.sentientdevelopments.com">Sentient Developments</a> has posted a great article:</p>
<h3 class="post-title entry-title"><a href="http://www.sentientdevelopments.com/2008/03/8-tips-to-dramatically-improve-your.html">Eight tips to dramatically improve your chances of living forever</a></h3>
<p><span style="font-weight: bold;">1. Eat the right foods</span></p>
<p><span style="font-weight: bold;">2. Avoid the wrong foods</span></p>
<p><span style="font-weight: bold;">3. Adopt a calorically restricted diet</span></p>
<p><span style="font-weight: bold;">4. Supplement your diet with vitamins and minerals</span></p>
<p><span style="font-weight: bold;">5. Exercise and be active</span></p>
<p><span style="font-weight: bold;">6. Avoid dangerous activities and unhealthy habits</span></p>
<p><span style="font-weight: bold;">7. Support life extension causes and be socially active</span></p>
<p><span style="font-weight: bold;">8. Sign up for cryonics just to be safe</span></p>
<p>Click <a href="http://www.sentientdevelopments.com/2008/03/8-tips-to-dramatically-improve-your.html">here</a> to read the article in its entirety.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Live+Forever+With+8+Simple+Tips+http://eric-blue.com/?p=749+via+@ericblue" title="Post to Twitter"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://eric-blue.com/2009/02/03/live-forever-with-8-simple-tips/&amp;title=Live+Forever+With+8+Simple+Tips" title="Post to Delicious"><img class="nothumb" src="http://eric-blue.com/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://eric-blue.com/2009/02/03/live-forever-with-8-simple-tips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

