Skip to content

luci-app-led-nightmode: add LED night mode UI - #8998

Draft
mv-go wants to merge 1 commit into
openwrt:masterfrom
mv-go:luci-app-led-nightmode
Draft

luci-app-led-nightmode: add LED night mode UI#8998
mv-go wants to merge 1 commit into
openwrt:masterfrom
mv-go:luci-app-led-nightmode

Conversation

@mv-go

@mv-go mv-go commented Sep 2, 2026

Copy link
Copy Markdown

Add the native LuCI interface for the separately packaged led-nightmode runtime.

This Draft PR depends on openwrt/packages#30426. It should remain draft until the core package is accepted or otherwise available to the LuCI build.

The application provides:

  • a simple default settings flow with advanced controls separated out;
  • manual, fixed-time, and sunrise/sunset scheduling controls;
  • runtime LED inventory and safe calibrated brightness options;
  • optional provider configuration, read-only probe, and reversible visual test controls;
  • menu metadata, translations, and a least-privilege rpcd ACL.

The contribution is UI-only. UCI configuration, init scripts, CLI, service runners, rpcd executable, and generic provider API are owned by the linked led-nightmode package. The hardware-specific Quectel provider is intentionally excluded.

Validation completed:

  • current LuCI JavaScript and JSON lint;
  • translation template regeneration and comparison with current build/i18n-scan.pl;
  • official current snapshot SDK build of the staged core and UI packages together;
  • official OpenWrt 25.12.4 SDK build and an offline apk-tools 3 upgrade transaction from monolithic 0.5.0-r8.

The commit is SSH-signed and has a matching Signed-off-by: Mv Go <rapture-ribose6k@icloud.com>.

@openwrt openwrt Bot added the add package Introduces a new package Makefile build script label Sep 2, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1 new commit; 6 inline comments. The commit message matches the diff.

Main points: the custom postinst drops the rpcd reload that luci.mk normally performs, which the new ACL file needs; and the timezone-derived latitude/longitude are displayed but never persisted to UCI.

Noted for context (no action requested here): the +led-nightmode runtime and the luci.led-nightmode ubus object are not yet in the packages feed, but the PR description already calls out openwrt/packages#30426 as a prerequisite and marks this draft until then.


Generated by Claude Code

Comment thread applications/luci-app-led-nightmode/Makefile Outdated
Comment thread applications/luci-app-led-nightmode/po/templates/led-nightmode.pot Outdated
Comment thread applications/luci-app-led-nightmode/Makefile Outdated
@openwrt openwrt Bot added the not following guidelines Pull request does not follow formatting guidelines label Sep 3, 2026
@mv-go
mv-go force-pushed the luci-app-led-nightmode branch 2 times, most recently from 5fb3d87 to 053b9bf Compare September 3, 2026 14:15
@openwrt openwrt Bot removed the not following guidelines Pull request does not follow formatting guidelines label Sep 3, 2026
@mv-go
mv-go force-pushed the luci-app-led-nightmode branch from 053b9bf to f0282b1 Compare September 3, 2026 14:18

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1 new commit.


Generated by Claude Code

Add the native LuCI interface for the separately packaged led-nightmode runtime.

Provide settings, scheduling controls, LED inventory, and provider controls.

Add translations, menu metadata, and a least-privilege rpcd ACL.

Keep hardware-specific provider implementations outside this LuCI contribution.

Signed-off-by: Mv Go <rapture-ribose6k@icloud.com>
@mv-go
mv-go force-pushed the luci-app-led-nightmode branch from f0282b1 to e35359f Compare September 3, 2026 20:18

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1 new commit; no new issues found.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add package Introduces a new package Makefile build script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants