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:
@@ -1,8 +1,8 @@
|
||||
@echo off
|
||||
REM WLED Screen Controller Restart Script
|
||||
REM LedGrab Restart Script
|
||||
REM This script restarts the WLED screen controller server
|
||||
|
||||
echo Restarting WLED Screen Controller...
|
||||
echo Restarting LedGrab...
|
||||
echo.
|
||||
|
||||
REM Stop the server first
|
||||
@@ -18,7 +18,7 @@ cd /d "%~dp0\.."
|
||||
REM Start the server
|
||||
echo.
|
||||
echo [2/2] Starting server...
|
||||
python -m wled_controller
|
||||
python -m ledgrab
|
||||
|
||||
REM If the server exits, pause to show any error messages
|
||||
pause
|
||||
|
||||
@@ -8,13 +8,13 @@ WshShell.CurrentDirectory = appRoot
|
||||
' Set env vars for the child process (inherited via WshShell.Run)
|
||||
Set procEnv = WshShell.Environment("Process")
|
||||
procEnv("PYTHONPATH") = appRoot & "\app\src"
|
||||
procEnv("WLED_CONFIG_PATH") = appRoot & "\app\config\default_config.yaml"
|
||||
procEnv("LEDGRAB_CONFIG_PATH") = appRoot & "\app\config\default_config.yaml"
|
||||
|
||||
' Use embedded python.exe (NOT pythonw.exe) with WindowStyle=0.
|
||||
' Same pattern as the Media Server sibling app.
|
||||
embeddedPython = appRoot & "\python\python.exe"
|
||||
If fso.FileExists(embeddedPython) Then
|
||||
WshShell.Run """" & embeddedPython & """ -m wled_controller", 0, False
|
||||
WshShell.Run """" & embeddedPython & """ -m ledgrab", 0, False
|
||||
Else
|
||||
WshShell.Run "python -m wled_controller", 0, False
|
||||
WshShell.Run "python -m ledgrab", 0, False
|
||||
End If
|
||||
|
||||
@@ -2,6 +2,6 @@ Set WshShell = CreateObject("WScript.Shell")
|
||||
Set FSO = CreateObject("Scripting.FileSystemObject")
|
||||
' Get parent folder of scripts folder (server root)
|
||||
WshShell.CurrentDirectory = FSO.GetParentFolderName(FSO.GetParentFolderName(WScript.ScriptFullName))
|
||||
WshShell.Run "python -m wled_controller", 0, False
|
||||
WshShell.Run "python -m ledgrab", 0, False
|
||||
Set FSO = Nothing
|
||||
Set WshShell = Nothing
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
@echo off
|
||||
REM WLED Screen Controller Startup Script
|
||||
REM LedGrab Startup Script
|
||||
REM This script starts the WLED screen controller server
|
||||
|
||||
echo Starting WLED Screen Controller...
|
||||
echo Starting LedGrab...
|
||||
echo.
|
||||
|
||||
REM Change to the server directory (parent of scripts folder)
|
||||
cd /d "%~dp0\.."
|
||||
|
||||
REM Start the server
|
||||
python -m wled_controller
|
||||
python -m ledgrab
|
||||
|
||||
REM If the server exits, pause to show any error messages
|
||||
pause
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
@echo off
|
||||
REM WLED Screen Controller Stop Script
|
||||
REM LedGrab Stop Script
|
||||
REM This script stops the running WLED screen controller server
|
||||
|
||||
echo Stopping WLED Screen Controller...
|
||||
echo Stopping LedGrab...
|
||||
echo.
|
||||
|
||||
REM Find and kill Python processes running wled_controller.main
|
||||
REM Find and kill Python processes running ledgrab.main
|
||||
for /f "tokens=2" %%i in ('tasklist /FI "IMAGENAME eq python.exe" /FO LIST ^| findstr /B "PID:"') do (
|
||||
wmic process where "ProcessId=%%i" get CommandLine 2>nul | findstr /C:"wled_controller.main" >nul
|
||||
wmic process where "ProcessId=%%i" get CommandLine 2>nul | findstr /C:"ledgrab.main" >nul
|
||||
if not errorlevel 1 (
|
||||
taskkill /PID %%i /F
|
||||
echo WLED controller process (PID %%i) terminated.
|
||||
@@ -15,5 +15,5 @@ for /f "tokens=2" %%i in ('tasklist /FI "IMAGENAME eq python.exe" /FO LIST ^| fi
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Done! WLED Screen Controller stopped.
|
||||
echo Done! LedGrab stopped.
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user