03-31-2022, 10:59 PM
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!
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!