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 Profile Renaming?
#11
RE: OSCAR Profile Renaming?
OSCAR Profile Renaming Procedure
=================================

As there is no built-in procedure for renaming a profile in OSCAR, 
this manual procedure may be used instead:

NOTE!!  When editing files as instructed below, Always make a backup copy of
each file before making any changes.  Also, ALWAYS use a text editor such
as Notepad or Xed to make the changes.  DO NOT use a Word Processor program,
as the file will likely be corrupted and destroyed.

In this example the original profile is named "Alan", and the new name will
be "AlanS9".  To use this example, replace "Alan" and "AlanS9" as needed.

1) Close OSCAR if open.

2) Find the OSCAR data structure.  In this example, it was found in:
    /home/alan/Documents/OSCAR_Data.
  In Windows or Mac the path location will be different.

3) Edit the file .../OSCAR_Data/Preferences.xml
  Change the line:
    <Profile type="QString">Alan</Profile>
  to read:
    <Profile type="QString">AlanS9</Profile>
  Save and close the file.

4) Edit the file .../OSCAR_Data/profiles.xml
  Change the line:
    <profile path="{home}/Profiles/Alan/Profile.xml" name="Alan"/>
  to read:
    <profile path="{home}/Profiles/AlanS9/Profile.xml" name="AlanS9"/>
  Save and close the file.

  Note that this edit may not be required, as there is a comment
  in the file that it is not used by Desktop OSCAR.

5) Edit the file .../OSCAR_Data/Profiles/Alan/Profile.xml.
  Change the line:
    <UserName type="QString">Alan</UserName>
  to read:
    <UserName type="QString">AlanS9</UserName>
  Save and close the file.

6) In .../OSCAR_Data/Profiles, rename the profile directory.
  In this case, rename directory "Alan" to "AlanS9".

7) Open OSCAR, check that the renamed profile is appropriately recognized.
  All imported data and statistics should appear as expected.
A.Becker
PAPing in NE Ohio, with a pack of Cairn terriers
Post Reply Post Reply






Donate to Apnea Board  
#12
RE: OSCAR Profile Renaming?
That's excellent Alan. Do you mind if I include it in the Oscar wiki?

A couple of minor points:

Step 3) is not strictly necessary - this entry in .../OSCAR_Data/Preferences.xml tells Oscar which profile to open in, and is re-set every time Oscar is executed. If the string does not match an existing profile Oscar opens in the profile page (otherwise it opens in the Welcome page).

Step 5 fixes the user name. There are sometimes two other locations which have the name from the profile, <FirstName type="QString"> and <UserName type="QString"> , but these don't affect the execution of Oscar (except for an incorrect name in the profile).
Post Reply Post Reply
#13
RE: OSCAR Profile Renaming?
Thanks, DB,
You're welcome to use any or all of the procedure however you wish.
A.Becker
PAPing in NE Ohio, with a pack of Cairn terriers
Post Reply Post Reply
#14
RE: OSCAR Profile Renaming?
Thanks again Alan. It's now in the wiki at this address: http://www.apneaboard.com/wiki/index.php...ofile_Name

Note that I might look at restructuring this part of the wiki later to separate out the profile procedures from importing data for the first time.

Edit: I've rearranged the pages somewhat. The profile page is now here: http://www.apneaboard.com/wiki/index.php...ofile_Page
Post Reply Post Reply






Donate to Apnea Board  
#15
RE: OSCAR Profile Renaming?
Hi DB,
Huge thanks for the wiki work - I'm sure that it will be found by more people being in the wiki than buried in this post.  I'll be glad if someone finds it useful.
A.Becker
PAPing in NE Ohio, with a pack of Cairn terriers
Post Reply Post Reply
#16
RE: OSCAR Profile Renaming?
I have now finished testing the treatment modes in my new Airsense 10 Autoset For Her unit.  For results see: http://www.apneaboard.com/forums/Thread-...rapy-Modes

During those experiments, I created some temporary profiles to isolate statistics  and no longer need to keep them.  Then I discovered there is no function in OSCAR to delete a profile.  So I developed the following as a companion procedure to the one above for Renaming a profile.  I hope this may be useful for someone.


OSCAR - Manual Procedure for Deleting a profile
===========================================================
As there is no built-in procedure for deleting an obsolete profile in OSCAR,
this manual procedure may be used instead:

1) Find the OSCAR data structure.  In this example, it was found in:
    /home/alan/Documents/OSCAR_Data.
  In Windows or Mac the path location will be different.

2) Open OSCAR, select and open a profile that is to be kept.  Then close OSCAR.
  This insures that the file .../OSCAR_Data/Preferences.xml will not contain a
  reference to the profile to be deleted.

3) Backup or archive the profile(s) to be deleted, if appropriate.

4) In .../OSCAR_Data/Profiles, delete the profile directory structures for the
  profile(s) to be removed..

5) Open OSCAR, check that the deleted profile(s) are no longer listed.
  All retained imported data and statistics should appear as expected.
A.Becker
PAPing in NE Ohio, with a pack of Cairn terriers
Post Reply Post Reply
#17
RE: OSCAR Profile Renaming?
(07-09-2020, 10:55 PM)becker44a Wrote: As there is no built-in procedure for deleting an obsolete profile in OSCAR,

In the profile selection screen there is a button that is labeled "Destroy Profile".  Did that not remove the profile(s) completely?

   
Using a 13" MacBook Air (2017), MacOS Catalina (10.15.7), OSCAR v1.2.0
In a VM: Win10 1909 (18363.836)

Installing OSCAR on a Mac
Organizing your OSCAR charts
Attaching images and files for the forum
OSCAR Help
OSCAR Data Interpretation
Post Reply Post Reply






Donate to Apnea Board  
#18
RE: OSCAR Profile Renaming?
Hi Jeff,
I simply didn't see that button, since it wasn't grouped with the other buttons.  I should have looked better.
A.Becker
PAPing in NE Ohio, with a pack of Cairn terriers
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  User profile/ Machine settings ? S.L. Ping Beauty 10 209 08-08-2020, 07:59 PM
Last Post: Sleeprider
  Can I delete a profile in Oscar? JUllian 1 143 07-18-2020, 09:08 PM
Last Post: Crimson Nape
  Editing Profile Information [OSCAR] Homerec130 4 277 05-04-2020, 02:25 PM
Last Post: GuyScharf
Angry Manual Sleepyhead to OSCAR data/profile migration? startreking 11 800 04-30-2020, 09:19 PM
Last Post: sleepyBuzz
  Oscar shuts down when open profile is selected. Bullabill 22 1,744 02-03-2020, 02:19 PM
Last Post: pholynyk
Sad Oscar kills the Ubuntu VM it is running in [solved: bug in VirtualBox, not OSCAR] fredex 1 350 12-16-2019, 08:47 PM
Last Post: fredex
Question Updating Profile [in OSCAR] Bompa 3 324 12-15-2019, 11:13 AM
Last Post: Bompa


New Posts   Today's Posts






About Apnea Board

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