Skip to content

Commit 4ef407c

Browse files
committed
Alarms, Developers, Services, General, UX, Devices update
1 parent 0b4850c commit 4ef407c

191 files changed

Lines changed: 6755 additions & 185194 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ GEM
8989
rexml (3.2.6)
9090
rouge (4.4.0)
9191
safe_yaml (1.0.5)
92+
sass-embedded (1.80.3-x64-mingw-ucrt)
93+
google-protobuf (~> 4.28)
9294
sass-embedded (1.80.3-x64-mingw32)
9395
google-protobuf (~> 4.28)
9496
sass-embedded (1.80.3-x86_64-linux-gnu)
@@ -106,9 +108,11 @@ GEM
106108
tzinfo-data (1.2023.4)
107109
tzinfo (>= 1.0.0)
108110
unicode-display_width (2.6.0)
111+
wdm (0.1.1)
109112
webrick (1.8.1)
110113

111114
PLATFORMS
115+
x64-mingw-ucrt
112116
x64-mingw32
113117
x86_64-linux
114118

@@ -127,6 +131,7 @@ DEPENDENCIES
127131
slim (~> 3.0.7)
128132
thread_safe (~> 0.3.5)
129133
tzinfo-data
134+
wdm (~> 0.1.0)
130135
webrick (~> 1.7)
131136

132137
BUNDLED WITH

assets/icons/trophy.svg

Lines changed: 1 addition & 1 deletion
Loading

hugo/content/alarms/alarm_settings.md

Lines changed: 71 additions & 286 deletions
Large diffs are not rendered by default.

hugo/content/alarms/backup.md

Lines changed: 33 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,56 +8,48 @@ tags:
88
- backup
99
---
1010

11+
**The Backup Alarm is a fail-safe feature that triggers a loud, maximum-volume alarm if you ignore your primary alarm.**
1112

12-
**Starts ringing loudly at maximum volume if you ignore your normal alarm.**
13+
This ensures that even if you are an exceptionally heavy sleeper or accidentally sleep through your regular ringtone, you won't miss your wake-up call.
1314

