Sleepyhead and zeo csv data

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
shb
Posts: 63
Joined: Tue Mar 20, 2012 12:22 am
Location: Brisbane, Australia

Sleepyhead and zeo csv data

Post by shb » Sun Apr 22, 2012 12:00 am

Am probably doing something dumb here... just trying to get my zeo data into SH (for one night).

So I've downloaded the CSV frm the ZEO site - I can see my S9 data in the daily tab in SH - I click data-import zeo- etc.. and click on the csv file... Then it says ZEO CSV import complete... But I can't see the graph anywhere ?

Have I done something wrong ? There are about 5 days of zeo data in the CSV (non contiguous). Just one - the last one (last night) corresponds to the s9 cpap data showing in Sleepyhead...

Thoughts anyone ?

_________________
Mask

User avatar
edm_msu
Posts: 198
Joined: Thu Mar 15, 2012 10:45 am
Location: USA, Michigan

Re: Sleepyhead and zeo csv data

Post by edm_msu » Mon Apr 23, 2012 7:36 am

I'm not using SleepyHead so I can't test this.

As a general troubleshooting procedure,
Copy the original file twice and rename the two new files. The first is something like Zeo Most Data.csv. The second is something like Zeo One Night Data.csv.
Open the Zeo Most Data.csv file in Excel. Does everything look right or does it look corrupted (as far as you can tell)?
Completely delete the row that has last night's data. Save as a .CSV (not .xls).
Try to import the new file into SleepyHead.
Open the Zeo One Night Data.csv file.
Completely delete the data rows that have all of the data, except for last night's data. Save as a .CSV (not .xls)
Try to import the new file into SleepyHead.

Did this help?
Ed M.

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Like SleepyHead software better. CMS-50F Oximeter

shb
Posts: 63
Joined: Tue Mar 20, 2012 12:22 am
Location: Brisbane, Australia

Re: Sleepyhead and zeo csv data - SAMPLE FILE ATTACHED

Post by shb » Mon Apr 23, 2012 5:31 pm

Thanks very much for trying - and giving a suggestion...

Sleepyhead gives a message that the data has loaded successfully -but it doesn't show anywhere. Same with either multiple records or with just one night's data.

Here is the ZEO data from last night (just one record).. http://members.optuszoo.com.au/shb1/zeodata.csv

It comes from the ZEO mobile (And downloaded from the ZEO website).

Anyone with sleepyhead installed - try to load that data in and ayou will see what I mean - IT says it loads successfully - but (on my computer anyway) nothing displays..

Any / all suggestions welcome

_________________
Mask

John_Jason
Posts: 55
Joined: Sun Apr 08, 2012 12:07 am
Location: USA 97217

Re: Sleepyhead and zeo csv data - SAMPLE FILE ATTACHED

Post by John_Jason » Mon Apr 23, 2012 5:48 pm

shb wrote:Thanks very much for trying - and giving a suggestion...
Sleepyhead gives a message that the data has loaded successfully -but it doesn't show anywhere. Same with either multiple records or with just one night's data.
Here is the ZEO data from last night (just one record).. http://members.optuszoo.com.au/shb1/zeodata.csv
It comes from the ZEO mobile (And downloaded from the ZEO website).
Anyone with sleepyhead installed - try to load that data in and ayou will see what I mean - IT says it loads successfully - but (on my computer anyway) nothing displays.
Any / all suggestions welcome
I downloaded it, and got the same results as you did. SleepyHead seems to load the data (from Data > Import Zeo Data), but displays nothing. Wonder if we're doing something wrong or if it is a bug in SleepyHead, or maybe we just haven't found the right button to make SleepyHead display the data.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Sleepyhead and zeo csv data

Post by jedimark » Tue Apr 24, 2012 4:14 am

If the zeos datestamps are wrong, or not being read correctly it might bug out and add them to the wrong year.

Zeo support is only relatively new, and still needs quite a bit of work. :/

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
pats
Posts: 289
Joined: Sun Apr 22, 2012 5:52 pm

Re: Sleepyhead and zeo csv data

Post by pats » Tue Apr 24, 2012 6:09 pm

jedimark wrote:If the zeos datestamps are wrong, or not being read correctly it might bug out and add them to the wrong year.

Zeo support is only relatively new, and still needs quite a bit of work. :/
I've started looking into this. The first problem I found is at line 239 in ZEOLoader.cpp:

MorningFeel=linecomp[idxMorningFeel].toInt(&ok);
if (!ok) dodgy=true;

The MorningFeel column in the .csv file is empty (part of a string of consecutive commas with no data between them), ok is 0 at the if test, so dodgy gets set to true, and shortly afterwards causes a continue.

Replacing "dodgy=true" in line 240 with "MorningFeel=0" fixes the problem. (I thought there was more to it, but loading the same session more than once into the same profile is not supported).

Is there a different forum that would be more appropriate for discussing SleepyHead internals?

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: Software: SleepyHead.

User avatar
pats
Posts: 289
Joined: Sun Apr 22, 2012 5:52 pm

Re: Sleepyhead and zeo csv data - SAMPLE FILE ATTACHED

Post by pats » Tue Apr 24, 2012 8:25 pm

shb wrote:Sleepyhead gives a message that the data has loaded successfully -but it doesn't show anywhere. Same with either multiple records or with just one night's data.

