Apparatus with a display
There is provided a wearable device comprising at least one processor; and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the wearable device at least to perform: obtaining a starting time of a latest sleeping period; obtaining an ending time of the latest sleeping period; displaying, on a display of the wearable device, a first line illustrating an average starting time of a sleeping period calculated based on a plurality of sleeping periods over a plurality of days; displaying a second line illustrating an average ending time of a sleeping period calculated based on the plurality of sleeping periods over the plurality of days; and displaying the latest sleeping period graphically as a bar such that a first end of the bar indicates the starting time and a second end of the bar indicates the ending time, wherein the first end and the second end are displayed relative to the first line and the second line, and wherein a length of the bar indicates a length of the latest sleeping period.
1 . A smart watch comprising at least one processor; and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the smart watch at least to perform:
obtaining a starting time of a latest sleeping period;
obtaining an ending time of the latest sleeping period;
displaying, on a display of the smart watch, a first line illustrating an average starting time of a sleeping period calculated based on a plurality of sleeping periods over a plurality of days;
displaying a second line illustrating an average ending time of a sleeping period calculated based on the plurality of sleeping periods over the plurality of days; and
displaying the latest sleeping period graphically as a bar such that a first end of the bar indicates the starting time and a second end of the bar indicates the ending time, wherein the first end and the second end are displayed relative to the first line and the second line, and wherein a length of the bar indicates a length of the latest sleeping period; and
receiving user input via the display of the smart watch, wherein the user input is a swiping action for scrolling a graph forward and/or backward to see older data, wherein the older data comprises previous bars that become visible on the display when scrolling the graph, wherein previous bars are scaled and displayed relative to the first line and the second line and are indicative of sleeping periods in the past.
2 . The smart watch of claim 1 , further caused to perform:
displaying a plurality of sleeping periods, comprising the latest sleeping period and previous sleeping periods, as bars such that first ends of the bars indicate starting times of the sleeping periods and second ends of the bars indicate ending times of the sleeping periods, wherein the first ends and the second ends are displayed relative to the first line and the second line, and wherein lengths of the bars indicate lengths of the sleeping periods.
3 . The smart watch of claim 2 , further caused to perform:
assigning a date for a sleeping period of the plurality of sleeping periods based on the ending time of the sleeping period; and
displaying the plurality of sleeping periods as bars adjacently in a graph such that slots in the graph are reserved for different dates.
4 . The smart watch of claim 3 , further caused to perform:
assigning a same date for a plurality of sleeping periods with ending times on a same day; and
displaying that sleeping period of the plurality of sleeping periods with ending times on the same day which is nearest to an average sleeping period of a user.
5 . The smart watch of claim 1 , further caused to perform:
calculating a running average length of sleeping periods over the plurality of days; and
displaying the running average length of sleeping periods.
6 . The smart watch of claim 5 , wherein calculation of the running average discards one or more days of a plurality of days without recorded sleeping periods.
7 . The smart watch of claim 3 , further caused to perform:
assigning a same date for a plurality of sleeping periods with ending times on a same day; and
calculating a running average length of sleeping periods over the plurality of days taking into account the plurality of sleeping periods assigned the same date by dividing total duration of sleep during the plurality of days with a number of the plurality of sleeping periods during the plurality of days.
8 . The smart watch of claim 1 , wherein the plurality of days is seven days.
9 . The smart watch of claim 2 , further caused to perform:
detecting a change of a time zone; and
displaying the plurality of sleeping periods such that the starting times and the ending times are displayed as obtained.
10 . The smart watch of claim 2 , further caused to perform:
in response to detecting that the ending times of subsequent sleeping periods have a time zone difference, displaying an indicator of the change of the time zone.
11 . The smart watch of claim 1 , further caused to perform:
in response to detecting a change of a time zone during a sleeping period, applying a time zone correction to the starting time of the sleeping period.
12 . The smart watch of claim 1 , wherein the first line and the second line are displayed in fixed positions on the display, despite a change of times that the first line and/or the second line illustrates.
13 . The smart watch of claim 1 , further caused to perform:
displaying bars, that become visible on the display in response to the swiping action and are indicative of sleeping periods in history, relative to
the first line illustrating the average starting time of the sleeping period calculated based on the plurality of sleeping periods over the plurality of days; and
the second line illustrating the average ending time of the sleeping period calculated based on the plurality of sleeping periods over the plurality of days, wherein the plurality of days are the latest days with respect to a current day.
14 . A method comprising:
obtaining, by a smart watch, a starting time of a latest sleeping period;
obtaining, by the smart watch, an ending time of the latest sleeping period;
displaying, on a display of the smart watch, a first line illustrating an average starting time of a sleeping period calculated based on a plurality of sleeping periods over a plurality of days;
displaying a second line illustrating an average ending time of a sleeping period calculated based on the plurality of sleeping periods over the plurality of days; and
displaying the latest sleeping period graphically as a bar such that a first end of the bar indicates the starting time and a second end of the bar indicates the ending time, wherein the first end and the second end are displayed relative to the first line and the second line, and wherein a length of the bar indicates a length of the latest sleeping period; and
receiving user input via the display of the smart watch, wherein the user input is a swiping action for scrolling a graph forward and/or backward to see older data, wherein the older data comprises previous bars that become visible on the display when scrolling the graph, wherein previous bars are scaled and displayed relative to the first line and the second line and are indicative of sleeping periods in the past.
15 . A non-transitory computer readable medium comprising program instructions that, when executed by at least one processor, cause a smart watch at least to perform:
obtaining, by the smart watch, a starting time of a latest sleeping period;
obtaining, by the smart watch, an ending time of the latest sleeping period;
displaying, on a display of the smart watch, a first line illustrating an average starting time of a sleeping period calculated based on a plurality of sleeping periods over a plurality of days;
displaying a second line illustrating an average ending time of a sleeping period calculated based on the plurality of sleeping periods over the plurality of days; and
displaying the latest sleeping period graphically as a bar such that a first end of the bar indicates the starting time and a second end of the bar indicates the ending time, wherein the first end and the second end are displayed relative to the first line and the second line, and wherein a length of the bar indicates a length of the latest sleeping period; and
receiving user input via the display of the smart watch, wherein the user input is a swiping action for scrolling a graph forward and/or backward to see older data, wherein the older data comprises previous bars that become visible on the display when scrolling the graph, wherein previous bars are scaled and displayed relative to the first line and the second line and are indicative of sleeping periods in the past.
16 . The smart watch of claim 2 , further caused to perform:
calculating a running average length of sleeping periods over the plurality of days; and
displaying the running average length of sleeping periods.
17 . The smart watch of claim 3 , further caused to perform:
calculating a running average length of sleeping periods over the plurality of days; and
displaying the running average length of sleeping periods.
18 . The smart watch of claim 16 , wherein calculation of the running average discards one or more days of a plurality of days without recorded sleeping periods.
19 . The smart watch of claim 17 , wherein calculation of the running average discards one or more days of a plurality of days without recorded sleeping periods.