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

OSCAR SpO2 CSV import
#21
RE: OSCAR SpO2 CSV import
now it works :-)

as a filler, i wrote a script for converting
emay-csv's from eu into us time.


Attached Files
.txt   emay_eu2us.sh.txt (Size: 667 bytes / Downloads: 8)
Post Reply Post Reply
#22
RE: OSCAR SpO2 CSV import
(03-15-2024, 04:06 PM)capman Wrote: still.

with "12/10/2021,11:32:14,98,85":
python3 ./emay2medview.py emay_us.csv
Converting emay_us.csv into emay_us.dat ...
ERROR:root:Invalid date/time '12/10/2021 11:32:14' on line 2

with "10/12/2021,11:32:14,98,85":
python3 ./emay2medview.py emay_us.csv
Converting emay_us.csv into emay_us.dat ...
ERROR:root:Invalid date/time '10/12/2021 11:32:14' on line 2

Hey capman, as joeblough said, I've adopted his code and made several improvements, but apparently not enough error checking or internationalization.

I get an error when I try to download the CSV file that ST Dog attached in https://www.apneaboard.com/forums/Thread...CSV-import, so I'm just working with the 4 lines of data that ST Dog included.

I'm looking into it. Meanwhile, if you want to file an issue on the github page, go to https://github.com/ElectricalPaul/emay2medview/issues
Post Reply Post Reply
#23
RE: OSCAR SpO2 CSV import
(03-15-2024, 04:06 PM)capman Wrote: still.

with "12/10/2021,11:32:14,98,85":
python3 ./emay2medview.py emay_us.csv
Converting emay_us.csv into emay_us.dat ...
ERROR:root:Invalid date/time '12/10/2021 11:32:14' on line 2

with "10/12/2021,11:32:14,98,85":
python3 ./emay2medview.py emay_us.csv
Converting emay_us.csv into emay_us.dat ...
ERROR:root:Invalid date/time '10/12/2021 11:32:14' on line 2

It's failing because the time doesn't have "AM" or "PM." I'll fix that when I have some time and post an update.
Post Reply Post Reply
#24
RE: OSCAR SpO2 CSV import
(04-14-2024, 01:49 PM)ElectricalPaul Wrote: It's failing because the time doesn't have "AM" or "PM." I'll fix that when I have some time and post an update.

I just pushed a fix, see https://github.com/ElectricalPaul/emay2medview

I updated the time and date parsing to allow the user to add D_FMT and/or T_FMT variables to the system environment to provide the `strptime` format strings. If those aren't available, I have several formats that I try to parse, and the first one that is successful gets promoted to the head of the line for the next time.
Post Reply Post Reply
#25
RE: OSCAR SpO2 CSV import
Is there a reason exporting the data as an .SPO2 file shouldn't work?

I am just starting with OSCAR, so please be gentle.

The EMAY website gives instructions for exporting .SPO2 files from the app and importing it into OSCAR using the Oximetry Wizard. I'm too new to post a URL but it's emaycare.com slash blogs slash knowledges slash how-to-export-spo2-data-to-oscar

It doesn't say which device to select, but the illustration shows CMS50D+/E/F etc. so I used that.

Following those instructions I was able to import some old data from my EMO-90 pulse oximeter, and it looks correct.

Edit: Is there a way to import multiple files at once with the Oximetry Wizard? I had to do them one at a time.
Post Reply Post Reply
#26
RE: OSCAR SpO2 CSV import
(09-03-2024, 04:16 PM)Toolworker Wrote: Is there a reason exporting the data as an .SPO2 file shouldn't work?

I am just starting with OSCAR, so please be gentle.

The EMAY website gives instructions for exporting .SPO2 files from the app and importing it into OSCAR using the Oximetry Wizard. I'm too new to post a URL but it's emaycare.com slash blogs slash knowledges slash how-to-export-spo2-data-to-oscar

It doesn't say which device to select, but the illustration shows CMS50D+/E/F etc. so I used that.

Following those instructions I was able to import some old data from my EMO-90 pulse oximeter, and it looks correct.

Edit: Is there a way to import multiple files at once with the Oximetry Wizard? I had to do them one at a time.

Yes, exporting as SPO2 works, but that option wasn't in the EMAY app when Joe wrote his program, I based mine off his, and then someone else on GitHub (the name escapes me right now) contributed some clean-up and support for another program's CSV format.

I just use the SPO2 format now.

When importing into OSCAR, I don't bother to select the oximeter (it's still on ChoiceMMed MD300W1), and I just double-click the file.

If there is a way to import multiple files at once into Oximetry Wizard, I haven't found it yet. I usually import my CPAP data and then the SPO2 data once a week, so it's not too bad ...
Post Reply Post Reply
#27
RE: OSCAR SpO2 CSV import
The SpO2 files must be imported from a data file and not from the device. The device selection was for selecting the correct direct communication protocol for the device. They are all outdated and only support the very old devices.

To the best of my knowledge, multiple files can be selected. Just select the first file, then holding the Shift key, select the last one.
- Red
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
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
#28
RE: OSCAR SpO2 CSV import
(09-03-2024, 06:18 PM)Crimson Nape Wrote: The SpO2 files must be imported from a data file and not from the device.  The device selection was for selecting the correct direct communication protocol for the device.  They are all outdated and only support the very old devices.

To the best of my knowledge, multiple files can be selected.  Just select the first file, then holding the Shift key, select the last one.
- Red

The Oximetry Wizard has three options: Import directly from device, Record from attached device, and Import from a datafile. I used Import from a datafile.

To select multiple files, I tried (1) Select first, Shift and select last; (2) Select multiple files holding Ctrl down; and (3) Ctrl-A. None worked.
Post Reply Post Reply
#29
RE: OSCAR SpO2 CSV import
Thanks for posting that. That code is a SleepyHead holdover, and none of the current OSCAR Team volunteers have the newer versions.

Also, there is no need to quote a previous post. In this case, it was close enough for someone to follow the thought pattern. This helps for our vision impaired members and avoids them having to hear the same thing repeatedly. Please see this thread for a better explanation, https://www.apneaboard.com/forums/Thread...-t-have-to

- Red
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
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
#30
RE: OSCAR SpO2 CSV import
Re selecting multiple files: I am now importing data from the O2 Insight Pro program, using OSCAR's Data | Import Viacom/Wellvue Data command. That dialog does allow selecting multiple data files using Ctrl-click and also using click, Shift-click.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  O2 import DST > ST 1:14am happened twice dgconder 5 66 11-03-2024, 08:55 PM
Last Post: dgconder
  Oscar Crash to desktop on SP02 import WallyPepper 7 518 11-01-2024, 09:36 PM
Last Post: Crimson Nape
  Trouble understanding how to import O2 ring info into Oscar katbrat 6 393 10-26-2024, 08:25 PM
Last Post: katbrat
  OSCAR: Questions regarding a potential import for Garmin data littleyoda 2 163 10-19-2024, 10:37 AM
Last Post: littleyoda
Idea Generic import to OSCAR? Oscer? I Ardly Know Er 1 336 10-19-2024, 03:48 AM
Last Post: littleyoda
  Encore Basic Data Import juan8474 1 499 08-16-2024, 10:07 AM
Last Post: Irish7281
  OSCAR 1.5.3 Import issue. kayak1 2 323 08-08-2024, 01:21 PM
Last Post: kayak1


New Posts   Today's Posts


About Apnea Board

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