PM2.5 Phayao Forecast.
Real-time PM2.5 monitoring and 24-hour forecasts for Phayao
- Role
- Solo developer
- Year
- 2026
Overview
Brings current PM2.5, weather, a 24-hour forecast, health advice and related news into one place for residents of Phayao. Officers can publish announcements and broadcast alerts; admins manage users and retrain the forecasting model from collected data.
What I did
- Built a PM2.5 monitoring platform with 24-hour forecasts using Next.js, PostgreSQL/Prisma and a FastAPI + scikit-learn ML service.
- Designed an ingestion worker that pulls Open-Meteo and Air4Thai data into PostgreSQL and lets admins retrain the model on real readings.
- Implemented 4-role access control, personal alert thresholds and officer broadcasts.
- Orchestrated the web app, ML service, ingestion worker and database with Docker Compose and a health-check API.
Tech stack
- Next.js
- TypeScript
- PostgreSQL
- Prisma
- FastAPI
- scikit-learn
- Tailwind CSS
- zod
- Docker