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

Change save location (OSCAR)
#1
Change save location (OSCAR)
I am installing OSCAR on a new computer. I told it where to save data (E:\Documents) and thought it would automatically create the OSCAR directory. Instead, it is loose in the folder. A preference file.

I've not moved any of my data over but did create a profile. I've looked through stuff and can't find where to change the import data location! Help?
PaulaO

Take a deep breath and count to zen.




Post Reply Post Reply
#2
RE: Change save location (OSCAR)
You can fix this... Create the folder you want to use - presumably E:\Documents\OSCAR_Data - then move or copy the OSCAR files from E:\Documents into OSCAR_Data - that would be
>>> Preferences.xml Profiles profiles.xml Screenshots<<< two xml files and two folders, or only Profiles if you haven't imported any data

Then open a command prompt and start OSCAR by typing
"OSCAR --datadir E:\Documents\OSCAR_Data" - without the quotes, of course, and assuming you used the same name I did

Then quit OSCAR, and restart it as usual

That should sort it all out, or ask any questions if I wasn't clear -- I'm not a Windows guy, so I'm not sure how to get a command prompt, for instance
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#3
RE: Change save location (OSCAR)
Cool! Thanks!

If that doesn't work, or if I can't do it right, I'll just un- and re-install. There's nothing on here yet but the program itself.
PaulaO

Take a deep breath and count to zen.




Post Reply Post Reply
#4
RE: Change save location (OSCAR)
Okay, I uninstalled OSCAR and tried again. The bit to tell you where to store the data didn't appear. The installation put the pref file where the other one was. I am using an uninstall program but also used the search program to find all files and deleted them. It still wants to put it there. shrug. Typical for me.

So I installed it and tried the method listed above. Got this:

   
PaulaO

Take a deep breath and count to zen.




Post Reply Post Reply
#5
RE: Change save location (OSCAR)
If you wish to relocate the OSCAR Data directory, you will need to go into the registry. That's where the Windows version store this location.
Here is something I posted a while back.

The only place I can find to change the data directory is in the registry. I have several different versions of OSCAR and have different listings in the registry. I will use the name "OSCAR-Data" but your name may be different.

For OSCAR:
HKEY_CURRENT_USER\Software\OSCAR_Team\OSCAR-Data\Settings\AppData="Address of your data directory"

SleepyHead:
HKEY_CURRENT_USER\Software\Jedimark\*SleepyHead-Testing\Settings\AppData="Address of your data directory"
*(Again, your name may be different)
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
#6
RE: Change save location (OSCAR)
In Win10 I got the "--datadir" option to work as follows:

In the Command Prompt window
Code:
c:\>cd \Program Files\OSCAR
c:\Program Files\OSCAR>OSCAR --datadir OSCAR-data


A window will popup recommending the default location, select NO.  A second window will open asking you to select the location you want to use.  Choose your desired location and click "Select Folder".
This will also update the Registry file mentioned previously.

EDIT: It looks like the OSCAR-data directory needs exist already. So you would first need to create it at E:\> beforehand
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
#7
RE: Change save location (OSCAR)
Sorry Paula, I forgot about the execute path to OSCAR.

If you do as Jeff did, and cd to the location of the OSCAR program, then do the "OSCAR --datadir E:\Documants\OSCAR_Data" it should work, and fix the registry entry for you

This is after you have created the OSCAR_Data directory in E:\Documents
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#8
RE: Change save location (OSCAR)
Not to detract from the Windows based question Paula asked, but Mac users can do the following:

Create a new directory anywhere you want your OSCAR data to reside.  For example: /Users/<YourUsername>/Documents/NewOSCAR_data
If you have existing data you want to use then copy it to the new location.

Then in Terminal:
Code:
open -a OSCAR.app --args --datadir NewOscar_Data

A window will popup recommending the default location, select "NO".  A second window will open asking you to select the location you want to use.  Choose your new data directory location and click "Open".


@pholynyk, I could be mistaken but it didn't seem to matter if the path was included after --datadir.  I still got the window asking if I wanted use the default location.  Selecting NO then brings up the Finder window allowing you to select any directory.
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
#9
RE: Change save location (OSCAR)
ThanksThis solved my problem perfectly after a lot of failed re installs.
Should be in the Wiki or a sticky somewhere.
Thanks again!

(01-25-2020, 08:04 PM)Jeff8356 Wrote: In Win10 I got the "--datadir" option to work as follows:

In the Command Prompt window
Code:
c:\>cd \Program Files\OSCAR
c:\Program Files\OSCAR>OSCAR --datadir OSCAR-data


A window will popup recommending the default location, select NO.  A second window will open asking you to select the location you want to use.  Choose your desired location and click "Select Folder".
This will also update the Registry file mentioned previously.

EDIT: It looks like the OSCAR-data directory needs exist already.  So you would first need to create it at E:\>  beforehand
Post Reply Post Reply
#10
RE: Change save location (OSCAR)
(01-25-2020, 10:28 PM)Jeff8356 Wrote: Not to detract from the Windows based question Paula asked, but Mac users can do the following:

Create a new directory anywhere you want your OSCAR data to reside.  For example: /Users/<YourUsername>/Documents/NewOSCAR_data
If you have existing data you want to use then copy it to the new location.

Then in Terminal:
Code:
open -a OSCAR.app --args --datadir NewOscar_Data

A window will popup recommending the default location, select "NO".  A second window will open asking you to select the location you want to use.  Choose your new data directory location and click "Open".


@pholynyk, I could be mistaken but it didn't seem to matter if the path was included after --datadir.  I still got the window asking if I wanted use the default location.  Selecting NO then brings up the Finder window allowing you to select any directory.

Thanks for posting this, very useful. I now have moved my Osar_Data folder off my boot disc which was getting a little congested!
Thanks
Diagnosed October 2013.
Resmed S9 + H20 for 7 years
2020 updated  ResMed Autosense 10 and F20 Mask.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Time Change Action ggs5 3 143 11-04-2024, 02:17 PM
Last Post: Crimson Nape
  EncorePro 2.24 - change date format fredong77 1 185 10-13-2024, 08:53 AM
Last Post: Crimson Nape
  Wellue data off since daylight savings change brainfoggysleeper 5 646 08-21-2024, 08:40 AM
Last Post: Crimson Nape
  OSCAR at second location Brennie 4 335 08-08-2024, 01:08 PM
Last Post: Brennie
Question OSCAR data folder change oolong 3 574 06-15-2024, 09:27 PM
Last Post: Rickyricardo
  Can you change machine usage (time) threshold? berniep3 3 471 05-16-2024, 12:44 AM
Last Post: srlevine1
  OSCAR- How to set time change to (Daylight Savings time) Reesche 5 1,251 01-03-2024, 04:44 PM
Last Post: Reesche


New Posts   Today's Posts


About Apnea Board

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