<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anthony Westmoreland on Medium]]></title>
        <description><![CDATA[Stories by Anthony Westmoreland on Medium]]></description>
        <link>https://medium.com/@anthonywestmoreland?source=rss-9fbde0cd23e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*T0ndyrBFh85xVeEk.</url>
            <title>Stories by Anthony Westmoreland on Medium</title>
            <link>https://medium.com/@anthonywestmoreland?source=rss-9fbde0cd23e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:23:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anthonywestmoreland/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[3 Fitness Trackers, 30 Days, 3 Key Take Aways]]></title>
            <link>https://anthonywestmoreland.medium.com/3-fitness-trackers-30-days-3-key-take-aways-57a2035cc082?source=rss-9fbde0cd23e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/57a2035cc082</guid>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[wearables]]></category>
            <dc:creator><![CDATA[Anthony Westmoreland]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 22:31:02 GMT</pubDate>
            <atom:updated>2021-03-01T22:31:02.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFUoFIiuqGfUyPUnVb16yg.jpeg" /><figcaption>Amazon Halo, Apple Watch 6, Fitbit Charge 4 — Photo by Anthony Westmoreland</figcaption></figure><p>There are dozens of wearables to choose from, my first and primary is an Apple Watch. However, a few weeks after purchasing my watch I was disappointed with the sleep analysis data. This provoked my curiosity and I decided to try two other wearable devices from tech giants similar to Apple, <a href="https://www.fitbit.com/global/us/products/trackers/charge4">Fitbit</a> (Google) and <a href="https://www.amazon.com/Amazon-Halo-Fitness-And-Health-Band/dp/B07QK955LS">Halo</a> (Amazon). A friend questioned the absurdity of wearing three devices at once, but<strong> my goal was to learn what data could be extracted, how it would affect my daily habits over 30 days, and which would become key daily metrics.</strong></p><blockquote>My goal was to learn which data points would affect my daily habits over 30 days.</blockquote><h3><strong>Demystifying the Data</strong></h3><p>Data prompted my curiosity, what data is being tracked, and more importantly how do I get to all of it. This exercise proved to be more involved than initially thought, <strong>each device provides a download option, but that was merely the tip of the information iceberg</strong>.</p><p>Apple provides approximately 35 unique data points the from the <a href="https://medium.com/macoclock/how-to-export-health-data-from-iphone-60a88cfe1825">Apple Health app</a>, but this is in XML format and generally not usable for the average consumer. For those with the technical skillset, Mark Koester wrote a guide for <a href="http://www.markwk.com/data-analysis-for-apple-health.html">Converting Apple Health XML to CSV</a>. You can export a data aggregation from <a href="https://help.fitbit.com/articles/en_US/Help_article/1133.htm">Fitbit’s webpage</a>, or you can use the Fitbit application programming interface (<a href="https://dev.fitbit.com/build/reference/web-api/explore/">API</a>) to pull your data. For those of you familiar with Postman, I created a collection to help others pull their data via API (<a href="https://anthonywestmoreland.medium.com/access-fitbit-data-via-api-through-postman-5730e2dc2890">Access Fitbit Data via API through Postman</a>). Amazon Halo provides approximately 30 unique data points, in CSV format, <a href="https://www.amazon.com/gp/help/customer/display.html?nodeId=GL99TQL4B7ADPBDH">downloaded from the Halo app</a>. Amazon definitely made it the easiest to download all data for the average consumer.</p><p>Constantly monitoring myself for 30 days, the most three thought-provoking key metrics were <a href="https://www.health.harvard.edu/blog/heart-rate-variability-new-way-track-well-2017112212789">heart rate variability</a>, sleep, and activity, and I was captivated by two unique data points only tracked by Halo.</p><blockquote><strong>The most three thought-provoking metrics were heart rate variability, sleep, and activity</strong></blockquote><h4><strong>Heart Rate Variability</strong></h4><p>I developed a fascination with my heart rate. Laying on the couch I could confirm my vegetable state, and in the gym I focused on keeping my heart rate properly elevated. Then in early February the Journal of Medical Internet Research published a study of the impact of covid-19 on hundreds of medical workers at Mount Sinai. The research focused on the changes in individuals Heart Rate Variability (HRV), the variance in-between heartbeats, as tracked on a medical worker’s Apple Watch. The <strong>research found that changes in individuals HRV accurately predicted whether someone could be infected with covid-19 a week before a swab test!</strong></p><p>Zahi Fayad, PhD, said in a press release, “This technology allows us not only to track and predict health outcomes, but also to intervene in a timely and remote manner.” Aside from fears of Big Brother watching, I am excited to see how wearable devices help the general population take proactive actions to protect their health. Both the Apple Watch and Fitbit Charge 4 track HRV, but not the Amazon Halo, yet.</p><h4><strong>Sleep</strong></h4><p><a href="https://www.inc.com/bill-murphy-jr/want-to-be-happier-more-in-control-science-says-sleep-like-this-every-night.html">“Want to Be Happier and More In Control? Science Says Sleep Like This Every Night”. — Bill Murphy for Inc.</a> TLDR…</p><blockquote>“Those who reported better moods and who had fewer depression symptoms each quarter, were also the ones whose wearable devices revealed that they had the least variable sleep schedules.”</blockquote><p>I could not have agreed more. Apple’s sleep tracking did not provide much insight, but the <strong>Fitbit and Amazon Halo were stacked with insights. Tracking how long it took me to go to sleep, interruptions, REM and deep sleep, efficiency, and more!</strong> I knew I wasn’t getting enough sleep, but over the past 30 days I was able to clearly identify my shortcomings, and have since added 45m to my nightly sleep schedule. I am not an eight hourer, and I don’t think I will ever be, but after this 30 day adventure I do feel better rested, and have adopted better habits.</p><h4><strong>Activity</strong></h4><p>I try to stay busy, but I never realized how busy. Each of the devices has some sort of gamification of your activity, <a href="https://www.apple.com/watch/close-your-rings/">Apple Rings (Move, Exercise, Stand)</a>, <a href="https://blog.fitbit.com/active-zone-minutes/">Fitbit (Zones)</a>, and <a href="https://www.amazon.com/gp/help/customer/display.html?ie=UTF8&amp;nodeId=GTCM4F4W8ZFBJGCK">Halo (Points)</a>. More importantly, all devices estimate the number of calories burned during a day, both active and resting calories. <strong>Each device calculates calories using </strong><a href="https://www.active.com/fitness/calculators/bmr"><strong>Basal Metabolic Rate (BMR)</strong></a><strong>, the number of calories required at rest, added with average active calories from your workout.</strong></p><p>This metric was extremely important because I set new strength goals that require weight gain and I was not eating enough. Food tracking is not for everyone, but I believe understanding daily wear on your body is critical. Your body needs calories to operate and it is specific unit of measure that can be leveraged to stay healthy and help you achieve your personal goals.</p><h4><strong>Halo Tone and Temperature</strong></h4><p>At the start of 2019 I did not have a thermometer, now I have 2. One in the bathroom cabinet, and the other on my wrist. <strong>Halo monitors your skin temperature while you’re sleeping to contribute to your sleep efficiency score</strong>, and also throughout the day. Looking through the data I found that everyday around 4pm my body temperature would spike and I felt worn down. it was my radiators turning on, and since I have turned on my fan to help me from midday fatigue.</p><blockquote>Amazon Halo’s Tone feature has given me an understanding of how I am perceived and helped me prepare for presentations</blockquote><p>The creeper metric was Tone. <strong>Tone is about social and emotional well-being, Amazon says. </strong>This functionality is optional and can be turned off, but I enjoy having it on. Living in quarantine for the last year, I’ve communicated mainly through Zoom’s, Hangouts, Teams, or phone calls. This feature revealed how I am perceived and helped me prepare for presentations. Amazon says they are doing all the processing of Tone on the device and other data, if sent to the cloud ,is removed once processing is complete.</p><p>As each of these brands continues to evolve their products, I assume the key metrics will eventually become standard metrics. I absolutely benefited from running this experiment and continue to benefit from wearing both my Apple Watch and Amazon Halo device, always remember, <strong>self care is health care</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57a2035cc082" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Access Fitbit Data via API through Postman]]></title>
            <link>https://medium.com/analytics-vidhya/access-fitbit-data-via-api-through-postman-5730e2dc2890?source=rss-9fbde0cd23e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/5730e2dc2890</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[fitbit]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Anthony Westmoreland]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 16:45:54 GMT</pubDate>
            <atom:updated>2021-03-14T13:14:36.904Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyrKUvX9iW0IJ_zEWf9WaA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@abrkett?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Adam Birkett</a> on <a href="https://unsplash.com/s/photos/fitbit?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>For anyone who is interested in easily accessing your Fitbit data via API, this guide is intended for you. To keep things simple, I built a collection in <a href="https://www.postman.com/">Postman, a collaboration platform for API development</a>. This makes it really easy to access your data after completing the first few steps.</p><h4>Step 1 — Create a Fitbit account</h4><p>Create a Fitbit account at <a href="http://accounts.fitbit.com/">accounts.fitbit.com</a>.</p><h4>Step 2 — Register a placeholder application</h4><p>Once you’ve created your Fitbit account, login to <a href="http://dev.fitbit.com/">dev.fitbit.com</a> and “Register an App”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*fJeDugeBQZxcoatfnFcSnA.png" /><figcaption>Hover over the “Manage” tab and click the “Register an App” button.</figcaption></figure><p><strong>You do not need to have an application</strong>, you can insert dummy data for the field that are required to register, in the example below I used my website <a href="https://www.anthonywestmoreeland.com/">https://www.anthonywestmoreland.com</a> for any URL field. <strong>The only requirement is that you insert “</strong><a href="http://localhost/"><strong>http://localhost</strong></a><strong>” for the “Callback URL” field.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikIFGJ1ZIzQtYwclKN4vmQ.png" /></figure><p>Save your new application and <strong>save your Client ID and Secret </strong>that are created in this step.</p><h4>Step 3 — Base64 encode your Client ID and Secret</h4><p>The Fitbit API authentication flow use basic authentication to access your data. To keep it simple, let’s skip what all that means, and get the encoded token.</p><p>Use your client ID and client secret from Step 2, combining the credentials with a colon; so the end result will be clientId:clientSecret.</p><blockquote>Combine credentials with a colon (clientId:clientSecret) and use a base64 encoder to create your basic authentication token.</blockquote><p>Go to <a href="https://www.base64encode.org/">https://www.base64encode.org</a>, and paste in your combined credentials and hit the encode button. You will need to keep this base64 encoded token to make your api requests.</p><h4>Step 4 — Get your Fitbit Code</h4><p>Fitbit authentication flow also requires a code to access your data. You’ll need your client ID to access this code. Copy the below URL and <strong>insert your clientId where you see INSERT_CLIENT_ID_HERE</strong>, and paste into the address bar of the same browser that you’ve signed into your Fitbit Account previously.</p><blockquote><a href="https://www.fitbit.com/oauth2/authorize?response_type=code&amp;client_id=22C7SR&amp;redirect_uri=http://localhost&amp;scope=activity%20nutrition%20heartrate%20location%20nutrition%20profile%20settings%20sleep%20social%20weight">https://www.fitbit.com/oauth2/authorize?response_type=code&amp;client_id=<strong>INSERT_CLIENT_ID_HERE</strong>&amp;redirect_uri=http://localhost&amp;scope=activity%20nutrition%20heartrate%20location%20nutrition%20profile%20settings%20sleep%20social%20weight</a></blockquote><p>Once you navigate to the URL with your code, and hit enter, it may return “It works!” on the webpage (Chrome) or not (Safari) . What you need is the new URL in navigation bar, it should look like this: <a href="http://localhost/?code=a50bf0001d5dd7af04c0229c7052f760a9b1bd45#_=_">http://localhost/?code=a50bf0001d5dd7af04c0229c7052f760a9b1bd45#_=_</a>.</p><p><strong>You will need that code that starts after the = and ends before the #, so from the above, the code is: </strong><a href="http://localhost/?code=a50bf0001d5dd7af04c0229c7052f760a9b1bd45#_=_"><strong>a50bf0001d5dd7af04c0229c7052f760a9b1bd45</strong></a><strong>.</strong></p><h4>Step 5 — Use Postman to access your Data</h4><p>Once you have your base64 encoded credential <em>(Step 3)</em> and your Fitbit code <em>(Step 4)</em>, you’re ready to use <a href="https://www.postman.com/">Postman</a>, a collaboration platform for API development.</p><p>Copy the below link to import my Postman Fitbit Web API Collection, <a href="https://learning.postman.com/docs/getting-started/importing-and-exporting-data/#converting-postman-collections-from-v1-to-v2">here you will find a how-to-guide for importing a collection</a> via a link.</p><blockquote><a href="https://www.getpostman.com/collections/e1a89c9ea43d6b280410">https://www.getpostman.com/collections/e1a89c9ea43d6b280410</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JFpP6gA8aZ3pu8tv9fT3TA.png" /></figure><p>Once you’ve opened the collection, you will need to <a href="https://learning.postman.com/docs/sending-requests/variables/">set the Global environment variables</a>. <strong>Insert your codes into the appropriate fitbit_code and base64_Id_Secret current value fields and save.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1Ka5hqwh2u6fy1jWCoCLQ.png" /></figure><p><strong>Once you’ve saved the new Global environment variables, open the “Fitbit Authorization Code Grant Flow” at the bottom of the collection and press the send button. </strong>The response will be a 200 OK and you will see the “access_token”, “refresh_token”, and other params returned at the bottom of Postman in the response body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f84WoFLjC6gVfq8Huko_JQ.png" /></figure><p>This collection automatically saves your access_token and refresh_token to global environment variables. With that complete, you will be able to make subsequent calls to the different Fitbit API endpoints.</p><p><em>Please note there are many global environment variables. Each </em><a href="https://dev.fitbit.com/build/reference/web-api/explore/"><em>Fitbit API endpoint</em></a><em> has unique parameters to filter the data returned. You can easily change the global environment variables and save to properly filter your data.</em></p><p>Lastly, the access_token lasts 8 hours by default. If you’re working longer than that, you can go back to the “Fitbit Authorization Code Grant Flow”, change the grant_type to refresh_token in the query params, and put {{refresh_token}} in the value field to refresh your access.</p><p>Hopefully this helps others access their Fitbit data via API without having to cobble together a solution!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5730e2dc2890" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/access-fitbit-data-via-api-through-postman-5730e2dc2890">Access Fitbit Data via API through Postman</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>