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

How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
#51
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
(01-14-2023, 05:40 PM)Crimson Nape Wrote: It's simple. Go to the Viatom_Loader.cpp - line 242.  Add an asterisk "*" to the end of each list in the QString.

Here is the copy of the snippet that I used:
Code:
   return QStringList({"*20[0-5][0-9][01][0-9][0-3][0-9][012][0-9][0-5][0-9][0-5][0-9]*",
                       "*20[0-5][0-9]-[01][0-9]-[0-3][0-9] [012][0-9]:[0-5][0-9]:[0-5][0-9]*"

- Red

Are you planning to submit this to OSCAR?  If not I can open an issue and at least pass on the code change for them to consider implementing.
Post Reply Post Reply
#52
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
I think I submitted a merge request, but my track record is not good in this area.

- 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
#53
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
Your commit was merged this evening, Red.
Admin Note:

pholynyk passed away in October 2024
Click HERE to read his Memorial Thread

~ Rest in Peace ~
Post Reply Post Reply
#54
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
famewolf - or anyone else needs this script for Linux (or maybe Mac), here are the commands to create an executable file to strip off the ".dat" in the Viatom/Wellue filename. You need to run this while in your directory that has the files.

Code:
#!/bin/bash
rename 's/\.dat//' *
done

pholynyk - Thank you, Sir!!!  You are both a gentleman and a scholar.   Thanks


- 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
#55
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
(01-16-2023, 01:28 PM)Crimson Nape Wrote: ... this script for Linux (or maybe Mac), ...

Sorry Red, no command line utility "rename" native to Mac that I could find.  But I did find a couple of alternatives for Mac users.  Run from the command line in the folder the *.dat files are located (meaning you must "cd" into the correct folder first):

Code:
find . -name "*.dat" | while read f; do mv $f ${f%.dat}; done

or

for file in $(find . -name "*.dat"); do mv ${file} ${file%.dat}; done

Had to look those up on SO [HERE].  Both worked on some test files.
Jeff8356

NOTE:
Jeff8356 has not been active on forums since October, 2023.
He cannot reply to you.


MacBook Air (2017, Intel) | macOS Monterey (12.7) | OSCAR v1.5.1 | VM = Win10/Win11 |
How to Links:
Installing OSCAR on a Mac
Organizing your OSCAR charts
Attaching screenshots and files for the forum
OSCAR Help
OSCAR - The Guide


Post Reply Post Reply
#56
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
I opened an issue and attached a patch but specified I was not the author..just wanted to ensure the change got in front of somebody's eyes.  Apologies if I stepped on toes but I didn't see this reply till now. - Whoops....apparently it's in master now.   Will watch for the manjaro update.

@Jeff8356  That code looks like it ADDS a .dat extension to the end of the existing file.  Am I misreading it?
Post Reply Post Reply
#57
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
famewolf,

Both strip of the .dat from the filename. I had to look at those a few times also.

Some examples:

Code:
jeff@Jeff-MBA test % ls -la
total 0
drwxr-xr-x   7 jeff  staff   224 Jan 17 12:05 .
drwxr-xr-x+ 89 jeff  staff  2848 Jan 19 21:35 ..
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230101.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230102.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230103.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230104.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230105.dat
jeff@Jeff-MBA test % find . -name "*.dat" | while read f; do mv $f ${f%.dat}; done
jeff@Jeff-MBA test % ls -la
total 0
drwxr-xr-x   7 jeff  staff   224 Jan 19 21:36 .
drwxr-xr-x+ 89 jeff  staff  2848 Jan 19 21:35 ..
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230101
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230102
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230103
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230104
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230105

##### And the second command ######

jeff@Jeff-MBA test % ls -la
total 0
drwxr-xr-x   7 jeff  staff   224 Jan 19 21:37 .
drwxr-xr-x+ 89 jeff  staff  2848 Jan 19 21:35 ..
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230101.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230102.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230103.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230104.dat
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230105.dat
jeff@Jeff-MBA test % for file in $(find . -name "*.dat"); do mv ${file} ${file%.dat}; done
jeff@Jeff-MBA test % ls -la
total 0
drwxr-xr-x   7 jeff  staff   224 Jan 19 21:38 .
drwxr-xr-x+ 89 jeff  staff  2848 Jan 19 21:35 ..
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230101
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230102
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230103
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230104
-rw-r--r--   1 jeff  staff     0 Jan 16 15:28 20230105
jeff@Jeff-MBA test %
Jeff8356

NOTE:
Jeff8356 has not been active on forums since October, 2023.
He cannot reply to you.


MacBook Air (2017, Intel) | macOS Monterey (12.7) | OSCAR v1.5.1 | VM = Win10/Win11 |
How to Links:
Installing OSCAR on a Mac
Organizing your OSCAR charts
Attaching screenshots and files for the forum
OSCAR Help
OSCAR - The Guide


Post Reply Post Reply
#58
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
Hi Folks
For what its worth, you can directly import data files from your ring via ViHealth to a Mac computer by selecting binary and then using the AirDrop means to transfer it to your desktop. It is then saved to your downloads folder where you can easily upload it to OSCAR...  Data-Import Viatom/Wellue Data.

(02-06-2023, 10:22 AM)chazmofo Wrote: Hi Folks
For what its worth, you can directly import data files from your ring via ViHealth to a Mac computer by selecting binary and then using the AirDrop means to transfer it to your desktop. It is then saved to your downloads folder where you can easily upload it to OSCAR...  Data-Import Viatom/Wellue Data.

I should clarify- You can upload data from your PHONE to your Apple computer, which has received the recent data from your O2 ring... sorry for the miscommunication.
There but for the grace of God go I... breathing occasionally since 1959.
Post Reply Post Reply
#59
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
I'm trying to get things to work with ViHealth on Android. The latest version of the app
1. Creates .dat files named according to Unix time e.g. 1679...dat
2. Doesn't seem to have any of the header data that OSCAR expects

When I try to import into OSCAR there's an error message about the incorrect "signature" in the file, and then it crashes.

I tried v2.63 courtesy of Red, but it refuses to record any data on my phone. Can someone recommend another version of this app which works correctly with OSCAR?
Post Reply Post Reply
#60
RE: How to quickly sync Wellue O2 Ring Readings from Android to OSCAR
ViHealth v2.63 stores the data in a different directory than latter versions. It is usually off the root directory, "/phone". I believe it is, "/phone/ViHealth".

The newer versions of ViHealth add the ".dat" extension to the binary file. Just remove the extension from the filename and it will load in OSCAR. OSCAR's code has now been modified to accept the extension and will be included in future releases.

- 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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Oscar crashes when importing Wellue O2 ring data Armorwolf 24 1,084 12-08-2024, 01:11 PM
Last Post: Crimson Nape
  Export Wellue SpO2 data herenthere 0 170 11-25-2024, 07:37 PM
Last Post: herenthere
  Help with Resmed 11/Wellue O2 time sync SDCat 0 234 11-15-2024, 12:58 PM
Last Post: SDCat
  Trouble understanding how to import O2 ring info into Oscar katbrat 6 580 10-26-2024, 08:25 PM
Last Post: katbrat
  Wellue O2 Ring Archival Data ggs5 2 324 10-06-2024, 09:53 PM
Last Post: Crimson Nape
  O2 Ring History to PC Reggie5489 0 269 09-04-2024, 01:43 AM
Last Post: Reggie5489
Question How export all days for oximeter (O2 Ring) data only (no CPAP) ? DavidEsp 11 4,184 09-04-2024, 01:41 AM
Last Post: Reggie5489


New Posts   Today's Posts


About Apnea Board

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