Page 12 of 14

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Mon Jun 27, 2011 11:20 am
by GumbyCT
This is taken from another post ....
OldLincoln wrote: Also, I absolutely LOVE the Sleepyhead software. Sure it doesn't have all the bells but I can stretch it across both monitors and really break it down to see what happened up close and in detail. Thanks to all who are working on it. I would like to know where the data is stored as I like to back it up. I'm currently copying the data from the SD to the PC as a back up, and reading from the PC so I know it's a good copy.

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Mon Jun 27, 2011 7:01 pm
by jedimark
GumbyCT wrote:This is taken from another post ....
OldLincoln wrote: Also, I absolutely LOVE the Sleepyhead software. Sure it doesn't have all the bells but I can stretch it across both monitors and really break it down to see what happened up close and in detail. Thanks to all who are working on it. I would like to know where the data is stored as I like to back it up. I'm currently copying the data from the SD to the PC as a back up, and reading from the PC so I know it's a good copy.
Hehe You guys are absolutely gonna love the new version then.. You can have just one or two graphs fill the whole window. Doing this is a little tricky/kludgy at the moment, but it works well once you get the hang of it..

For anyone needing to know how to backup, Copy the SleepApp folder in my documents.. Things are changing quite a bit in this folder structure though..(This is only alpha developer previews) You will definitely have to delete for this next version, as quite a bit has changed.

This folder might rename to SleepyHead or SleepyHeadData for consistency?

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Tue Jun 28, 2011 12:02 am
by Breathe Jimbo
jedimark wrote:This folder might rename to SleepyHead or SleepyHeadData for consistency?
SleepyHeadData would probably be the better of the two.

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Fri Jul 01, 2011 9:47 am
by OldLincoln
1. Does the import function append new data or overwrite all data? IOW, if my card were replaced would the old data remain?
2. Is it a standard SD card or require a Respironics specific card?
3. It says it will hold 3 months of data. Can I go to a larger card to hold more? How large?

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Fri Jul 01, 2011 10:38 am
by jedimark
OldLincoln wrote:1. Does the import function append new data or overwrite all data? IOW, if my card were replaced would the old data remain?
2. Is it a standard SD card or require a Respironics specific card?
3. It says it will hold 3 months of data. Can I go to a larger card to hold more? How large?
1. It keeps the stuff you imported last time, and only has to import files it doesn't have already..
2. Can point anywhere you like.. SD card, a USB stick backup, a copy in a folder somewhere, etc...
3. I think 2GB is the limit.. I can't say for sure if it supports SDHC.. Someone else can perhaps confirm this.

