diff --git a/README.md b/README.md index 130d62b..d6f71c9 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ The current host uses the NVIDIA Compose override for Tunarr's CUDA transcode pr ## Weather channel -Tune to channel 99 in the retroLabs Roku app. This host is configured for Dunnellon, FL (34431). The screen rotates through current conditions, six hourly periods, six extended forecast periods, and sunrise/sunset. Active NWS alerts appear across the rotation. The bridge caches data and marks delayed responses. +Tune to channel 99 in the retroLabs Roku app. This host is configured for Dunnellon, FL (34431). The screen rotates through current conditions, six hourly periods, three extended forecast cards with daily highs and lows, and sunrise/sunset. Active NWS alerts appear across the rotation. The bridge caches data and marks delayed responses. To set a location on another host, set `RETROTV_WEATHER_POINT` (latitude,longitude) and `RETROTV_WEATHER_LOCATION` in `.env`, then run `docker compose up -d --no-deps bridge`. The bridge serves the feed at `/api/v1/weather`. Weather is rendered by the Roku app. Its muted live inset shows the last tuned linear channel, or the first linear channel when weather is opened directly. The inset shares the tuner's video player. diff --git a/bridge/weather.py b/bridge/weather.py index 9ac5767..687fee2 100644 --- a/bridge/weather.py +++ b/bridge/weather.py @@ -84,7 +84,7 @@ class NWSWeather: "current": observation_data, "almanac": {key: local_time(daylight[key]) for key in ("sunrise", "sunset")}, "hourly": future_periods(hourly, now)[:6], - "forecast": future_periods(forecast, now)[:6], + "forecast": future_periods(forecast, now)[:7], "alerts": [ {"event": alert["event"], "headline": alert.get("headline")} for alert in alerts or [] if after(alert.get("ends") or alert.get("expires"), now) @@ -116,7 +116,8 @@ def observation(body): def periods(body, limit): return [ {"name": item["name"] or local_time(datetime.fromisoformat(item["startTime"])), "start": item["startTime"], "end": item["endTime"], - "temperature": item["temperature"], "conditions": item["shortForecast"]} + "temperature": item["temperature"], "conditions": item["shortForecast"], + "daytime": item["isDaytime"]} for item in body["properties"]["periods"][:limit] ] diff --git a/roku/components/RetroScene.xml b/roku/components/RetroScene.xml index c6f135f..dcd8abb 100644 --- a/roku/components/RetroScene.xml +++ b/roku/components/RetroScene.xml @@ -6,22 +6,60 @@