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

python file converter for EMAY sleep pulse oximeter
#1
python file converter for EMAY sleep pulse oximeter
Hi all -

i recently bought the EMAY sleep pulse oximeter and was disappointed that i could not import the data into OSCAR. after having a look around the oscar code, i decided the easiest thing to do was write a python script to convert the CSV file that you can save from the iPhone to a DAT file which conforms to the MD300W1 data file format that oscar already knows how to import.

for now this is a command line program, and needs to be run from the command shell on windows, or terminal.app on OSX. i think giving it any kind of GUI requires tkinter which will be a lot of work (that i have no experience with.) i think perhaps it could be bundled into an application using pyinstaller though, which might alleviate all the problems inherent in setting up a python environment that includes tkinter.

anyway, to use this program on the mac, you just get your CSV file into your mac from the iphone - you can save it into icloud drive from the EMAY app, or you could message or email it to yourself. in Terminal.app, first change directories to where the file lives: example: cd ~/Downloads to go to your downloads folder. then to execute the program, first rename it from emay_to_md300w1.py.txt to emay_to_md300w1.py, and put it in the same directory where your CSV files are. then, type python3 ./emay_to_md300w1.py EMAY_filename.csv and it will run and create EMAY_filename.dat, which you can then import into oscar with the oximetry wizard.

let me know if you have any problems or questions on usage. the script tries to check the first line of the CSV file to make sure it's really an EMAY csv, but beyond that it does not do any other error checking. if the file is malformed the script will probably just terminate without closing the dat file.


Attached Files
.txt   emay_to_md300w1.py.txt (Size: 3.47 KB / Downloads: 22)
Post Reply Post Reply
#2
RE: python file converter for EMAY sleep pulse oximeter
With joeblough's permission, I have updated the program to add more error checking. I've made the code publicly available under a BSD 3-clause license. I can't post a link, so I have to type it out as "github.com slash ElectricalPaul slash emay2medview"

I'll be working on the other improvements joeblough wanted - a GUI and a way to install the program.

I hope this program is as useful to others as it has been to me.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Where to upload zip file for a new model Resmed? stevenospam 15 469 10-01-2024, 12:00 PM
Last Post: Crimson Nape
  Discrepancy with desaturation events between Sleepyhead and Oximeter software Asjb 3 2,044 09-28-2024, 03:23 AM
Last Post: THEVGE
  OSCAR and NONIN 3150 oximeter? Polskafriend 21 1,357 09-27-2024, 12:33 PM
Last Post: e727147
  Importing Data from EMAY Pulse Oximeters Toolworker 0 167 09-04-2024, 10:27 AM
Last Post: Toolworker
Question How export all days for oximeter (O2 Ring) data only (no CPAP) ? DavidEsp 11 3,624 09-04-2024, 01:41 AM
Last Post: Reggie5489
Question AHI from OSCAR from Sp02/Pulse only? djbclark 2 208 08-20-2024, 11:46 AM
Last Post: Crimson Nape
  Wellue Viatom File Import Pogo007 3 363 08-05-2024, 07:11 AM
Last Post: since1984


New Posts   Today's Posts


About Apnea Board

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