feat: implement Pomodoro focus timer and WHO-based health reminders#24
Open
sohamdalwadi wants to merge 2 commits into
Open
feat: implement Pomodoro focus timer and WHO-based health reminders#24sohamdalwadi wants to merge 2 commits into
sohamdalwadi wants to merge 2 commits into
Conversation
Contributor
Author
|
@SeanChangX Added 2 new feature to QBIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces two major productivity and wellness features to the QBIT firmware: a classic Pomodoro Focus Timer and a customizable WHO-guided Health Reminder System. Both systems are integrated into the main state machine, utilizing custom display rendering, distinct buzzer melodies, persistent storage, and (for reminders) a web dashboard configuration panel.
Commit 1: Pomodoro Focus Timer (
pomodoro_ui.h/pomodoro_ui.cpp)Introduces a focus tracking loop based on the classic Pomodoro productivity technique:
Commit 2: Health Reminder System (
reminder.h/reminder.cpp//data/web_dashboard.cpp)Implements an interactive health reminder framework adhering to WHO guidelines to maintain well-being throughout the day:
1. Core Logic & Defaults
48x48monochrome XBM bitmaps representing water drops, plates, and capsules.2. Display, Melody, & Control Integration
REMINDER_DISPLAYoverlay with custom icons and labels. Checking only occurs during idle (GIF_PLAYBACK) to avoid interrupting games or Pomodoro focus sessions.REMINDER_TICK_MELODY(short alarm ticks) that auto-mutes after 5 seconds or instantly upon a screen tap.Water Rmd,Food Rmd,Pills Rmd) to the scrollable Settings menu with persistent NVS storage (qbitRem).3. Dashboard Web UI & REST API
GET /api/remindersandPOST /api/remindersto query and save interval configuration.index.htmlandscript.jsinside/data, allowing configuration of time bounds, meal times, and intervals directly from the browser.