An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Topic Options
#52391 - 09/04/19 03:22 PM Movin' on up
ryck Offline


Registered: 08/04/09
Loc: Okanagan Valley
My Motorola Razr is headed for the tech recycling depot. A couple we know just bought the latest, greatest iPhones and gave us their old iPhone 6s. We're just getting to figure out some of the stuff on them. One app that I find particularly interesting is the Health App which tracks your steps and also calculates how many floors the hills are equivalent to. Neat. Two questions:

1. How does it calculate flights?

2. How do I open the transferred data?

I sent the data via mail to my iMac but, when I unzip the file (using Unarchiver), the documents are gibberish. I was expecting something that would work in Excel. The unzipped file are called export_cda.xml and export.xml



Edited by ryck (09/04/19 03:24 PM)
_________________________
ryck

iMac (Retina 5K, 27", 2017), 3.4 GHz Intel Core i5, 8GB RAM, 2400 MHz DDR4
OS Mojave 10.14.6
Canon MX710 Printer
Epson Perfection V500 Photo Scanner
Carbon Copy Clone on 1TB LaCie USB-C
Carbon Copy Clone on 500GB OWC Mercury OTG Pro

Top
#52394 - 09/04/19 06:47 PM Re: Movin' on up [Re: ryck]
joemikeb Online
Moderator

Registered: 08/04/09
Loc: Fort Worth, Texas
Apple's iPhone Health App does not collect data directly rather it is a repository of data accumulated from the Apple Watch, a variety of third party apps that in turn collect data from glucometers, sphygmomanometers, electronic scales, etc. as well as accumulating and recoding health data from medical providers online patient "portals". Exercise metrics are generated from data and measurements taken by the Apple Watch and communicated to the Health app on the paired iPhone by Bluetooth. The watch data is in turn generated by actual pulse measurements, ECGs, as well as arm and body movement detected through multi-axis accelerometers. You need to tell the watch when you begin strenuous exercise to get accurate credit.

I don't know about calculating flights but various movement metrics are imputed from a combination of physical movements typically associated with a particular activity and the measured pulse rate all taken from the Apple Watch.

As to the data you sent to the iPhone an xml file is not readable by Excel or Numbers. Those apps can read .CSV (comma separated value) files or their own proprietary formats. This article will explain what an XML file is and how to read them as well as a link to a site that will translate XML to CSV. NOTE: be aware that is a Windows-centric site. However how you would get the csv data into the Health app I can't help you other than most of the data can be keyed in manually.

ADDENDUM Since XML is a first cousin to HTML (both are markup languages) some browsers can read XML files. I don't know if that includes Safari or not.


Edited by joemikeb (09/05/19 05:16 AM)
Edit Reason: addendum
_________________________
joemikeb • moderator

Top
#52397 - 09/05/19 09:28 AM Re: Movin' on up [Re: joemikeb]
Ira L Offline


Registered: 08/13/09
Loc: California
Originally Posted By: joemikeb
Apple's iPhone Health App does not collect data directly rather it is a repository of data accumulated from the Apple Watch, a variety of third party apps that in turn collect data from glucometers, sphygmomanometers, electronic scales, etc. as well as accumulating and recoding health data from medical providers online patient "portals".


Only partially correct. Yes, data are collected as stated above, but them also collects it directly, to the best of my knowledge. I do not wear an Apple Watch nor have any other active health apps, and the Health app mysteriously knows my steps and flights. Obviously it can track these when I am carrying the iPhone, but that is not always the case.

In the newer iPhones (6 and up?) there are electronics that act like an altimeter. Track little forward progress and a change in altitude and you might have a flight of stairs.
_________________________
On a Mac since 1984.
Currently: 27" iMacs, Macbook Air, macOS 10.14.x,; iPhones, iPods and iPads galore!

Top
#52400 - 09/05/19 02:31 PM Re: Movin' on up [Re: Ira L]
ryck Offline


Registered: 08/04/09
Loc: Okanagan Valley
Originally Posted By: Ira L
In the newer iPhones (6 and up?) there are electronics that act like an altimeter. Track little forward progress and a change in altitude and you might have a flight of stairs.

At an Apple support site someone with a similar query as mine got this response: "According to the Health app, a flight of stairs is counted as approximately 10 feet (3 meters) of elevation gain (approximately 16 steps)."
_________________________
ryck

iMac (Retina 5K, 27", 2017), 3.4 GHz Intel Core i5, 8GB RAM, 2400 MHz DDR4
OS Mojave 10.14.6
Canon MX710 Printer
Epson Perfection V500 Photo Scanner
Carbon Copy Clone on 1TB LaCie USB-C
Carbon Copy Clone on 500GB OWC Mercury OTG Pro

Top

Moderator:  cyn, dianne