-
Notifications
You must be signed in to change notification settings - Fork 19
Adds WLED app #7
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
jcleigh
wants to merge
5
commits into
badger:main
Choose a base branch
from
jcleigh:feature/add-wled-app
base: main
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
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| --- | ||
| title: "WLED" | ||
| description: "Controller for a WLED device: power, color presets, effects, brightness, live WiFi/device status, resilient error handling." | ||
| icon: "/images/apps/wled_icon.png" # Placeholder; replace with actual icon asset if added | ||
| category: "utility" | ||
| preloaded: false | ||
| customizable: true | ||
| fileLocation: "/apps/wled" | ||
| --- | ||
|
|
||
| # WLED | ||
|
|
||
| Controller for a WLED device (e.g. Octolamp). Manage power, colors, effects, brightness, and inspect live WiFi / device status directly from the badge. | ||
|
|
||
| ## Features | ||
|
|
||
| - **Status Monitor**: Real‑time WiFi + WLED connectivity with clear state messages | ||
| - **Power Toggle**: Immediate on/off control with confirmation | ||
| - **Color Presets**: 10 presets (WHITE, RED, GREEN, BLUE, YELLOW, CYAN, MAGENTA, ORANGE, PURPLE, PINK) | ||
| - **Effect Picker**: Popular WLED effects (SOLID, BLINK, BREATHE, RAINBOW, RAINBOW CYCLE, SCAN, FLOW, PACIFICA, SUNRISE) | ||
| - **Brightness Control**: 0–100% slider (maps to 0–255 raw value) | ||
|
|
||
| ## Controls | ||
|
|
||
| ### Status View | ||
| - **A**: Enter Control Menu (when WLED reachable) | ||
| - **B**: Refresh status (retry WiFi / device) | ||
| - **C**: Skip pending WLED queries (continue without device) | ||
| - **UP / DOWN**: (no action in status view) | ||
jcleigh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **HOME**: Exit to launcher | ||
|
|
||
| ### Control Menu | ||
| - **UP / DOWN**: Navigate items | ||
| - **A**: Select item | ||
| - **HOME**: Back to launcher | ||
|
|
||
| ### Pickers (Color / Effect / Brightness) | ||
| - **UP / DOWN**: Cycle options / adjust level | ||
| - **A**: Apply selection | ||
| - **HOME**: Exit to launcher | ||
|
|
||
| ## Install | ||
|
|
||
| 1. Copy the `badge/apps/wled/` folder from [`badger/home`](https://github.com/badger/home/tree/main/badge/apps/wled). | ||
| 2. Paste into `/apps/wled/` on the BADGER drive in USB disk mode. | ||
| 3. Eject badge, reboot, launch WLED from menu. | ||
|
|
||
| ## File Layout | ||
|
|
||
| ``` | ||
| /apps/wled/ | ||
| ├── __init__.py # Main app: UI modes, HTTP requests, parsing, rendering | ||
| ├── README.md # Detailed usage + troubleshooting (upstream) | ||
| └── icon.png # Optional launcher icon (replace placeholder path above) | ||
jcleigh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ## Configuration (`/secrets.py`) | ||
|
|
||
| Add required variables to the root-level `secrets.py`: | ||
|
|
||
| ```python | ||
| # WiFi credentials (required) | ||
| WIFI_SSID = "YourNetworkName" | ||
| WIFI_PASSWORD = "YourNetworkPassword" | ||
|
|
||
| # WLED device IP (required) | ||
| WLED_IP = "192.168.1.100" # Replace with your device's IP | ||
| ``` | ||
|
|
||
| ## Source | ||
|
|
||
| View the complete source code on GitHub: | ||
jcleigh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - [WLED controller app](https://github.com/badger/home/blob/main/badge/apps/wled/__init__.py) | ||
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.
Uh oh!
There was an error while loading. Please reload this page.