Apnea Board Forum - CPAP | Sleep Apnea
Sleepyhead Journals - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: Sleepyhead Journals (/Thread-Sleepyhead-Journals)



Sleepyhead Journals - Roy289 - 09-14-2016

I use the Note feature to capture data on each nights (some) results or anything new such as trying a new mask. Can the journal be exported from SH over a period of time?


RE: Sleepyhead Journals - AlanE - 09-14-2016

You can export your entire journal as an XML.

File > Backup Journal

[Image: Backup_Journal.PNG]

Keep in mind, there is no way to import that back if it gets corrupt. For that purpose you'll need to copy the journal folder located in your profiles\[name]

[Image: journal_location.jpg]


RE: Sleepyhead Journals - Sleeprider - 09-14-2016

Alan, you're such a software/computer geek. Glad you are here to help.


RE: Sleepyhead Journals - Roy289 - 09-14-2016

Alan

Thanks for the details. I found that Backup Journal creates an XML file in the user directory under Profiles named <user name's>Journal.xml. example:
Alan's Journal.xml This file is the journal logs but when trying to read it only the first record is readable using word. There appears to be an error in the html code but not sure what exactly. Using Wordpad all the text is available but my knowledge of html is very limited.


RE: Sleepyhead Journals - AlanE - 09-16-2016

What is the file date on that? I have one that was created from 0.9.8-1 version of SH. Not sure on the error but it has a !Doctype declaration that throws a syntax error on mine.


RE: Sleepyhead Journals - AlanE - 09-16-2016

(09-14-2016, 06:40 PM)Sleeprider Wrote: Alan, you're such a software/computer geek. Glad you are here to help.

Have to have something to do when I can't sleep. Coffee


RE: Sleepyhead Journals - Roy289 - 09-16-2016

Sleepyhead v1.0.0-beta-1 Revision: 7dcb76e (master branch).

I found an online utility that could extract the "text" from the xml file but left out the temporal (date) info. Manually added the date back to the text ... in the end have my journal file but need a better solution.

Attempting to load the file into Chrome produces this error message; error on line 1 at column 22: DOCTYPE improperly terminated
This is similar to the results you received. Currently looking at some utilities in Javascript which might help.