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
  OSCAR and NONIN 3150 oximeter? Polskafriend 36 3,137 Yesterday, 05:45 PM
Last Post: Crimson Nape
  CMS50F Pulse Oximeter data storage fix john mayo 6 1,414 12-21-2024, 05:52 PM
Last Post: jbeam
  [Improv. Req] Standardize File Interface Windows gizmotech 0 378 12-04-2024, 06:33 PM
Last Post: gizmotech
  BMC GII SD Card English Language file phenomejohn 32 6,509 11-14-2024, 02:21 AM
Last Post: Norrie570
  Where to upload zip file for a new model Resmed? stevenospam 18 1,298 10-14-2024, 01:08 PM
Last Post: CaptainDave
  How to open .pdat file BB37 4 851 10-11-2024, 01:14 AM
Last Post: Glen Moray
  Discrepancy with desaturation events between Sleepyhead and Oximeter software Asjb 3 2,247 09-28-2024, 03:23 AM
Last Post: THEVGE


New Posts   Today's Posts


About Apnea Board

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