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

Feature request -- Air11 time zone, have OSCAR do the right thing.
#1
Feature request -- Air11 time zone, have OSCAR do the right thing.
I'll start by saying that I am somewhat familiar with the outright religious wars in the the operating systems world over how to correctly treat time. This is something that even windows does correctly -- all time on computers is kept in GMT, and at the point that you ask for a time stamp the translation to localtime gets done according to the computer's time zone setting and all the right logic that is programmed into the operating system. On a modern computer you don't set the clock, the computer gets the time from an NTP server, you set the time zone, and then the computer uses the time and the time zone to calculate localtime.

With that as prologue, I'm thinking that ResMed has actually done time-keeping properly on the Air11. The system setting is the time zone, and it looks like part of the daily phone home has the cpap sync with an NTP server.

That means that it should be reasonably simple for OSCAR to take that information and run with it and deal with time well.

The Air11's time-zone value is right there in the settings, and OSCAR reads and stores settings.

The computer's time zone setting is readily available with a system call.

My feature suggestion is that OSCAR should take all of that readily-available information and convert all of times in an Air11 data feed into the computer's time zone.

In addition to making the average user's experience simple, I think that spoofing the time-zone setting properly would provide a rather elegant solution to the night-shift worker's problem, too.

Take this as an example: imagine that you live in GMT-7, and you sleep during the day (the GMT-7 day). If OSCAR could do the time-zone magic I'm requesting, then the right thing to do would be to set your Air11 to be in time zone GMT+5. Then suppose you went to sleep at 7am and slept until 3pm. Your Air11 would record that as 7pm to 3am and record it as a single night, with all of the dates correct. Then when OSCAR reads your data in, it looks in the Air11 settings and sees that the cpap thinks it lives in GMT+5, and it asks the computer and finds out that the computer thinks it's in GMT-7. So then OSCAR displays all of your graphs as running from 7am to 3pm.

We could call this the "Margaritaville Meridian" in honor of the Jimmy Buffett song, because it's always 5 o'clock somewhere!
Post Reply Post Reply
#2
RE: Feature request -- Air11 time zone, have OSCAR do the right thing.
It appears that you put some thought into this.  Kudos!  A fresh set of eyes and ideas are always helpful.  

I would like to point out that Mac and Linux store the computer's bios clock in UTC, Windows sets the bios clock to the current timezone's time.   The AS11 doesn't provide for those areas in the world that have a half-hour timezone offset.    

Since the Resmed stores the data for its day (noon to noon) in a folder, how do you address changing directories at noon?  How would you know which sleep sessions to split?   Resmed also writes its treatment settings for each day at the first sleep session for the day.  If you sleep through a day change, the current settings would be written for that day.  Now later in the day you start the next day's sleep data, having modified your settings, how do you address the modified settings wouldn't be displayed for another day.  

Using your example, how would the system know that you set it to the time offset and not because you were traveling across different timezones and didn't import the data until you returned?
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
  Help with Resmed 11/Wellue O2 time sync SDCat 0 129 11-15-2024, 12:58 PM
Last Post: SDCat
  Data for a specific time frame Person 0 149 11-06-2024, 03:30 PM
Last Post: Person
  Time Change Action ggs5 3 227 11-04-2024, 02:17 PM
Last Post: Crimson Nape
  Feature request bernardc 4 318 10-27-2024, 12:47 PM
Last Post: bernardc
  First time User Cant get data dave42 3 285 10-06-2024, 06:10 PM
Last Post: Crimson Nape
  Help! OSCAR imports SD card data only ONE DAY AT A TIME iknownothing 2 271 10-03-2024, 06:06 AM
Last Post: iknownothing
  Adjust Airsense for EST time BlueSky1958 1 291 09-21-2024, 11:42 AM
Last Post: Crimson Nape


New Posts   Today's Posts


About Apnea Board

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