Fix forecast API: correct comments and add cnt parameter #5

Closed
opened 2026-02-15 04:56:28 -08:00 by kyle · 0 comments
Owner

Problem: Code comments incorrectly stated the forecast endpoint returns hourly data - it actually returns 3-hour intervals. Also, the full forecast response was being fetched when only the next 24 hours are needed.

Solution: Fixed comments to say '3-hour interval forecast'. Added parameter to limit response to 8 entries (24 hours of 3-hour intervals), reducing response payload size.

Files changed:

**Problem:** Code comments incorrectly stated the forecast endpoint returns hourly data - it actually returns 3-hour intervals. Also, the full forecast response was being fetched when only the next 24 hours are needed. **Solution:** Fixed comments to say '3-hour interval forecast'. Added parameter to limit response to 8 entries (24 hours of 3-hour intervals), reducing response payload size. **Files changed:** -
kyle closed this issue 2026-02-15 05:05:25 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kyle/SignageHTML#5