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.
Requires Python 3.6 or newer.
Install the code either by cloning the repo or downloading a ZIP.
git clone https://github.com/ElectricalPaul/emay2medview.git- Go to the emay2medview repo on Github
- Click on "Clone or Download"
- Click on "Download ZIP" and save the ZIP file
- Unzip the file
- Optional (recommended): create a virtual environment:
virtualenv venv && source venv/bin/activate - Install the package, e.g.
pip install <zipfile>orcd <extracted zip> && pip install . - ???
Profit!Convert data files!
- First you need some data from your EMAY SleepO2
- Open the EMAY app on your phone
- Select a recorded session to open the "Detail" view
- Select "Report"
- Select "Data List"
- Select "Share"
- Save the file to Google Drive or iCloud, or email it to yourself
- Transfer the file from the cloud or email to your local system, e.g.
Downloads
- Run
emay2medviewfrom the shell/Terminal/Command Prompt and give it the name of the CSV file, e.g.emay2medview 20240226.csv - Import the resulting
DATfile (e.g.20240226.DAT) into OSCAR with the Oximetry Wizard
The only required argument is the input CSV filename in EMAY format.
Optionally, specify:
--output-file,-oPath 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,-fData format of the input CSV file. Defaults toemaybuto2insightmay be specified for O2Ring data exported from O2 Insight Pro. You may also invoke the script using theo2insight2medviewcommand in lieu of specifying this option.
- Add a GUI, possibly with
tkinterdirectly, or PySimpleGUI - Make a standalone program using PyInstaller
Format code with black and default settings.
Check version requirements with vermin -vvv *.py.
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).