Skip to content

Tonje24/WeatherTracker

Repository files navigation

Tonje's Weather Tracker

A Python application that fetches real-time weather data and stores it in a database. Built for CSIS 1230 - Programming for Everyone II.

Features

  • Fetches weather data from Open-Meteo API
  • Stores data in PostgreSQL database
  • RESTful API endpoints with Flask

Installation

  1. Clone this repository:
   git clone https://github.com/Tonje24/WeatherTracker.git
   cd WeatherTracker
  1. Install dependencies:
   pip install -r requirements.txt
  1. Set up your PostgreSQL database and run populate.py

Usage

python app.py

API Endpoints

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

Technologies Used

  • Python 3
  • PostgreSQL
  • Flask
  • Open-Meteo API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors