refactor: rename project to LedGrab, split HA integration into separate repo
Lint & Test / test (push) Successful in 1m56s
Lint & Test / test (push) Successful in 1m56s
- Rename Python package: wled_controller -> ledgrab - Rename env var prefix: WLED_ -> LEDGRAB_ (with auto-migration for old vars) - Rename localStorage key: wled_api_key -> ledgrab_api_key (with migration) - Rename HA integration domain: wled_screen_controller -> ledgrab - Update all imports, build scripts, Docker, installer, config, docs - Remove HA integration (moved to ledgrab-haos-integration repo) - Remove hacs.json (belongs in HA repo now) - Add startup warning for users with old WLED_ env vars - All tests pass (715/715), ruff clean, tsc clean, frontend builds
This commit is contained in:
+11
-11
@@ -1,4 +1,4 @@
|
||||
# WLED Screen Controller - Server
|
||||
# LedGrab - Server
|
||||
|
||||
High-performance FastAPI server that captures screen content and controls WLED devices for ambient lighting.
|
||||
|
||||
@@ -47,7 +47,7 @@ export PYTHONPATH=$(pwd)/src # Linux/Mac
|
||||
set PYTHONPATH=%CD%\src # Windows
|
||||
|
||||
# Run server
|
||||
uvicorn wled_controller.main:app --host 0.0.0.0 --port 8080
|
||||
uvicorn ledgrab.main:app --host 0.0.0.0 --port 8080
|
||||
```
|
||||
|
||||
## Installation
|
||||
@@ -85,20 +85,20 @@ storage:
|
||||
|
||||
logging:
|
||||
format: "json"
|
||||
file: "logs/wled_controller.log"
|
||||
file: "logs/ledgrab.log"
|
||||
```
|
||||
|
||||
### Environment Variables
|
||||
|
||||
```bash
|
||||
# Server configuration
|
||||
export WLED_SERVER__HOST="0.0.0.0"
|
||||
export WLED_SERVER__PORT=8080
|
||||
export WLED_SERVER__LOG_LEVEL="INFO"
|
||||
export LEDGRAB_SERVER__HOST="0.0.0.0"
|
||||
export LEDGRAB_SERVER__PORT=8080
|
||||
export LEDGRAB_SERVER__LOG_LEVEL="INFO"
|
||||
|
||||
# Processing configuration
|
||||
export WLED_PROCESSING__DEFAULT_FPS=30
|
||||
export WLED_PROCESSING__BORDER_WIDTH=10
|
||||
export LEDGRAB_PROCESSING__DEFAULT_FPS=30
|
||||
export LEDGRAB_PROCESSING__BORDER_WIDTH=10
|
||||
|
||||
# WLED configuration
|
||||
export WLED_WLED__TIMEOUT=5
|
||||
@@ -147,7 +147,7 @@ curl http://localhost:8080/api/v1/devices/{device_id}/state
|
||||
pytest
|
||||
|
||||
# Run with coverage
|
||||
pytest --cov=wled_controller --cov-report=html
|
||||
pytest --cov=ledgrab --cov-report=html
|
||||
|
||||
# Run specific test
|
||||
pytest tests/test_screen_capture.py -v
|
||||
@@ -158,7 +158,7 @@ pytest tests/test_screen_capture.py -v
|
||||
### Project Structure
|
||||
|
||||
```
|
||||
src/wled_controller/
|
||||
src/ledgrab/
|
||||
├── main.py # FastAPI application
|
||||
├── config.py # Configuration
|
||||
├── api/ # API routes
|
||||
@@ -188,4 +188,4 @@ MIT - see [../LICENSE](../LICENSE)
|
||||
## Support
|
||||
|
||||
- 📖 [Full Documentation](../docs/)
|
||||
- 🐛 [Issues](https://git.dolgolyov-family.by/alexei.dolgolyov/wled-screen-controller-mixed/issues)
|
||||
- 🐛 [Issues](https://git.dolgolyov-family.by/alexei.dolgolyov/ledgrab/issues)
|
||||
|
||||
Reference in New Issue
Block a user