SwiftUI + MVVM WatchOS App for waking up using Sleep Phase detection via accelerometer (very basic shaking detection for now)
Later Apple's native HKCategorySleepAnalysis will be added for detection enhancement
-
UI-part:inactive state screen (selection wake up time);
active states screen(showing processing screen);
finish screen (wake up message);
MVVM-arhitecture applying;
-
Create processing part of the app:background-runtime execution for some period of time(30 minutes is maximum possible duration - OS restrictions);background states handling;making possible to have some calculations several times/minute(every second for now);
-
Sleep Phase basic calculation(using only acelerometer data for now):measure moves via acceleration;use first move per Wake Up interval as a trigger for Wake Up(used total acceleration for this need);
-
Beta-testing:
- sharing between several internal testers;
- approve the idea by receiging more positive feedbacks then negative;
- fixing of minor bugs;
-
Additional UI-functionality;
-
Redesign;
-
SleepPhase algorhytm detection improvements;
-
Alpha-testing;
-
Companion iOS-App - showing detailed graphs (with sleep stages and/or sleep quality and/or sleep durations - HealthKit);
- use number of moves/hour for Sleep Phase detection
- try to make marks per wake ups;
- use Heart Rate for Sleep Detection;