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.
Login or Create an Account
(09-19-2021, 03:29 PM)Crimson Nape Wrote: Here is sergio's file extraction script:
Code:
for filename in `sqlite3 ./PlusebitO2.db 'select mFileName from sleepData'`; do echo $filename; (sqlite3 PlusebitO2.db "select quote(dataBuf) from sleepData where mFileName = '$filename'" | cut -d\' -f2 | xxd -r -p > $filename); done
If you have a version that will create the file, then transfer them as described above. Remember, in order for the app to generate the file, you must view the session while in the ViHealth app.
Good luck!
Can someone translate for me?
I have a SnoreO2 and a CheckMe O2 Max both by Viatom. Neither will connect to the O2 Insight App and my version of ViHealth does not have any Binary Files.
I did find the PulseBitO2 db, but now what? Do I use Sqlite3.exe to run this?
I also found this:
Quote:>sqlite3 c:/sqlite/chinook.db
sqlite> .headers on
sqlite> .mode csv
sqlite> .output data.csv
sqlite> SELECT customerid,
...> firstname,
...> lastname,
...> company
...> FROM customers;
sqlite> .quit
Hi Sleepy Willy! -
You found the correct database. I would make a copy of it and move it to a directory where you can access it using SQLite.
To use SQLite, you would issue that command from a Command Prompt while in the directory containing the copied database.
Also, it appears that with each release of the ViHealth app, another coder changes the table names in the database for no good reason. Here is another code snippet on the database with different table names. It ultimately produces the same end result.
Code:
for filename in `sqlite3 ./db_o2.db 'select checktime from tb_check'`; do
echo $filename; (sqlite3 db_o2.db "select quote(checktime) from tb_check where checktime = '$filename'" | cut -d\' -f2 | xxd -r -p > $filename); done
If your original command snippet does produce any results, try the second one. I also noticed you listed "C:\". I'm assuming that you are on a Windows computer. Unlike a Mac or Linux system, Windows doesn't usually add "Sqllite3" to it path declaration. This means you may have to do this yourself or use the complete path to the slqlite3 directory in you command.
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.
Not knowing the extent of your SQL abilities, download DB Browser for SQLite. Here is their website: https://sqlitebrowser.org/ This will allow you to look at the database more easily. You can then follow the name in the script to see where it does or doesn't lead.
- Red
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.
My SQL skills are actually decent, but I've never used SQLite. I'm happy to do it the easy way though.
It looks like the sleep data is only showing one row per night with no event details? I managed to dump the sleep data into Access, but they wanted real money to convert more than trial data. Although my sample data looks the same as what got dumped out to the command line.
OK, I have 14 files now, but they are all from 2020 and they are all blank. ? Obviously their is another version of the database. Should not be too hard to find, but the blank files? ? One of the Linux commands must be misbehaving, but I'm not getting any errors, unless the field name is incorrect.
Machine: ResMed Airsense 10 Autoset Mask Type: Full face mask Mask Make & Model: ResMed F30 Humidifier: Built in CPAP Pressure: 10-14 CPAP Software: ResScan
OSCAR
Other Software
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.
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.
The last listing is it! I didn't realize until I upgraded my phone yesterday that they had moved it. Copy that database to your computer and turn the SQL script loose on it.
Lord only knows where it will be on an iPhone. . .
- Red
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.