Location/Format of SleepyHead Data
My husband is using SleepyHead on a Mac. He would like to import the data from his Oximeter that is stored in SleepyHead into Mathematica so he can do further statistical analysis on his nightly data.
Can you tell me where to find the SleepyHead data documentation such as formats and location? I am a retired software engineer and he is an enginer who also understands programming stuff.
I did look at the Wiki and SourceForge websites and could not find detailed enough information.
Thank you in advance.
RE: Location/Format of SleepyHead Data
.
Can any mac users help TillerBee?
.
03-28-2016, 08:19 AM
(This post was last modified: 03-28-2016, 08:24 AM by whmagill.)
RE: Location/Format of SleepyHead Data
(03-26-2016, 02:54 PM)TillerBee Wrote: My husband is using SleepyHead on a Mac. He would like to import the data from his Oximeter that is stored in SleepyHead into Mathematica so he can do further statistical analysis on his nightly data.
Can you tell me where to find the SleepyHead data documentation such as formats and location? I am a retired software engineer and he is an enginer who also understands programming stuff.
I did look at the Wiki and SourceForge websites and could not find detailed enough information.
Thank you in advance.
With the Mac client, you can find the datastorage location by looing at the "Select Profile" window which pops up. -- At the bottom is a window labled "Folder:" with the file name/path.
I believe, the raw SleepyHead data you are looking for (assuming you are using v0.9.8-1 testing)
is stored in ~/Documents/SleepHeadData-Testing/Profiles/<name>/<machine>/Events
or psossibly in:
~/Documents/SleepHeadData-Testing/Profiles/<name>/<machine>/Backup/DATALOG/<year>
I don't use an Oximeter, so there is probably a separate folder for the data from that device, but I do not know.
As far as documentation -- there isn't any that I know of. . . except for the fact that the Source Code is available over at SourceForge
.
https://sourceforge.net/projects/sleepyhead/files/
Bill Magill
Retired computing and networking professional
(ARPAnet, Unix and Mac OSX)
"People assume that time is a strict progression of cause to effect,
but actually — from a non-linear, non-subjective viewpoint —
it's more like a big ball of wibbly-wobbly... timey-wimey... stuff."
The Doctor
RE: Location/Format of SleepyHead Data
(03-28-2016, 08:19 AM)whmagill Wrote: As far as documentation -- there isn't any that I know of. . . except for the fact that the Source Code is available over at SourceForge .
https://sourceforge.net/projects/sleepyhead/files/
Sigh. Just went to check out Source Forge, and apparently JediMark has removed both the binaries and source for all versions of the Mac client.
. . . Or at least they are not obvious.
He is apparently "updating" the GPL (or whatever) license because of some clown who started selling a CD of his code plus the info on this forum for $50. See his blog for details:
https://www.jedimark.net/node/5
Bill Magill
Retired computing and networking professional
(ARPAnet, Unix and Mac OSX)
"People assume that time is a strict progression of cause to effect,
but actually — from a non-linear, non-subjective viewpoint —
it's more like a big ball of wibbly-wobbly... timey-wimey... stuff."
The Doctor
RE: Location/Format of SleepyHead Data
I'm not familiar with Mac but if that version has the same Help > About as Widows you can find the location of the data folder there.
RE: Location/Format of SleepyHead Data
(03-28-2016, 12:40 PM)AlanE Wrote: I'm not familiar with Mac but if that version has the same Help > About as Widows you can find the location of the data folder there.
Yes it does. The About function is the same on the Mac. It is available after the user's Profile has been selected.
I'm just more familiar with the "Select Profile" screen simply because it pops-up every time I launch SleepyHead.
Bill Magill
Retired computing and networking professional
(ARPAnet, Unix and Mac OSX)
"People assume that time is a strict progression of cause to effect,
but actually — from a non-linear, non-subjective viewpoint —
it's more like a big ball of wibbly-wobbly... timey-wimey... stuff."
The Doctor
RE: Location/Format of SleepyHead Data
The oximetry data is stored under SleepyHeadData-Testing->Profile->Your User Name->OximeterModel with hex code. There are 2 directories here; 1. Events and 2. Summaries. The data in the Events directory has a ".001" extension and the data in the Summaries directory carries a ".000" extension. Both file types are stored in a binary form. I would suggest that you download the SleepyHead source code and look at the code that is used to read and write these files.
Sorry I'm not of any further help.
RE: Location/Format of SleepyHead Data
(03-28-2016, 08:32 AM)whmagill Wrote: (03-28-2016, 08:19 AM)whmagill Wrote: As far as documentation -- there isn't any that I know of. . . except for the fact that the Source Code is available over at SourceForge .
https://sourceforge.net/projects/sleepyhead/files/
Sigh. Just went to check out Source Forge, and apparently JediMark has removed both the binaries and source for all versions of the Mac client.
. . . Or at least they are not obvious.
https://sourceforge.net/p/sleepyhead/cod...ster/tree/
source and compiled packages (files) are in different places.
RE: Location/Format of SleepyHead Data
Going forward, it might be easier to save the oximeter data to disk in its native format and then let Sleepyhead import it rather than connecting the oximeter directly to Sleepyhead. The Sleepyhead developer, Mark Watkins, documented the Contec CMS50 series data format here: (Scroll to his last post on 2014-06-30.)
https://sourceforge.net/p/sleepyhead/bugs/207/