Any / all suggestions welcome
Here's a possible workaround: Try opening the .csv in a spreadsheet, such as Excel. Scroll right until you find the column headed "MorningFeel" (column W for the sample data). If any data rows have an empty cell in that column, change it to a number such as zero. Save as .csv.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: Software: SleepyHead.

shb
Posts: 63
Joined: Tue Mar 20, 2012 12:22 am
Location: Brisbane, Australia

Re: Sleepyhead and zeo csv data

Post by shb » Tue Apr 24, 2012 9:42 pm

Yes that's got it ! Great work !

Just needs a value in "morning feel", which is col W in excel - 0 does it -

I too would like to continue discussion about Sleepyhead internals.. Not sure where is appropriate. I've downloaded the code and had a quick look at the oximeter importing stuff.
My C++ skills are *very* rusty - having last used them in a productive way in 1993... Also fumbling through Qt ...

But I can get it working (ie loading pulse and spO2 data) for the CMS50i datafile - which is a bit different from what supported in the older machines. But probably need - someone else to put it into the code for common use..

Also - I reckon the way that basementdwellinggeek displays the sleep stages is the way to go. Rather than as a graph per se.. But I don't know what graphic options are easily done ?

_________________
Mask

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Sleepyhead and zeo csv data

Post by lazer » Tue Jul 03, 2012 12:11 pm

shb wrote:Yes that's got it ! Great work !

Just needs a value in "morning feel", which is col W in excel - 0 does it -
Tried this in the other empty columns as I already had a "3" in "morning feel". I'm still not seeing any report or graph when in SleepyHead after Data/Import Zeo Data which does seem to work.

Any other ideas to try?

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image

shb
Posts: 63
Joined: Tue Mar 20, 2012 12:22 am
Location: Brisbane, Australia

Re: Sleepyhead and zeo csv data

Post by shb » Tue Jul 03, 2012 2:40 pm

Do u get the MSG "zeo csv import complete" ?

_________________
Mask

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Sleepyhead and zeo csv data

Post by lazer » Tue Jul 03, 2012 9:36 pm

shb wrote:Do u get the MSG "zeo csv import complete" ?
Yeah but no idea how to view the data.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image

User avatar
MaxDarkside
Posts: 1199
Joined: Sun Dec 18, 2011 4:21 pm
Location: Minneapolis, MN

Re: Sleepyhead and zeo csv data

Post by MaxDarkside » Tue Jul 03, 2012 10:10 pm

lazer wrote:
shb wrote:Do u get the MSG "zeo csv import complete" ?
Yeah but no idea how to view the data.
I looked in File | Preferences... and on the Graphs tab in there I see a check box for a graph called "Sleep Stage". Is that checked on [X] ? If yes, have you looked, after importing data, down in the lower right on the Daily tab in the main window at the little pop-up control to see if Sleep Stage appears there? (I'm the blind leading here, because I've never used this feature in SleepyHead).

_________________
Mask: Quattro™ FX Full Face CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS-50E Oximeter, Zeo Bedside, Software: Comm'l grade AI analytics server & tools & SleepyHead
Do or Die... Sleep Apnea killed me, but I came back. Click for my story
Please visit my My Apnea Analytics blog. Maybe we can help each other.
54 yrs, 6' 1", 160->172 lbs

shb
Posts: 63
Joined: Tue Mar 20, 2012 12:22 am
Location: Brisbane, Australia

Re: Sleepyhead and zeo csv data

Post by shb » Tue Jul 03, 2012 11:46 pm

Well it works for me.c

I do remember that I dragged that graph (in the daily tab) to near the top - so it is one of the first ones that I see. By default I guess it was near the bottom of the list...

Also - you need to add values in every cell in that column - I just add zeros. There are a few numbers there as on the zeo site I did enter a few times how I felt in the morning. But very row needs a value in it. Column W in excel - they save as a CSV file. After the import message displays the graphs should be there for each day..

_________________
Mask

User avatar
Lizistired
Posts: 2835
Joined: Tue Dec 14, 2010 10:47 pm
Location: Indiana

Re: Sleepyhead and zeo csv data

Post by Lizistired » Wed Jul 04, 2012 12:26 am

I just tried it with an old csv file. The days that have sleep data show up in pink instead of blue on the calendar. I don't have zeo data for all the days though so some days just have the sleep stage graph.
Now I can't remember the 1, 2, 3, 4, stages.
wake, rem, light, deep

_________________
Mask: Swift™ LT Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Swift FX sometimes, CMS-50F, Cervical collar sometimes, White noise, Zeo... I'm not well, but I'm better.

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Sleepyhead and zeo csv data

Post by lazer » Wed Jul 04, 2012 8:25 am

MaxDarkside wrote:
lazer wrote:
shb wrote:Do u get the MSG "zeo csv import complete" ?
Yeah but no idea how to view the data.
I looked in File | Preferences... and on the Graphs tab in there I see a check box for a graph called "Sleep Stage". Is that checked on [X] ? If yes, have you looked, after importing data, down in the lower right on the Daily tab in the main window at the little pop-up control to see if Sleep Stage appears there? (I'm the blind leading here, because I've never used this feature in SleepyHead).
Yep, I have the box checked for "Sleep Stage". Still no luck.

I'll try today on my "home" computer since off work...

Happy 4th Everyone!

To shb: Yea, I had also done the "every cell with a value - entering a 0 in the empty ones in excel then resaving/re-importing"... No dice

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image