L4L Asthma Air Quality App

Imperial College London - BioEng 404 Computational Project

Server Online

About This Application

A desktop application for tracking inhaler usage and monitoring air quality levels. This app helps asthma patients manage their condition by logging daily inhaler use and staying informed about local air pollution.

API Endpoints

Our REST API provides the following endpoints:

GET /api/airquality/news
Returns latest air quality news as JSON
GET /api/inhaler/today
Returns today's inhaler usage count
GET /api/inhaler/history
Returns 30-day usage history
POST /api/inhaler/log
Log new inhaler usage (requires JSON body)

Features

Usage Tracking - Log daily inhaler puffs with date/time stamps
Statistics - View 30-day usage trends with interactive charts
Air Quality - Real-time air pollution monitoring for your area
Emergency Info - Quick access to asthma emergency guidance
Cloud Sync - Data stored securely on server

Technology Stack

Frontend: Java Swing (Desktop GUI)

Backend: Java Servlets (REST API)

Database: PostgreSQL

Deployment: Tsuru Platform (Cloud)

CI/CD: GitHub Actions

Communication: HTTP/JSON

Libraries: JFreeChart, JSoup, Gson