Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfiniSleep: SleepTk Port (ReOpen) #2174

Open
wants to merge 110 commits into
base: main
Choose a base branch
from

Conversation

cyberneel
Copy link

A SleepTk port that can help with setting a suggested wake alarm based on sleep cycle goals.

Another feature is the gradual wake feature that vibrates at intervals to slowly wake you up instead of a full-blown alarm.

Another big feature is the sleep session tracking. You can start a session once you are going to sleep and stop it once you are awake. It has information like cycle count and total sleep time to help you understand why you are tired when you wake up.

cyberneel and others added 30 commits November 27, 2024 13:37
…ller to handle longer run times as input, fixed swipe motions in sleep app
@cyberneel
Copy link
Author

@mark9064 This is the specific error, I'm not sure what the other controllers did for it to work.

CleanShot 2024-11-30 at 15 07 13@2x

…ll animations.

the time on the alerting page is not interactable and I also made the snooze button bigger.

Also added check to display time in proper formats
@mark9064
Copy link
Member

If you look at some of the other controllers, they are reimplemented in InfiniSim. Have a look at one linked - see how the hardware specific code that isn't relevant to InfiniSim is commented out

cyberneel and others added 21 commits November 30, 2024 22:36
displayapp include wasnt needed
removed some unsed code in motorcontroller

made snoozing take user to info page

fixed logic for skipping gradual wake while in snooze
Also added setting for natural awake, will implement next
Dif this to avoid weird behavior that can happen if changed during alarm active state. This also remove the need to handle those in code.
removed wakelock when using natural alrm mode as user may not wake up soon and unintended taps may happen.
… on widget without 2 second stutter.

Formatted DisplayApp.cpp
removed auto snooze for natural wake

removed side button to stop alarm
removed some unused code. Didn't reduce RAM usage.
…re vibrations

added the similar ramping up effect to the natural wake alarm but with larger interval
…ness when stopped

Also tweaked the Natural Wake Vibration a little.
@cyberneel cyberneel marked this pull request as ready for review December 14, 2024 01:37
@cyberneel
Copy link
Author

@mark9064 I think the app itself is in a good state now and marked the PR for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new app This thread is about a new app new feature This thread is about a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants