WEATHER FORECAST

CLI Application ยท 2023

WEATHER FORECAST

A command-line weather forecast application built with Python. Retrieves real-time weather data from Weather API, formats it into readable tables, and saves forecasts to text files for offline access.

The Problem & User Needs

Command-line users and developers often prefer fetching utility information like weather without leaving the terminal. The goal was to build a clean CLI tool that formats complex JSON weather data into easily readable text tables.

Role & Contributions

Role

Backend Developer (Internship Project)

Responsibilities

API integration, data parsing, CLI formatting, and implementing file I/O operations.

Research Methods

Evaluated several weather APIs (OpenWeatherMap vs. WeatherAPI) based on documentation clarity, response time, and JSON structure complexity. Determined the necessary data fields required for a concise terminal output.

Design Process & Architecture

01. Data Modeling

Extracted relevant fields (temp, conditions, dates) from deeply nested API responses.

02. CLI UX

Designed a tabular output format that aligns properly regardless of terminal width.

03. Modularity

Separated concerns into distinct functions: fetch, format, and save, ensuring clean code.

Terminal output formatting and architecture planning.
Terminal output formatting and architecture planning.

Measurable Outcomes

Successfully delivered a robust CLI tool handling network errors gracefully. The project cemented foundational skills in REST API consumption, JSON parsing, and Python scripting.

WEATHER FORECAST
Fig 1.1 โ€” Final Render
Previous Project
Previous
Index
Home
Next Project
Next