Refactor project into two standalone components
Split monorepo into separate units for future independent repositories: - media-server/: Standalone FastAPI server with own README, requirements, config example, and CLAUDE.md - haos-integration/: HACS-ready Home Assistant integration with hacs.json, own README, and CLAUDE.md Both components now have their own .gitignore files and can be easily extracted into separate repositories. Also adds custom icon support for scripts configuration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
39
media-server/CLAUDE.md
Normal file
39
media-server/CLAUDE.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Media Server - Development Guide
|
||||
|
||||
## Overview
|
||||
|
||||
Standalone REST API server (FastAPI) for controlling system-wide media playback on Windows, Linux, macOS, and Android.
|
||||
|
||||
## Running the Server
|
||||
|
||||
### Manual Start
|
||||
|
||||
```bash
|
||||
python -m media_server.main
|
||||
```
|
||||
|
||||
### Auto-Start on Boot (Windows Task Scheduler)
|
||||
|
||||
Run in **Administrator PowerShell** from the media-server directory:
|
||||
|
||||
```powershell
|
||||
.\media_server\service\install_task_windows.ps1
|
||||
```
|
||||
|
||||
To remove the scheduled task:
|
||||
|
||||
```powershell
|
||||
Unregister-ScheduledTask -TaskName "MediaServer" -Confirm:$false
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Copy `config.example.yaml` to `config.yaml` and customize.
|
||||
|
||||
The API token is generated on first run and displayed in the console output.
|
||||
|
||||
Default port: `8765`
|
||||
|
||||
## Git Rules
|
||||
|
||||
Always ask for user approval before committing changes to git.
|
||||
Reference in New Issue
Block a user