WAKE UP

Nap Alarm prototype v1

It senses PHONE MOVEMENT, not sleep. Your Oura ring is NOT connected to this page. A phone that never moves counts as "asleep". Lie it flat on the mattress beside you. Keep Safari in front, screen on, phone plugged in, volume up. Also set a normal iPhone alarm as a second backstop.
Ready
--:--
Press Start, then lie down. The nap countdown only starts after the phone has stayed still for the "still minutes" below.
movement: -

Settings

The backstop always fires, even if you move all the time. It uses the clock, so a frozen tab still fires as soon as it wakes up.

Calibration

Put the phone where you will sleep. This shows the live movement number. Red line = your threshold.
-

Compare with Oura (manual)

After you open the Oura app and it syncs, type the nap start time Oura shows. Difference = Oura minus this phone. Positive = Oura says you fell asleep later than the phone detected.
Automatic comparison would need an Oura OAuth2 API application (registered at cloud.ouraring.com/oauth/applications; personal access tokens were retired in Dec 2025) plus a place to receive the data. Not created. Oura sleep data only reaches the cloud after you open the Oura app and sync.