Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,28 @@ figure figcaption {
width: 100%;
height: auto;
}
.watch-figure {
margin: 0 auto;
max-width: 210px;
}
.watch-frame {
border: 6px solid #2b3439;
border-radius: 54px;
overflow: hidden;
background: #000;
box-shadow: 0 20px 50px #0004;
}
.watch-frame img {
display: block;
width: 100%;
height: auto;
}
.watch-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
margin: 30px 0;
}
.dial-figure {
margin: auto;
max-width: 260px;
Expand Down Expand Up @@ -613,6 +635,9 @@ button:focus-visible {
.media-grid {
grid-template-columns: 1fr;
}
.watch-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (prefers-reduced-motion: reduce) {
html {
Expand Down
66 changes: 66 additions & 0 deletions capture/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,72 @@
"bytes": 88710,
"width": 1425,
"height": 990
},
{
"repository": "sleepypod-ios",
"commit": "00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b",
"source": "docs/images/watch-bed.png",
"output": "ios-watch-bed.png",
"method": "upstream iOS screenshot; SleepypodWatch DEBUG preview launch arguments on Apple Watch Series 11 (46mm) watchOS 26.2 simulator, no paired iPhone",
"sha256": "e457280b36db31622d88063c3974e5247f3b30588e57e93c6aa40cf4f2ead855",
"bytes": 29108,
"width": 416,
"height": 496
},
{
"repository": "sleepypod-ios",
"commit": "00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b",
"source": "docs/images/watch-bed-recording.png",
"output": "ios-watch-bed-recording.png",
"method": "upstream iOS screenshot; SleepypodWatch DEBUG preview launch arguments on Apple Watch Series 11 (46mm) watchOS 26.2 simulator, no paired iPhone",
"sha256": "c27804a197ee09bbe827765e6e3b72d1d48cb677991f7937cc805f989ca67090",
"bytes": 29106,
"width": 416,
"height": 496
},
{
"repository": "sleepypod-ios",
"commit": "00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b",
"source": "docs/images/watch-movement.png",
"output": "ios-watch-movement.png",
"method": "upstream iOS screenshot; SleepypodWatch DEBUG preview launch arguments on Apple Watch Series 11 (46mm) watchOS 26.2 simulator, no paired iPhone",
"sha256": "ce96f6b5276d25b22ae9f6e7fa83736535ae29c79509cf3f9a9f14ba256f7001",
"bytes": 24929,
"width": 416,
"height": 496
},
{
"repository": "sleepypod-ios",
"commit": "00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b",
"source": "docs/images/watch-recording.png",
"output": "ios-watch-recording.png",
"method": "upstream iOS screenshot; SleepypodWatch DEBUG preview launch arguments on Apple Watch Series 11 (46mm) watchOS 26.2 simulator, no paired iPhone",
"sha256": "51b5c4963f11ca5f95cd705c46999507306a43941bb7e8f6b26f35845071270f",
"bytes": 33628,
"width": 416,
"height": 496
},
{
"repository": "sleepypod-ios",
"commit": "00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b",
"source": "docs/images/watch-send.png",
"output": "ios-watch-send.png",
"method": "upstream iOS screenshot; SleepypodWatch DEBUG preview launch arguments on Apple Watch Series 11 (46mm) watchOS 26.2 simulator, no paired iPhone",
"sha256": "32dc23355a8555c82638e8c5c274e7e2bdef6ac327e3eb23abbd349e83752510",
"bytes": 25043,
"width": 416,
"height": 496
},
{
"repository": "sleepypod-ios",
"commit": "00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b",
"source": "docs/images/watch-alarm.png",
"output": "ios-watch-alarm.png",
"method": "upstream iOS screenshot; SleepypodWatch DEBUG preview launch arguments on Apple Watch Series 11 (46mm) watchOS 26.2 simulator, no paired iPhone",
"sha256": "fd139e71328f23b5968a3f9cfd75c681438017b067c813e90a0ad2d25ab8ae4b",
"bytes": 25221,
"width": 416,
"height": 496
}
]
}
10 changes: 10 additions & 0 deletions components/media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ export function PhoneFrame({ src, alt, caption, priority = false }: MediaProps)
</figure>
)
}
export function WatchFrame({ src, alt, caption }: MediaProps) {
return (
<figure className="watch-figure">
<div className="watch-frame">
<img src={src} alt={alt} width="416" height="496" loading="lazy" />
</div>
{caption && <figcaption>{caption}</figcaption>}
</figure>
)
}
export function DialFrame({ src, alt, caption }: MediaProps) {
return (
<figure className="dial-figure">
Expand Down
1 change: 1 addition & 0 deletions content/ios/_meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export default {
index: 'Overview',
setup: 'Build and connect',
'using-the-app': 'Daily use',
watch: 'Apple Watch',
}
2 changes: 1 addition & 1 deletion content/ios/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ A native companion for your Pod: temperature control, schedules, sleep stages an

## Made for everyday control

Use the dial, slider or Night & Dawn card, select a side or link both, and review your night through interactive charts. Each morning the night's stages, heart rate, HRV and breathing rate can be written to Apple Health, and any night can be compared minute by minute with what an Apple Watch recorded. The app can discover Core automatically with Bonjour or connect using a manual IP address.
Use the dial, slider or Night & Dawn card, select a side or link both, and review your night through interactive charts. Each morning the night's stages, heart rate, HRV and breathing rate can be written to Apple Health, and any night can be compared minute by minute with what an Apple Watch recorded. The app can discover Core automatically with Bonjour or connect using a manual IP address. On the wrist, the [Apple Watch app](/ios/watch/) sets the bed, stops the alarm and records movement overnight.

## Requirements and availability

Expand Down
83 changes: 83 additions & 0 deletions content/ios/watch.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
title: 'Apple Watch'
description: 'Set the bed, stop the alarm and record overnight wrist movement from the sleepypod Apple Watch app.'
---

import { Callout } from 'nextra/components'

# Apple Watch

The Watch app opens on bed control. The movement recorder is the next page down. If an alarm is vibrating, the alarm screen replaces both. The Watch has no direct connection to the Pod: every request goes through the sleepypod app on your paired iPhone, so open it on the iPhone once before using the Watch.

<Callout type="info">
Bed control, the alarm screen and Send to pod arrived in TestFlight build 1.6.0. The **Movement**
button on the bed screen is in development revision `00c3cce`; on earlier builds, swipe up from
the bed screen to reach the recorder. The screenshots come from the Watch simulator with sample
data and no paired iPhone.
</Callout>

<div className="watch-grid">
<WatchFrame
src="/media/ios-watch-bed.png"
alt="Watch bed screen with a 68° target, the bed at 75° and cooling, and a Turn off button"
caption="Bed: Crown sets the target."
/>
<WatchFrame
src="/media/ios-watch-movement.png"
alt="Watch movement screen set to record for 9 hours with a red Record button"
caption="Movement: Crown sets the length."
/>
<WatchFrame
src="/media/ios-watch-alarm.png"
alt="Watch alarm screen with Stop and Snooze 5 min buttons"
caption="Alarm: stop or snooze."
/>
</div>

## Bed

- **Target:** turn the Digital Crown to set the temperature. The line underneath shows the bed's own temperature and whether it is cooling, warming or holding.
- **Power:** **Turn on** or **Turn off** applies to the selected side. While the bed is off, the Crown does not change the target.
- **Side:** the button at the top left picks left, right or both sides. The title shows the side's name from the iPhone app.

The screen refreshes every 15 seconds while it is open. If the iPhone is out of reach, a note under the power button says so.

## Alarm

While an alarm vibrates on your side, the Watch shows only **Stop** and **Snooze 5 min**. The screen checks every 5 seconds, so an alarm stopped from the iPhone or the bed clears it shortly after.

## Record movement

The recorder logs wrist movement overnight. sleepypod uses it as labels for the Pod's movement classifier and in [Compare with Apple Watch](/ios/using-the-app/#read-the-watch-comparison).

<div className="watch-grid">
<WatchFrame
src="/media/ios-watch-bed-recording.png"
alt="Watch bed screen with a red record button at the top right while a recording runs"
caption="Movement button turns red while recording."
/>
<WatchFrame
src="/media/ios-watch-recording.png"
alt="Watch movement screen recording, with a countdown and a Stop button"
caption="Countdown to the planned end."
/>
<WatchFrame
src="/media/ios-watch-send.png"
alt="Watch movement screen showing 9 hours recorded and a Send to pod button"
caption="In the morning: Send to pod."
/>
</div>

1. On the bed screen, tap **Movement** at the top right, or swipe up to the next page. The Crown sets the bed temperature on the bed screen, so it does not move between pages there.
2. Turn the Crown to set the length (1–12 hours, 9 by default), then tap **Record**. The first recording asks for Motion & Fitness permission.
3. You can close the app. While the recording runs, the **Movement** button on the bed screen shows a red dot.
4. If you get up early, tap **Stop**. What was recorded up to then is kept. A recording stopped in its first minute is discarded.
5. In the morning the app opens on the recorder. Tap **Send to pod**. The Watch sends the movement to the iPhone, which passes it to the Pod along with the night's heart rate, HRV, breathing and sleep stages from Apple Health.

The **i** button on the recorder explains what is recorded. It also has **Include raw 50 Hz**, which adds the raw accelerometer samples to the file, and **Resend last 2 nights**, which sends the Health readings again.

If the recorder says recording isn't available, allow Motion & Fitness for sleepypod in the Watch's Settings.

---

**Source reference:** [Watch app at 00c3cce](https://github.com/sleepypod/ios/tree/00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b/SleepypodWatch) · [Watch movement format](https://github.com/sleepypod/ios/blob/00c3ccef346b04d0c5fc5998d36d0bbb8ebd898b/docs/watch-motion-format.md)
3 changes: 2 additions & 1 deletion mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { useMDXComponents as getDocsMDXComponents } from 'nextra-theme-docs'
import { ControlShowcase } from './components/ControlShowcase'
import { EnclosureViewer } from './components/EnclosureViewer'
import { BrowserFrame, PhoneFrame, DialFrame, Demo } from './components/media'
import { BrowserFrame, PhoneFrame, WatchFrame, DialFrame, Demo } from './components/media'
export function useMDXComponents(components = {}) {
return getDocsMDXComponents({
BrowserFrame,
PhoneFrame,
WatchFrame,
DialFrame,
Demo,
ControlShowcase,
Expand Down
Binary file added public/media/ios-watch-alarm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/ios-watch-bed-recording.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/ios-watch-bed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/ios-watch-movement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/ios-watch-recording.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/ios-watch-send.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading