Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

New: .spoR manipulation tool
#1
New: .spoR manipulation tool
Hi all,

I've just finished hacking together a .spoR manipulation tool. It is written in Python, is currently command-line only and doesn't support .SpO2 files — but that'd be easy to add if there was interest in it.

The tool features:
  • Ability to override the date/time stored within the recording, in case you forgot to (or can't) set the date/time in your oximeter. I've also discovered that the CMS SpO2 Review tool (v1.5) writes the wrong date in the file itself if you've left the tool open overnight, even though the filename gets the correct date.
  • The ability to trim null samples from the start and end of the recording (eg, you started recording before you put it on, or took it off before you stopped recording)
  • The ability to crop the recording: exclude data before X and after Y. This is particularly useful if your recording includes data from waking hours, when you only want sleeping hours data imported into SleepyHead.

Where samples are deleted, the tool is smart enough to update the stored start of recording timestamp so's to preserve synchronisation when the .spoR file is imported.

Even though it's a CLI tool, it shouldn't be all that difficult for non-techies to use with some step-by-step instructions. But if there's demand for it, we could think about adding a GUI. However, that raises issues for platform independence: currently, the tool requires nothing more than the standard Python distribution, which can be downloaded and installed freely and easily.

If there's any interest in it, I can make it available. I won't attach it here (yet), because I don't know what the rules are about distributing code or pasting links to such things.
David.
Post Reply Post Reply
#2
RE: New: .spoR manipulation tool
Hi David,

I'm interested in what you've done. Can you tell me more?

Thanks!
Post Reply Post Reply
#3
RE: New: .spoR manipulation tool
(12-24-2015, 02:32 PM)strix Wrote: Hi all,

I've just finished hacking together a .spoR manipulation tool.  It is written in Python, is currently command-line only and doesn't support .SpO2 files — but that'd be easy to add if there was interest in it.

The tool features:
  • Ability to override the date/time stored within the recording, in case you forgot to (or can't) set the date/time in your oximeter.  I've also discovered that the CMS SpO2 Review tool (v1.5) writes the wrong date in the file itself if you've left the tool open overnight, even though the filename gets the correct date.
  • The ability to trim null samples from the start and end of the recording (eg, you started recording before you put it on, or took it off before you stopped recording)
  • The ability to crop the recording: exclude data before X and after Y.  This is particularly useful if your recording includes data from waking hours, when you only want sleeping hours data imported into SleepyHead.

Where samples are deleted, the tool is smart enough to update the stored start of recording timestamp so's to preserve synchronisation when the .spoR file is imported.

Even though it's a CLI tool, it shouldn't be all that difficult for non-techies to use with some step-by-step instructions.  But if there's demand for it, we could think about adding a GUI.  However, that raises issues for platform independence: currently, the tool requires nothing more than the standard Python distribution, which can be downloaded and installed freely and easily.

If there's any interest in it, I can make it available.  I won't attach it here (yet), because I don't know what the rules are about distributing code or pasting links to such things.


Hi, I am not sure if you are still around. I am intersted in the tool that you made, but I couldn't find it anywhere. I need to have a sample .spoR file so that I can create an adapter from a spo2 source file captured from my smart watch, then import to Oscar. Could you please kindly share your project or at least a sample .spor file used for testing?


Thanks!
Post Reply Post Reply
#4
RE: New: .spoR manipulation tool
Hi letitgoman! - Welcome

The last time the OP was on the board was, 10-26-2016, 12:10 PM. I wouldn't hold out much hope your message will be read.

- Red
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
#5
RE: New: .spoR manipulation tool
(10-23-2023, 08:45 PM)Crimson Nape Wrote: Hi letitgoman!  -  Welcome

The last time the OP was on the board was, 10-26-2016, 12:10 PM.   I wouldn't hold out much hope your message will be read.

- Red

Yea I don't have a high hope for this. Any tips where would be a better/best place to get a sample spor file (or other supported format) you think?

Thanks!
Post Reply Post Reply
#6
RE: New: .spoR manipulation tool
Download OSCAR source code. It has several pieces of code for several oximeters. Look in oscar > SleepLib > loader_plugins.

- Red
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Migration tool geoffhart1962 5 632 12-14-2022, 09:32 AM
Last Post: Jeff8356
  Oscar migration tool? mitchel674 6 2,371 04-03-2022, 08:09 PM
Last Post: mariuslaurentiu
  OSCAR wants me to use Migration Tool SleepyHenry 5 865 05-20-2021, 11:21 AM
Last Post: SleepyHenry
  Best data tool for Dreamstation (not Pro) Dedwin0927 5 1,250 06-26-2020, 02:29 PM
Last Post: sawinglogz


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.