Weather Dashboard image

Weather Dashboard

Calling and logging API weather data in CSV.

When a major rainstorm hit Northern California, it was the perfect opportunity to test my newly set up Raspberry Pi and dive into APIs. I built a locally-run Flask app with a Python backend to pull weather data from the OpenWeatherMap API and log it to a CSV file. The data included temperature, rain in the last hour, humidity, weather descriptions, and even snow (a bit of wishful thinking).

The application ran smoothly throughout the storm, capturing valuable data for future analysis. To stay within the free-tier limits, I set the API calls to refresh every 20 minutes. The Flask front-end provided a seamless experience on any device connected to my home network.

It was a fun and practical way to learn about APIs, Flask, and data logging—all while watching the rain pour down outside.

Back to Posts