Skip to content

[Sunrise Clock Info] Add setting for following sun phase#4189

Merged
bobrippling merged 10 commits intoespruino:masterfrom
RKBoss6:autosun
Mar 12, 2026
Merged

[Sunrise Clock Info] Add setting for following sun phase#4189
bobrippling merged 10 commits intoespruino:masterfrom
RKBoss6:autosun

Conversation

@RKBoss6
Copy link
Contributor

@RKBoss6 RKBoss6 commented Mar 11, 2026

Adds a settings menu with an auto mode where if the time passes the sunrise time, it shows sunset, and vice versa.

Copilot AI review requested due to automatic review settings March 11, 2026 16:10
@RKBoss6 RKBoss6 marked this pull request as draft March 11, 2026 16:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a settings menu and an “auto” mode for the Sunrise Clockinfo app so the displayed clockinfo switches between sunrise/sunset automatically based on the current time.

Changes:

  • Added settings.js to expose an “Auto Rise & Set” toggle and persist it to clkinfosunrise.settings.json
  • Updated clkinfo.js to read the new setting and conditionally add either separate Sunrise/Sunset items or a single auto item
  • Bumped version to 0.06 and updated metadata/storage entries and ChangeLog

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
apps/clkinfosunrise/settings.js New settings UI that toggles/persists auto mode
apps/clkinfosunrise/metadata.json Version bump and inclusion of settings JS + settings JSON data file
apps/clkinfosunrise/clkinfo.js Reads settings and adds an auto clockinfo entry when enabled
apps/clkinfosunrise/ChangeLog Documents the new settings/auto behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RKBoss6 RKBoss6 marked this pull request as ready for review March 11, 2026 16:39
@RKBoss6 RKBoss6 changed the title [Sunrise Clock Info] Add automatic mode [Sunrise Clock Info] Add setting for following sun phase Mar 11, 2026
@bobrippling
Copy link
Collaborator

Thanks!

@bobrippling bobrippling merged commit 73509f3 into espruino:master Mar 12, 2026
2 checks passed
@RKBoss6 RKBoss6 deleted the autosun branch March 12, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants