Make the Roku guide full width and give weather its own audio

This commit is contained in:
Josh
2026-11-13 15:30:02 -05:00
parent 131ebf5057
commit 68dc43e1b0
7 changed files with 76 additions and 101 deletions

View File

@@ -226,7 +226,7 @@ def create_app(*, tunarr_url=None, transport=None, discover=True, id_file=None):
data = await weather_provider.read()
return {**data, "musicUrl": "/api/v1/weather/music.mp3" if weather_music.is_file() else None}
@app.get("/api/v1/weather/music.mp3")
@app.api_route("/api/v1/weather/music.mp3", methods=["GET", "HEAD"])
async def weather_audio():
if not weather_music.is_file():
raise HTTPException(404, "Weather music is not configured")