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: 2)
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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Fitbit import to OSCAR ExtremeDeepSleep 5 205 04-21-2024, 07:04 AM
Last Post: tossinandturnin
  OSCAR import of Viatom/Wellue data - DST time base SleeperAwake21 5 957 03-30-2024, 02:21 PM
Last Post: dfunk
Question OK TO IMPORT SLEEP DATA FROM OLD SD CARD INTO OSCAR W/O MESSING UP CURRENT DATA? Plmnb 3 280 03-29-2024, 11:02 AM
Last Post: Plmnb
  Rescan app [doesn't see data import] kerm007 3 301 03-24-2024, 10:59 PM
Last Post: srlevine1
  Cannot import data from ResMed Astral 150 to ResScan or OSCAR BreatheEZ 8 2,522 03-16-2024, 10:18 PM
Last Post: PappaJoe
Question Spo2 data format Squid3083 11 2,366 03-11-2024, 11:22 PM
Last Post: Rebakim4
  import data from Philips Alice NightOne into OSCAR FHTC 6 351 03-09-2024, 08:36 AM
Last Post: Crimson Nape


New Posts   Today's Posts


About Apnea Board

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