An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Movin' on up
#52391 09/04/19 10:22 PM
Joined: Aug 2009
Likes: 14
ryck Offline OP
OP Offline

Joined: Aug 2009
Likes: 14
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


Last edited by ryck; 09/04/19 10:24 PM.

ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Movin' on up
ryck #52394 09/05/19 01:47 AM
Joined: Aug 2009
Likes: 16
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 16
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.

Last edited by joemikeb; 09/05/19 12:16 PM. Reason: addendum

If we knew what it was we were doing, it wouldn't be called research, would it?

— Albert Einstein
Re: Movin' on up
joemikeb #52397 09/05/19 04:28 PM
Joined: Aug 2009
Likes: 8
Offline

Joined: Aug 2009
Likes: 8
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: 24" M1 iMac, M2 Pro Mac mini with 27" BenQ monitor, M2 Macbook Air, MacOS 14.x; iPhones, iPods (yes, still) and iPads.
Re: Movin' on up
Ira L #52400 09/05/19 09:31 PM
Joined: Aug 2009
Likes: 14
ryck Offline OP
OP Offline

Joined: Aug 2009
Likes: 14
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

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C

Moderated by  cyn, dianne 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.017s Queries: 22 (0.013s) Memory: 0.5874 MB (Peak: 0.6479 MB) Data Comp: Zlib Server Time: 2024-03-29 06:15:32 UTC
Valid HTML 5 and Valid CSS