
Build a Weather Bot, Part 2: Tracking Predictions Through the Day
A temperature prediction changes through the day. In the morning it's a best guess. By early afternoon the answer is almost locked in. By evening it's history. This is Part 2 of a three-part series on building with the DailyHigh API . Part 1 built a threshold alert bot. Part 3 covers monitoring multiple stations at once . 💡 Tip: All the code from this series is on GitHub: dailyhigh/weather-bot . In this post, we'll follow one station through the full day using three API endpoints, watching the prediction converge toward the final result. The three endpoints Each endpoint covers a different stage of the day: Endpoint When to use it What it gives you /api/v1/prediction/:icao Morning through peak predictedMax , confidence , slope , isPastPeak /api/v1/weather/:icao Anytime (live observation) todayMax , current temperature , forecast.maxTemp /api/v1/history/:icao/:date After peak or end of day Final maxTemp , minTemp , full hourly[] array The prediction endpoint gives you the forward-lookin
Continue reading on Dev.to Python
Opens in a new tab