14-
Backup alarm will start after [Alarm timeout](#alarm-timeout).
15-
16-
_Settings -> Alarms -> Backup alarm_
15+
**Menu Path:** `Settings``Alarms``Backup alarm`
1716

1817
---
1918

19+
## Core Options
2020

21+
### Backup Alarm Duration
22+
Sets how long the backup alarm will ring. Once this duration expires, the alarm will automatically snooze for your default *Snooze Time* (but never less than 10 minutes).
2123

24+
### Ringtone
25+
Choose the sound for your backup alarm.
2226

23-
## Backup alarm duration
24-
25-
Set how long the backup alarm will ring (it will then snooze for your default _Snooze Time_, but never less than 10 minutes).
26-
27-
28-
## Ringtone
29-
30-
Backup alarm ringtone.
31-
32-
33-
### How to disable backup alarm <a id="backup_disable"></a>
34-
1. Go to _Settings -> Alarm default settings -> Back up -> Sound_.
35-
1. Set the ringtone to _Silent_.
36-
> **Note:** Silent ringtone for backup alarm won't disable vibrations. The backup alarm is the last thing to let you know that the alarm is still going off, so you can react and not fall asleep.
37-
27+
> [!NOTE]
28+
> **How to disable the backup alarm:** <a id="backup_disable"></a>
29+
> 1. Go to `Settings``Alarms``Backup alarm``Sound`.
30+
> 2. Set the ringtone to **Silent**.
31+
>
32+
> *Note:* Selecting a silent ringtone for the backup alarm will **not** disable vibrations. The backup alarm is designed as a last resort to ensure you wake up.
3833
39-
## Alarm timeout <a id="alarm-timeout"></a>
34+
### Alarm Timeout <a id="alarm-timeout"></a>
35+
Defines the period of inactivity (ignoring the normal alarm) after which the backup alarm will trigger.
4036

41-
Time after which the backup alarm will ring if you ignore your normal alarm.
37+
### Repeat
38+
Sets the maximum number of times the backup alarm can repeat its cycle. After this limit is reached, no further alarms will sound for that session.
4239

40+
---
4341

44-
## Repeat
45-
46-
Maximum number of times the alarm can be repeated. After that, no alarm will ring.
47-
48-
49-
[EXAMPLE]
50-
51-
#### Alarm time: 7:00
52-
53-
Backup alarm duration: 2 minutes
54-
Alarm timeout: 10 minutes
55-
This is what happens if you don't interact with the alarm:
56-
57-
- 7:00 – alarm starts
58-
- 7:10 – backup alarm starts (full volume, duration 2 minutes)
59-
- 7:12 – automatically snoozes (for 10 minutes, as your default snooze time is 10 minutes)
60-
- 7:22 – backup alarm starts again
61-
62-
…and so on, based on the number of repetitions.
63-
====
42+
## How it Works (Example)
43+
44+
> **Example:**
45+
> * **Primary Alarm Time:** 7:00 AM
46+
> * **Backup Alarm Duration:** 2 minutes
47+
> * **Alarm Timeout:** 10 minutes
48+
>
49+
> **Timeline of events (if no interaction):**
50+
> 1. **7:00 AM:** Primary alarm starts ringing.
51+
> 2. **7:10 AM:** Primary alarm times out; the **Backup Alarm** starts (full volume).
52+
> 3. **7:12 AM:** Backup alarm finishes its 2-minute duration and automatically snoozes for 10 minutes.
53+
> 4. **7:22 AM:** Backup alarm starts again.
54+
>
55+
> This cycle continues until you dismiss the alarm or reach the maximum number of repeats.

hugo/content/alarms/bedtime_notification.md

Lines changed: 72 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,70 +8,107 @@ redirect_from:
88
- /sleep/bedtime_notification.html
99
---
1010

11+
Maintaining a consistent sleep schedule is one of the most effective ways to feel rested and eliminate sleep debt. **Bedtime Notifications** send you a friendly *"Time to go to bed!"* reminder so you have enough time to wind down and get ready for sleep.
1112

12-
**Sends you a "Time to go to bed!" notification before bedtime.**
1313

14-
Bedtime notification is an effective way to maintain optimal sleep duration or to combat sleep deficit. You can set the alert to go off anywhere from 5 minutes to 2 hours before bedtime, so you'll have plenty of time to get ready for bed.
14+
## How to Access Bedtime Notification Settings
15+
* **Global Default Settings:** Go to `Settings``Alarms``Bedtime notification`.
16+
* **Per-Alarm Settings:** Open any individual alarm ➔ `Alarm settings``Bedtime notification`.
1517

16-
_Settings -> Alarms -> Bedtime notification_
17-
_per-alarm settings -> Bedtime notification_
18-
> **Note:** The time of your bedtime is calculated as follows:
19-
`bedtime = next alarm time – daily sleep duration goal`
20-
[EXAMPLE]
21-
You have set your [Daily sleep duration goal](#duration_goal) to 7 hours, and an alarm for 6 AM.
22-
Your bedtime would be 11 PM.
18+
## How Bedtime is Calculated
2319

20+
By default, your recommended bedtime is determined using a simple formula:
2421

25-
---
22+
{{< katex display=true >}}
23+
\text{Bedtime} = \text{Next Alarm Time} - \text{Daily Sleep Duration Goal}
24+
{{< /katex >}}
25+
26+
> [!NOTE]
27+
> **Example:** If your alarm is set for **6:00 AM** and your **Sleep Duration Goal** is **7 hours**, your calculated bedtime is **11:00 PM**. If you set your notification to trigger **30 minutes before bedtime**, you will receive a reminder at **10:30 PM**.
2628
2729

30+
## Core Options & Configuration
2831

32+
| Option | Description |
33+
| :--- | :--- |
34+
| **Bedtime Notification** | Enables or disables the reminder and sets how long *before* bedtime you want to be alerted (from 5 minutes up to 2 hours in advance). |
35+
| **Sleep Duration Goal** | Your ideal target sleep duration per night. This value directly impacts bedtime calculations and sleep deficit statistics. |
36+
| **Repeat** | Sets how often the reminder alerts you. For example, selecting *10 Minutes Repeat* alerts you at the scheduled time and repeats every 10 minutes until you start sleep tracking or dismiss the notification. |
37+
| **Smart Bedtime** | Automatically fine-tunes your notification time based on recent sleep debt, smart wake-up windows, and initial tracking delays. |
38+
| **Per-Alarm Bedtime Notification** | Overrides your default settings for specific alarms or polyphasic sleep schedules (e.g., individual naps). |
2939

30-
## Bedtime notification
3140

32-
Enable bedtime notification and set how long before bedtime you want to receive them.
41+
## Sleep Duration Goals by Age
3342

43+
The ideal amount of daily sleep varies by age group. Recommended targets based on Mayo Clinic guidelines include:
3444

35-
## Sleep duration goal <a id="duration_goal"></a>
45+
* **General / Healthy Adults:** 7 – 9 hours
46+
* **Elderly:** 6 – 9 hours
47+
* **Young Adults:** 7 – 9 hours
48+
* **Teenagers:** 8 – 10 hours
49+
* **School-Age Children:** 9 – 11 hours
3650

37-
Daily sleep duration goal is your target sleep duration - how much time would you ideally want to sleep each night.
51+
> [!TIP]
52+
> If you provide your age under `Settings``Stats`, the app automatically adjusts your target ideal sleep score calculations accordingly.
3853
39-
Daily sleep duration is influenced by:
4054

41-
- [bedtime notification](/alarms/bedtime_notification)
42-
- counting of your [sleep deficit](/sleep/charts#deficit)
55+
## Smart Bedtime
4356

57+
When **Smart Bedtime** is enabled, the app dynamically adjusts your bedtime reminder using your recent sleep history.
4458

45-
The ideal daily amount of sleep for healthy adults is 7-9 hours, according to link:[Mayo Clinic](https://www.mayoclinic.org/healthy-lifestyle/adult-health/expert-answers/how-many-hours-of-sleep-are-enough/faq-20057898).
59+
It takes into account:
60+
1. **Sleep Deficit:** Extra sleep debt accumulated over the past 5 days.
61+
2. **Smart Wake Window:** Average length of your Smart Wake-Up period.
62+
3. **Tracking Delay:** The default pause/delay before sleep tracking begins.
4663

47-
In the app the sleep score uses your age (if provided in _Settings -> Stats_) to adjust the ideal sleep times for the [Sleep score](/sleep/sleepscore) stats.
48-
- **General**: 6.5 - 9 hours
49-
- **School age**: 9 - 11 hours
50-
- **Teenager**: 8 - 10 hours
51-
- **Young**: 7 - 9 hours
52-
- **Elderly**: 6 - 9 hours
53-
> **Note:** For biphasic and polyphasic sleep goals of individual naps, see the [Polyphasic sleeping schedule](/alarms/polyphasic) chapter.
64+
### The Smart Bedtime Formula
65+
{{< katex display=true >}}
66+
\text{Smart Bedtime} = \text{Next Alarm} - \text{Sleep Goal} - \text{Smart Period} - \text{Delayed Tracking} - \text{Deficit Adjustment}
67+
{{< /katex >}}
5468

69+
*(If your 5-day average sleep deficit exceeds 10 minutes, the app automatically gives you up to a 45-minute head start on bedtime!)*
5570

56-
## Repeat
71+
## Polyphasic Sleep & Per-Alarm Overrides
5772

58-
How often to repeat the notification.
73+
If you follow a biphasic or polyphasic sleep schedule, a single daily sleep goal isn't enough.
5974

60-
[EXAMPLE]
61-
10 Minutes Repeat will notify you once at notification time and then every 10 minutes until you dismiss the notification away or start sleep tracking.
75+
You can set custom bedtime notifications for individual naps:
76+
1. Open the specific alarm.
77+
2. Tap the **Bedtime notification** section and uncheck **Application settings**.
78+
3. Set a specific **sleep duration goal** for that nap (from 20 minutes to 13.5 hours).
79+
4. Adjust the notification timing and tap **Save**.
6280

81+
For more details on Polyphasic sleep schedule support, please visit the [Polyphasic sleeping chapter](/alarms/polyphasic).
6382

64-
## Smart bedtime
83+
## ❓ FAQs & Troubleshooting
6584

85+
<details>
86+
<summary><strong>Why did my bedtime notification appear at a strange or unexpected time?</strong></summary>
6687

67-
When enabled, Smart Bedtime adjusts the notification time based on your sleep loss over the past 5 days, the average length of the Smart Wake period, and the default pause time at the start of sleep tracking. The exact formula is
88+
* **Smart Bedtime Deficit Adjustment:** If **Smart Bedtime** is enabled, the app calculates your 5-day average sleep deficit. If you have accumulated sleep debt (over 10 minutes on average), it will schedule your bedtime up to **45 minutes earlier** to help you catch up.
89+
* **Smart Wake & Tracking Delays:** Smart Bedtime also subtracts your Smart Wake-Up window and configured tracking start delay from the bedtime calculation.
90+
* **Fix:** If you prefer fixed notifications, disable **Smart Bedtime** under `Settings``Alarms``Bedtime notification`.
91+
</details>
6892

69-
[EXAMPLE]
70-
smart time to bed = next alarm – daily sleep duration goal – smart period – delayed tracking – in(5 days average sleep deficit > 10 min, 45 min)
93+
<details>
94+
<summary><strong>Why didn't my bedtime notification appear at all?</strong></summary>
7195

96+
* **Sleep Surplus Detected:** If Smart Bedtime is active and you have a sleep surplus (no sleep debt accumulated), the notification may trigger later or not at all if you already met your target duration.
97+
* **Tracking Already Started:** If you manually start sleep tracking before the bedtime notification is scheduled to ring, the app automatically suppresses the alert.
98+
* **System Notification Settings:** Android may be blocking app notifications. Verify that alerts are turned on under your device's `System Settings``Apps``Sleep``Notifications``Bedtime notification`.
99+
* **Battery & System Optimizations:** Third-party battery savers or system task killers can suppress background notifications. Make sure Sleep as Android is excluded from aggressive battery optimization on your device.
100+
</details>
72101

102+
<details>
103+
<summary><strong>How do I test if my bedtime notifications are working?</strong></summary>
73104

74-
## Per-alarm bedtime notification
105+
To perform a verification:
106+
1. Temporarily set your Bedtime Notification to **5 minutes before bedtime**.
107+
2. Set a test alarm time to equal your **Sleep Goal + 8 minutes**.
108+
3. Wait **3 minutes** for the notification to trigger.
109+
4. If it fails to appear, send us an application log via `Left ≡ Menu``Support``Report a bug`.
110+
</details>
75111

76-
A special case of bedtime notifications for polyphasic sleeping schedules (see [Polyphasic sleeping schedule](/alarms/polyphasic)).
112+
---
77113

114+
*For further assistance or bug reports, open the app menu ☰ ➔ **Support****Report a bug**.

0 commit comments

Comments
 (0)