Running a weather platform with an AI assistant on one server

By Hifsul · 2026-11-16 · 2 min read

Metbeat is a weather platform for India and Kerala: forecasts up to 16 days, rainfall maps, alerts, an AI assistant, an English and Malayalam news hub and paid subscriptions. It runs on a single server, which is a deliberate choice for a product at this stage.

One reproducible stack

A Docker Compose stack holds the database, the API, the front end and Nginx on AWS EC2, with Cloudflare in front. Everything that runs in production can be started the same way on a laptop, which makes problems far easier to reproduce.

Keys never reach the browser

The weather providers and Google Gemini are called through the app's own API, never from the browser. The assistant, WeatherBuddy, keeps saved conversations and memory on the server, and API rate limiting protects both the server and the providers' quotas.

Staying up during deploys

Nginx keeps serving cached pages while a deploy is in progress, so a release does not mean a blank site. Nightly backups run automatically.

Alerts on a schedule

A job runs every 30 minutes to check conditions and send weather alerts as push notifications. A fixed schedule keeps load predictable and alerts timely without a separate service to run. About 88 backend tests cover the platform, which is live at metbeat.com and installs as an app.

Related

All articles · Start a project