-
Notifications
You must be signed in to change notification settings - Fork 115
Prepare clockrepo #307
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
Open
flattermann
wants to merge
12
commits into
brettdottech:dev
Choose a base branch
from
flattermann:prepare-clockrepo
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Prepare clockrepo #307
Conversation
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
Introduced `apiMode` parameter for `handleEndpointFetchFilesFromURL` to allow CORS headers and custom behavior when accessed via API. Added new endpoints `/fetchFromUrlByApi` and `/ping` to support API functionality with appropriate CORS handling. Updated watchdog resets and provided cleaner responses for API integrations.
The clock repo can open this page in a new window (to circumvent mixed content problems). The page will be closed automatically.
Extended `handleEndpointFetchFilesFromURLAction` to accept `clockName` and `authorName` parameters, allowing customization of displayed text during download. Adjusted corresponding calls and added logic to conditionally render the new details on the screen. Also updated font sizes to improve readability.
Added more comprehensive screen updates for multi-screen display during downloads, along with progress messages. Enhanced file handling by introducing temporary files and ensuring proper renaming or cleanup to prevent incomplete downloads.
Introduced `m_forceNextDraw` to control forced screen redrawing during clock type changes, improving display handling. Enhanced `changeClockType` to accept an optional parameter for explicit clock type selection and added logging for better debugging. These changes improve clarity, flexibility, and maintainability of the clock widget code.
Introduced `getWidgetByName` to retrieve a widget using its name and `switchToWidgetByName` to change the current widget by name. These additions enhance lookup and navigation capabilities within the widget set.
Added support for detecting and transforming GitHub URLs to raw content links. Enhanced progress display during file downloads and integrated support for selecting and switching to custom clock types upon successful download. Fixed minor bugs in URL and directory management for improved reliability.
This ensures the widget cycle delay is properly reinitialized when switching to the Clock widget. It prevents potential timing issues caused by outdated cycle delay values.
Enhanced the ClockWidget to allow setting second hand and override colors for custom clocks. Introduced helper functions for clean configuration key generation, added API for updating configurations, and extended logging to reflect color settings. These changes provide a more flexible and user-configurable clock system.
427ac44 to
1ccb760
Compare
Simplified and streamlined the rendering flow when displaying clockface downloads. Improved clarity by consolidating conditions and ensuring proper screen updates based on clockName, authorName, and customClock values. This reduces redundancy and enhances maintainability.
Extended `ConfigManager` to update corresponding `WiFiManagerParameter` values when configuration changes using `setConfig`. Added a new `findParameter` method to locate parameters, along with `setValue` implementations for `StringParameter`, `IntParameter`, `FloatParameter`, and others. Note: Updates for `BoolParameter` and `ComboBoxParameter` are currently placeholders.
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.
This PR adds new endpoints needed for the upcoming Clock repo.