diff --git a/app/global.css b/app/global.css index 9c251b8..b022bc3 100644 --- a/app/global.css +++ b/app/global.css @@ -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; @@ -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 { diff --git a/capture/manifest.json b/capture/manifest.json index c2f9133..df9a081 100644 --- a/capture/manifest.json +++ b/capture/manifest.json @@ -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 } ] } diff --git a/components/media.tsx b/components/media.tsx index b66a022..7be517f 100644 --- a/components/media.tsx +++ b/components/media.tsx @@ -35,6 +35,16 @@ export function PhoneFrame({ src, alt, caption, priority = false }: MediaProps) ) } +export function WatchFrame({ src, alt, caption }: MediaProps) { + return ( +
+
+ {alt} +
+ {caption &&
{caption}
} +
+ ) +} export function DialFrame({ src, alt, caption }: MediaProps) { return (
diff --git a/content/ios/_meta.ts b/content/ios/_meta.ts index d9c7e2d..46b240d 100644 --- a/content/ios/_meta.ts +++ b/content/ios/_meta.ts @@ -2,4 +2,5 @@ export default { index: 'Overview', setup: 'Build and connect', 'using-the-app': 'Daily use', + watch: 'Apple Watch', } diff --git a/content/ios/index.mdx b/content/ios/index.mdx index 1dbbad4..566cb1c 100644 --- a/content/ios/index.mdx +++ b/content/ios/index.mdx @@ -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 diff --git a/content/ios/watch.mdx b/content/ios/watch.mdx new file mode 100644 index 0000000..bd2d53f --- /dev/null +++ b/content/ios/watch.mdx @@ -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. + + + 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. + + +
+ + + +
+ +## 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). + +
+ + + +
+ +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) diff --git a/mdx-components.tsx b/mdx-components.tsx index 2c963ba..04b1ec8 100644 --- a/mdx-components.tsx +++ b/mdx-components.tsx @@ -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, diff --git a/public/media/ios-watch-alarm.png b/public/media/ios-watch-alarm.png new file mode 100644 index 0000000..6766f93 Binary files /dev/null and b/public/media/ios-watch-alarm.png differ diff --git a/public/media/ios-watch-bed-recording.png b/public/media/ios-watch-bed-recording.png new file mode 100644 index 0000000..e9460b4 Binary files /dev/null and b/public/media/ios-watch-bed-recording.png differ diff --git a/public/media/ios-watch-bed.png b/public/media/ios-watch-bed.png new file mode 100644 index 0000000..7ba2df9 Binary files /dev/null and b/public/media/ios-watch-bed.png differ diff --git a/public/media/ios-watch-movement.png b/public/media/ios-watch-movement.png new file mode 100644 index 0000000..48c891a Binary files /dev/null and b/public/media/ios-watch-movement.png differ diff --git a/public/media/ios-watch-recording.png b/public/media/ios-watch-recording.png new file mode 100644 index 0000000..d9a1da1 Binary files /dev/null and b/public/media/ios-watch-recording.png differ diff --git a/public/media/ios-watch-send.png b/public/media/ios-watch-send.png new file mode 100644 index 0000000..29205d2 Binary files /dev/null and b/public/media/ios-watch-send.png differ