● Case study

ReadMyWeather

A REST API that turns live MeteoSwiss data into answers, with a Streamlit dashboard on top.

Year2025
RoleBuilt with Mattias Hansen and Nicolas Wilkinson
ContextMashups course, TP3 · UNIGE
StackPython · Flask · REST · Streamlit · pandas · MeteoSwiss open data
ReadMyWeather dashboard with Geneva selected: temperature, humidity, rain, wind and advice
Geneva selected: live readings from the Genève / Cointrin station, advice and a comfort label.

The idea

MeteoSwiss publishes the latest readings of its automatic weather stations as one raw CSV file. Useful, but not something a normal person can read. ReadMyWeather is a web service built on top of it: it does not just relay the data, it turns it into averages, comfort labels, filters and practical advice.

To prove the API works for any client, we built a Streamlit dashboard that uses it the way a third party would: no direct access to the data, only HTTP requests.

Architecture

Three layers, each with one job.

GET  /              # service status and list of endpoints
GET  /raw           # parsed MeteoSwiss readings, one entry per station
GET  /canton_stats  # average temperature per canton
GET  /comfort       # "feels like" label for each station
POST /search        # {"min_temp": -10, "max_temp": 40, "canton": "GE"}

The endpoints exposed by ReadMyWeather_API.py.

What it does

A look at the dashboard

Results

A working mashup: live public data in, a JSON API out, and a dashboard that proves it from the outside. Filtering, transformation and group aggregation turn raw measurements into information a normal user can read at a glance.

Honest limits: the comfort labels follow simple temperature and humidity rules rather than a meteorological model, and the API and the dashboard run as two local processes.