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) Bookmarks not using clock offset properly
#1
(OSCAR) Bookmarks not using clock offset properly
Hi all

So it appears that when you click on a bookmark in OSCAR, it doesn't take into account the clock offset preferences when displaying the selected area of the chart.

How to recreate:
1) Set your clock offset to an hour (or whatever is easiest for testing)
2) Select an area of the chart (for example at 02:00 to 02:05)
3) Click to create the bookmark. The bookmark time will correctly show the selected time.
4) Zoom into a different area of the chart (or back out to 100%).
5) Click on the bookmark. When you do so, note the start time for the chart area will be different from the time you bookmarked, and so will not show the correct area you wanted to display.

Expected behaviour:

The bookmark time and the area of the chart shown should be the same, both should take into account the clock offset setting in the preferences.

Current behaviour:

I suspect that the code that selects the area of the graph simply doesn't take into account the clock drift/offset in the preferences. If you have created a bookmark for a time at/near the beginning or end of the chart, depending on the direction of the offset) and you click on that bookmark, OSCAR will display an error message saying that the bookmark is in a currently disabled area of the chart.

   

The image included above shows the selected time immediately after creating the bookmark (correctly showing as approximately 02:00 to 02:05, with the bookmark starting at 01:58 and change) at the top and the chart displayed when you click on that bookmark (incorrectly showing the time an hour beforehand, because it hasn't taken into account the offset). The dialog box was from clicking on the first bookmark in the list, which started at the vest start of the chart, and so OSCAR tried to zoom the chart to a time that doesn't exist in the data.
Post Reply Post Reply
#2
RE: (OSCAR) Bookmarks not using clock offset properly
I think the whole notion of clock drift was not well understood and poorly implemented.

My preference would be to eliminate it.
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: (OSCAR) Bookmarks not using clock offset properly
To be honest, I still have no real idea how it works, and how I managed to get it to only apply to some data but not the rest. Because now when I alter it, it affects ALL the data which is... very frustrating as I found an easier way (tweaking the Viatom data file) than using the drift, but now if I turn it off NONE of my CPAP data lines up with my PulseOx data. Otherwise, I'd turn it off and be done with it, especially as editing the file isn't exactly tough. So if anyone can explain how I can turn the setting off without having it mess up the time sync between all of my CPAP/PulseOX data, that'd be good!
Post Reply Post Reply
#4
RE: (OSCAR) Bookmarks not using clock offset properly
I find clock drift very useful as I have data sources that are well synchronized to real time (BLE motion sensor and Wellue SleepU) as well as CPAPs which are difficult to synchronize and drift. (Or impossible to change the clock on in the case of my old PR 50 series System One). There is an outstanding request to make the drift code more flexible.

The OSCAR 1.2 bookmark code is broken in that it stores the bookmark with drift removed (if CPAP data is present for that day) in order to cater for the situation where you are using the bookmark after changing drift (although the text label would not match in that case), but does not apply drift when using the bookmark. This is day 0 behavior looking at the original commit back from SleepyHead in Jan 2012.

I think the simplest approach for now is to keep storing the bookmarks in the same way and have the inverse action on using the bookmark. There are still some issues with that approach but that can be dealt with as part of a broader drift rework should it occur.

Edit: Bookmarks work correctly if you move to a different day and then come back and use the bookmark. However, if you then add another bookmark to that day or change the journal then the old bookmarks will move by the drift value. I'll submit a fix shortly.
Post Reply Post Reply
#5
RE: (OSCAR) Bookmarks not using clock offset properly
Thanks for that (and for pointing out the workaround). I greatly appreciate all the hard work that the people working on OSCAR put in to produce such a wonderful and free too.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  New software version doesn't view properly, wide screen mode? piratekitty 3 365 02-10-2024, 08:38 PM
Last Post: LoudSnorer
  CPAP clock drift enhancement for OSCAR (multiple time-dependent corrections) tungpust 13 2,410 02-27-2023, 01:22 AM
Last Post: PjotterHasApn
Question Bookmarks (or hack) for User-Defined Events? DavidEsp 4 546 02-10-2023, 06:26 PM
Last Post: DavidEsp
Idea Time Zones, and Clock Skews, and Poorly Designed Devices, Oh My! 0xdec0ded 8 1,048 05-09-2022, 10:03 AM
Last Post: sawinglogz
  Flow Limitations not scored properly in "S" mode? OSCAR 1.3.0 SleepyCPAP 6 892 01-13-2022, 10:45 PM
Last Post: SleepyCPAP
  made a hash of my A10 clock, trying to fix OSCAR cathyf 1 663 03-17-2021, 05:52 AM
Last Post: OpalRose
  OSCAR clock drift bug orand 3 712 11-11-2020, 01:48 PM
Last Post: orand


New Posts   Today's Posts


About Apnea Board

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