A small Python script that fetches today's hourly temperature forecast from the Open-Meteo API and sends a desktop notification with the day's average and high temperature.
- Pulls hourly temperature data for a fixed location (Calgary, AB) for the current day.
- Averages the daytime hours (8am–11pm) to compute an average temperature.
- Finds the high temperature from the full hourly forecast.
- Displays both in a desktop notification via
plyer.
- Python 3
requestsplyer
Create and activate a virtual environment, then install the dependencies.
- Create the venv:
python -m venv venv - Activate it (Windows PowerShell):
.\venv\Scripts\Activate.ps1 - Install dependencies:
pip install -r requirements.txt
Run with: python main.py
This was a small project built after finishing CS50 to practice working with APIs and classes in Python.