You can even change to a new machine with another serial number, and keep all your old data.. With the new SleepyHead Qt version coming that has ResMed support, you can even change BRAND. When you go back through history the right machine data for that day will display (the graphs shown will be different if one machine supports more stuff).. The only catch is you can only have one CPAP machine per day per user profile. (So no napping on your couch machine, and sleeping on your bed machine.. could be done, but I just don't want to support the mess.)

Not a good idea to rely on SleepyHead for backups.. Especially since this software is still in the early development stages. Format can change, and the database can need to be recreated. The other reason is SleepyHead stores it's copy of your data in a custom (but open) database format. So, it's always a good idea to back up your SD card regularly. It's easy to do:

Create a folder somewhere to hold all your backups, create a folder inside that with the date (reverse year-month-date helps sorting) and copy everything on your SD card to it each time you backup.

Alternatively you can merge all your backups together, keep copying your SD card over the top of just one backup folder.. (replacing any files that are already there) Just make sure not to move by accident.. This works fine as the files are stored in sessions and the numbers don't get reused.

** If you get a new machine, keep a separate backup folder for it, as it's serial number is different.. **

You can point Sleepyhead to your backup folder (which should contain the "P-Series" folder) and import whenever you need to recreate the older stuff in the PRS1 database that's not on your SD card..

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Fri Jul 01, 2011 1:11 pm
by M.D.Hosehead
Breathe Jimbo wrote:MD, it's a little complicated at the moment. It is not yet a self-contained executable on OS X. For now, you would need to install some other stuff to get the necessary libraries. This will change; it will become easier. A propos, do you have MacPorts on your Mac?

I don't, but it's free. If you are willing to do a little hand-holding via PM's, I'm willing to install it.

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Fri Jul 01, 2011 1:28 pm
by Breathe Jimbo
M.D.Hosehead wrote:
Breathe Jimbo wrote:MD, it's a little complicated at the moment. It is not yet a self-contained executable on OS X. For now, you would need to install some other stuff to get the necessary libraries. This will change; it will become easier. A propos, do you have MacPorts on your Mac?
I don't, but it's free. If you are willing to do a little hand-holding via PM's, I'm willing to install it.
Sure. You can find the prerequisites and installation instructions at http://www.macports.org/install.php

Alternatively, Troy pointed out that you can simplify the installation of QT by downloading it directly from http://qt.nokia.com/downloads

I don't know whether your Mac will have everything you need if you install only the QT SDK directly from Nokia. I do know that if you go the MacPorts route, which requires that you have all the Apple Xcode/developer stuff first, you will certainly have everything you need in addition to the QT SDK. I'm not a programmer, so it was easier for me to go the MacPorts route with the necessary prerequisites for MacPorts. Programmers seem a little hostile to MacPorts because, for their purposes, it is bloated. However, for us non-programmer types, MacPorts makes life a lot easier.

QT is something that you would install through MacPorts after installing MacPorts and its prerequisites. Be forewarned that QT took about 7 hours to build on my iMac and MacBook, so you would probably want to start that step shortly before bedtime and let it run all night. Let me know via PM when you have MacPorts and all its prerequisites installed, before you try to install QT. I can walk you through the process from that point on.

Probably the first thing you want to do is get Xcode through the App Store. Apple started charging $4.99 for it with version 4. Once you buy Xcode through the App Store, open your Application folder and double-click on Install Xcode.

You should already have X11 installed by default on Snow Leopard.

See your PMs for detailed, step-by-step instructions.

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Mon Jul 04, 2011 10:01 pm
by victormiller
I just downloaded Sleepyhead and I thought I'd give it a try. I've tried it both on my mac (I know that that's supposed to be flaky), and on my PC (running XP SP-3). Both give the same result: when they try to read the data from the SD card of my machine, they popup a window saying that there's an unhandled exception. Clicking retry/abort or ignore makes the program terminate. I understand that it's written in Python. I'm rather experienced in that. Is the source code available yet?

Victor

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Mon Jul 04, 2011 10:09 pm
by Breathe Jimbo
Victor, you must have an ancient version. It uses QT. It is not currently written in Python.

Here are the instructions that I gave to someone else who, like me, is not a programmer. If you have any problems, alas, I am not a programmer and cannot provide significant help. These steps worked for me:

I assume you have Snow Leopard.

These preliminary steps worked for me:

1. Open the App Store (in the Apple pull-down menu in the upper left-hand corner). Purchase and download Xcode for $4.99. This will take a while because Xcode is big.

2. Open your Applications folder and double-click on Install Xcode. I don't remember installation options, but if you see any you basically want EVERYTHING. Installation will take a while because Xcode is big. After installation, reboot to be on the safe side.

3. Go to http://www.macports.org/install.php Since you have installed Xcode and X11 is installed by default as part of Snow Leopard, you can scroll to the second section called "Mac OS X Package (.pkg) Installer." Left-click on the hyperlink for "Snow Leopard" in the first sentence and follow the instructions to install MacPorts from the .dmg file that will be downloaded.

4. Open your Applications folder and the Utilities subfolder therein, and double-click on the Terminal icon.

5. Right-click on the Terminal icon in your Dock, left-click on Options, and left-click again on Keep in Dock. All your commands to MacPorts will be via the command line in the Terminal, so you should have the Terminal in your Dock.

6. Save these two commands to a file somewhere because you will want to enter them periodically, on the command line in the Terminal, to keep MacPorts up-to-date:

sudo port selfupdate
sudo port upgrade outdated

7. Enter "sudo port selfupdate" on the command line, hit Return, enter your password, and hit Return again. Wait for the command line to reappear.

8. Same for "sudo port upgrade outdated" and hit Return, etc. Wait for the command line to reappear.

9. Warning: it took about 7 hours to build QT on my iMac and MacBook, so you may want to do the next step near bedtime and let it run overnight. Enter "sudo port install qt4-mac +debug +universal" on the command line, hit Return, etc.

10. When you see the command line again (after several hours), enter "port info qt4-mac" and hit Return. You are ready to get and build the SleepyHead source code if you see the following output:

$ port info qt4-mac
qt4-mac @4.7.3 (aqua)
Variants: (+)debug, demos, examples, framework, mysql,
odbc, psql83, psql84, psql90, psql91, [+]quartz,
raster, sqlite2, (+)universal

Description: Qt Tool Kit: A cross-platform framework
(headers, data, and libraries) for writing
cross-platform GUI-based applications.
Homepage: http://qt.nokia.com/

Build Dependencies: pkgconfig
Library Dependencies: zlib, dbus, openssl, sqlite3, tiff, libpng,
libmng, jpeg
Conflicts with: qt3, qt3-mac, qt4-mac-devel
Platforms: macosx
License: unknown
Maintainers: michaelld@macports.org

The next steps that worked for me are the following:

1. Open, or switch back to, the Terminal.

2. Enter "cd" (no quotes here or below) and hit Return.

3. Enter "mkdir git" and hit Return (yes, g i t, without spaces).

4. Enter "cd git" and hit Return.

5. Enter "git clone git://sleepyhead.git.sourceforge.net/gitroot/sleepyhead/sleepyhead" and hit Return.

[Ooops! I do not know how to enter this ^^^^^ without having it become abbreviated.]

6. Enter "cd sleepyhead" and hit Return.

7. Enter "qmake" and hit Return.

8. Enter "make -j3" and hit Return.

9. Enter "mv sleepyheadqt.app ~/desktop" and hit Return.

10. Enter "make clean" and hit Return.

11. Go to your Desktop and double-click on the sleepyheadqt icon. (If it is not there, then there was a problem building SleepyHead.)

12. To load your data, your SD card will need to be mounted on your system, so that it appears as a Device in the list on the upper left side of a Finder window. You can, alternatively, make a "duplicate" of your SD card and drag the duplicate folder to your Desktop, the Documents folder, or elsewhere. To load your data in SleepyHead, click on the Import icon on the right side of the Welcome window and navigate to your SD card or the duplicate folder. It takes about 10 second to import at this point.

N.B. SleepyHead is currently alpha code - a very rough work in progress. Much does not work, and many things will change. At this point, your use is purely experimental and should be focused on finding bugs and other problems. SleepyHead is not "ready" for ordinary use and should not be used as your main software. Keep your old software and always backup your data. Do not make any medical decisions, or change anything, based on what you see in SleepyHead. Read the disclaimers on the Welcome page.

This forum is perhaps not the best place to be discussing software building issues. You might want to join the mailing list, which you can find at http://sourceforge.net/mail/?group_id=513997

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Mon Jul 04, 2011 10:15 pm
by Lizistired
Can anyone explain this?
I borrowed a friend's card in anticipation of the Resmed version.
It took me awhile to figure out how to navigate but it works well.

Why would the flow just drop off.

Image


A couple of other questions... If these are answered somewhere, please point me in that direction.
There were a couple of flags I couldn't figure out. A dark green "U0E" or something like that?
What is VS2?
What are the little orange blocks? They look like maybe time markers for apneas but I couldn't nail it down.

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Mon Jul 04, 2011 11:28 pm
by jedimark
Lizistired wrote:Can anyone explain this?
I borrowed a friend's card in anticipation of the Resmed version.
It took me awhile to figure out how to navigate but it works well.

Why would the flow just drop off.

Image


A couple of other questions... If these are answered somewhere, please point me in that direction.
There were a couple of flags I couldn't figure out. A dark green "U0E" or something like that?
What is VS2?
What are the little orange blocks? They look like maybe time markers for apneas but I couldn't nail it down.
Lizistired, that's because the wave file was either missing or corrupted for one of the sessions of that night on the SD card. It still shows the event data.. If the PRS1's card is left out or put in late, it won't start recording waveform data, but will top off the Event data afterwards, as the machine has internal memory for that.

Perhaps it would be better to just cap it with what waveform data is there, but I need a way to explain to the user data is missing. Usually, the whole night's wave files are missing and it shows a message underneath saying "No Waveform Available" under this data. These cases don't and shouldn't happen very often.

VS2 is really the PRS1's Snore graph.. It's what Encore shows as Vibratory Snore in Encore's Sleep Therapy Flags.. For some silly reason they show a different set of Vibratory Snore overlaid on the waveform graphs. These waveform ones affect the pressure, so I show them as VS in event flags..
VS2 will go, as the Snore graph the flags are taken from is probably enough, and ResMed has this too.. (I want to keep similarities between CPAP machines where possible) The ResMed data has a more detailed snore graph, and certainly looks more attractive.

The little orangey square blocks are the PRS1's Pressure Pulse.. ResMed uses oscillation, where PRS1 just sends a burst of pressure and measures the feedback.. A technical way to achieve the same thing to detect "Centrals" or "Clear Airway" apnea events. (both methods are technically bullocks without a RE belt)

The Qt version is working a lot nicer that what you see in this version, especially as I have had a chance to work with both the PRS1 & S9 CPAP importers.

I hope to have a test version up for S9 users soon. I've been a little hesitant to release an early one, because ResScan is very good software compared to Encore, and I kinda don't want people getting a wrong impression because my software is a little "early".. people don't seem to get the alpha developer preview concept.. This is nowhere near a beta - it's gizzards are still hanging out..

That said, I need input from S9 users too on what to implement.. so I may have to just get over that one. If enough S9 users are willing to test an extra buggy version, I'll upload a build.. It will be 10MB.. quite a size leap from the wx version..

Current PRS1 users wanting to try it, will absolutely have to delete the SleepApp folder under My Documents. I haven't renamed the data folder yet. (Not going to until the data format is stable)

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Tue Jul 05, 2011 12:34 am
by Lizistired
Thanks Mark, that clears up alot.
My friend has been on CPAP for 10 years and had never seen her data.

The only other problem I'm having is in the Summary Graphs.

1. I don't know how to adjust the ranges. The AHI graph goes from 0-45, and her AHI is usually <2 so the graph doesn't show.
2. The graphs don't move together. So they are all different date ranges when I try to move them.

I wasn't sure if maybe I needed to download again, but I have -4229.

For Resmed, the big thing will be to view SPO2 in the same app. That's a pain to keep switching everytime you zoom in.
The Tidal Volume and Respiratory Rate will be nice too but that's already out there, I just never bothered to do it.
I really haven't heard any complaints about ResScan other than the "skew".

Thanks for everything you are doing, and still finding time to answer all these questions.

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Tue Jul 05, 2011 12:42 am
by jedimark
Lizistired, See the more recent test version posted in the main forum..

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Wed Jul 06, 2011 3:47 pm
by archangle
I'm still ignorant as to what U0E means.

Re: SleepyHead: Updated Version 0.7-4229 Alpha

Posted: Wed Jul 06, 2011 5:16 pm
by Lizistired
archangle wrote:I'm still ignorant as to what U0E means.
I think I read it's another RERA that respironics reports.