Skip to content

ElectricalPaul/emay2medview

Repository files navigation

emay2medview

Convert a CSV file from an EMAY™ SleepO2™ or Wellue™ O2Ring™ pulse oximeter into ChoiceMMed™'s MedView™ (.DAT) format, which can be imported into OSCAR, the Open Source CPAP Analysis Reporter.

Install

Requires Python 3.6 or newer.

Install the code either by cloning the repo or downloading a ZIP.

Clone the git repository

git clone https://github.com/ElectricalPaul/emay2medview.git

Download and DIY

  1. Go to the emay2medview repo on Github
  2. Click on "Clone or Download"
  3. Click on "Download ZIP" and save the ZIP file
  4. Unzip the file
  5. Optional (recommended): create a virtual environment: virtualenv venv && source venv/bin/activate
  6. Install the package, e.g. pip install <zipfile> or cd <extracted zip> && pip install .
  7. ???
  8. Profit! Convert data files!

Usage

  1. First you need some data from your EMAY SleepO2
    1. Open the EMAY app on your phone
    2. Select a recorded session to open the "Detail" view
    3. Select "Report"
    4. Select "Data List"
    5. Select "Share"
    6. Save the file to Google Drive or iCloud, or email it to yourself
    7. Transfer the file from the cloud or email to your local system, e.g. Downloads
  2. Run emay2medview from the shell/Terminal/Command Prompt and give it the name of the CSV file, e.g. emay2medview 20240226.csv
  3. Import the resulting DAT file (e.g. 20240226.DAT) into OSCAR with the Oximetry Wizard

Options

The only required argument is the input CSV filename in EMAY format.

Optionally, specify:

  • --output-file, -o Path to a custom filename for the MedView output data file. If unspecified, the output file will use the CSV's filename and location but with a .dat extension.
  • --input-format, -f Data format of the input CSV file. Defaults to emay but o2insight may be specified for O2Ring data exported from O2 Insight Pro. You may also invoke the script using the o2insight2medview command in lieu of specifying this option.

Future Plans

Notes

Format code with black and default settings.

Check version requirements with vermin -vvv *.py.

Acknowledgments

This program is based on code posted on the Apnea Board forums by user "joeblough", and is used by permission.

EMAY and SleepO2 are trademarks of EMAY (HK) Limited.

ChoiceMMed and MedView are trademarks of Beijing Choice Electronic Tech Co.

O2Ring, O2 Insight Pro, and Wellue are trademarks of Shenzhen Viatom Technology Co., Ltd. (Viatom).

About

Convert a CSV file from an EMAY SleepO2 pulse oximeter into ChoiceMMed's MedView (.DAT) format for import into OSCAR CPAP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages