Back to Projects
Case Study 04Cloud · IoT · Real-Time Systems

Smart Water Hydro System

IoT Full-Stack Dashboard

IoT water monitoring platform replacing manual polling with a containerized Python REST API on GCP Cloud Run, Supabase real-time sync, and a live JavaScript dashboard.

01 · Project Overview

What Smart Water Hydro System Does

Smart Water Hydro System is an IoT full-stack monitoring platform that connects a containerized Python REST API deployed on Google Cloud Run with Supabase real-time cloud database synchronization and a live JavaScript visualization dashboard, delivered via automated CI/CD deployments.

02 · Motivation

Why I Chose This Project

I chose this project to gain hands-on experience running containerized Python backends on serverless cloud infrastructure (GCP Cloud Run) and streaming live IoT telemetry into a responsive web dashboard.

03 · Real-World Problem

Hydro and water monitoring setups require continuous visibility into sensor readings; polling-heavy or manually deployed backends struggle to stay reliable and up to date.

04 · Problem Statement

Build a cloud-hosted IoT telemetry pipeline that ingests sensor readings via a Python REST API, synchronizes state in real time to a cloud database, visualizes live data in a JavaScript dashboard, and deploys automatically.

06 · Proposed Solution

A Docker-containerized Python REST service running on GCP Cloud Run that writes to Supabase for real-time cloud synchronization, consumed by a lightweight JavaScript dashboard for live sensor visualization, with CI/CD handling automated builds and deployments.

05 · Project Objectives

Core Engineering Goals

  • Develop a Python REST API for ingesting and serving water/hydro sensor data.
  • Containerize the backend with Docker for consistent execution.
  • Deploy the containerized service serverlessly on GCP Cloud Run.
  • Synchronize telemetry in real time using Supabase.
  • Build a JavaScript dashboard for live sensor data visualization.
  • Automate deployments through a CI/CD pipeline.
System Architecture

Smart Water Hydro System Component Topology

5 Components · 4 Flows
Client / Input

IoT Sensor Input

Telemetry Payloads

API & Security

Python REST API

Docker Container on GCP Cloud Run

Persistence

Supabase Cloud DB

Real-Time Database Synchronization

Client / Input

JS Live Dashboard

Real-Time Sensor Data Visualization

DevOps & CI/CD

CI/CD Pipeline

Automated Container Deployments

Request & Data Flows

  1. IoT Sensor InputPython REST API
    REST telemetry ingestion
  2. Python REST APISupabase Cloud DB
    Persisted sensor state
  3. Supabase Cloud DBJS Live Dashboard
    Real-time cloud sync
  4. CI/CD PipelinePython REST API
    Automated Cloud Run deploys
Sensor telemetry enters the Python REST API packaged in Docker and hosted on GCP Cloud Run. The backend persists and synchronizes readings with Supabase's real-time cloud database, which updates the JavaScript live visualization dashboard. Code changes flow through automated CI/CD deployments.
08 · Technology Stack

Tools & Frameworks

  • Python
  • GCP Cloud Run
  • Supabase
  • Docker
  • JavaScript
09 · Implementation & Contributions

What I Built

  • Built the Python REST API backend and containerized it with Docker.
  • Deployed the containerized backend to GCP Cloud Run.
  • Integrated Supabase real-time cloud database synchronization.
  • Created the JavaScript dashboard for live sensor data visualization.
  • Configured automated deployments through CI/CD.
10 · Important Features

Key Capabilities

  • Python REST API backend
  • Docker containerization
  • Serverless deployment on GCP Cloud Run
  • Supabase real-time cloud database synchronization
  • JavaScript dashboard for live sensor data visualization
  • Automated deployments through CI/CD
11 · Development Workflow

Engineering & Delivery Process

  1. 01Local container builds and API verification with Docker.
  2. 02Automated build and deployment pipeline targeting GCP Cloud Run.
  3. 03Real-time database sync verification between Python API and JavaScript dashboard.
12 · Technical Challenges

Hard Problems Encountered

  • Ensuring the Python backend runs identically from local development to serverless GCP Cloud Run.
  • Keeping the JavaScript dashboard synchronized with incoming sensor updates without manual page refreshes.
13 · Solutions

How I Solved Those Challenges

  • Packaged the Python REST API in a Docker container deployed to GCP Cloud Run via automated CI/CD.
  • Leveraged Supabase real-time cloud database synchronization so the JavaScript dashboard reflects live sensor updates immediately.
14 · Results & Implemented Scope

What Is Implemented

  • Containerized Python REST API deployed to GCP Cloud Run with automated CI/CD, Supabase real-time database sync, and a live JavaScript dashboard.
15 · Limitations & Current Boundaries

Known Constraints

  • Live deployment URL and hardware sensor field-test screenshots are not currently linked.
  • Specific sensor parameter calibration details and uptime metrics are not published.
16 · Screenshots & Visuals

System Visual Preview

Telemetry architecture diagram shown above. Live dashboard and hardware/sensor screenshots require confirmation / asset upload.

17 · What I Learned

Engineering Takeaways

  • Packaging Python APIs in Docker for stateless, serverless execution on GCP Cloud Run.
  • Using real-time cloud database synchronization to simplify live IoT dashboards.
  • Setting up automated CI/CD workflows to eliminate manual deployment steps.
Details Requiring Confirmation
  • • Specific sensor parameters tracked (e.g., pH, TDS, water level, temperature) and live dashboard screenshots.
Next Case Study

LinLearn — Browser-Native Linux & DevOps Training

Read Next