A Python application that fetches real-time weather data and stores it in a database. Built for CSIS 1230 - Programming for Everyone II.
- Fetches weather data from Open-Meteo API
- Stores data in PostgreSQL database
- RESTful API endpoints with Flask
- Clone this repository:
git clone https://github.com/Tonje24/WeatherTracker.git
cd WeatherTracker- Install dependencies:
pip install -r requirements.txt- Set up your PostgreSQL database and run populate.py
python app.py| Method | Endpoint | Description |
|---|---|---|
| GET | / | View all observations |
| POST | /ingest?city=&country= | Add new observation |
| GET | /observations | Get all observations |
| GET | /observations/id | Get by ID |
| PUT | /observations/id | Update notes |
| DELETE | /observations/id | Delete observation |
- Python 3
- PostgreSQL
- Flask
- Open-Meteo API