https://github.com/unmonoqueteclea/valencianow
🚗 🚲 Real-time traffic information about the city of Valencia (Spain)
https://github.com/unmonoqueteclea/valencianow
maps open-data real-time streamlit tinybird traffic-analysis
Last synced: 18 days ago
JSON representation
🚗 🚲 Real-time traffic information about the city of Valencia (Spain)
- Host: GitHub
- URL: https://github.com/unmonoqueteclea/valencianow
- Owner: unmonoqueteclea
- Created: 2024-03-14T07:20:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-04-02T10:40:04.000Z (2 months ago)
- Last Synced: 2026-04-03T00:47:32.949Z (2 months ago)
- Topics: maps, open-data, real-time, streamlit, tinybird, traffic-analysis
- Language: Python
- Homepage: https://valencianow.unmonoqueteclea.freemyip.com/
- Size: 5.39 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 🦇 valencia now
⌚ Real-time traffic information about the city of Valencia
(Spain). 🔗 [Check it now!](https://valencianow.unmonoqueteclea.freemyip.com/)
Data from **public sources** about **car traffic**, **bikes traffic**
and **air quality** is periodically collected and stored with
[Tinybird](https://www.tinybird.co/). Real time and aggregated data is
shown in an [Streamlit](https://streamlit.io/) application.

## How it works
The system consists of two main components: data ingestion pipelines
in `Tinybird` that collect and process sensor data from [Valencia's
open data portal](https://valencia.opendatasoft.com/), and a
`Streamlit` web application that visualizes real-time and historical
data through interactive maps and charts. Additionally, the application
displays live emergency vehicle locations from V16 beacons in the
Valencia region.
## Installation and Usage
First, set up the data infrastructure in Tinybird using the
configuration files in the `tinybird/` folder to create all required
data sources, pipes, and endpoints. A **GitHub Actions** pipeline
automatically collects data from Valencia's open data portal and sends
it to `Tinybird` on a periodic schedule.
Set the required environment variables for Tinybird access:
```bash
export TINYBIRD_HOST=https://api.tinybird.co
export TINYBIRD_TOKEN=your_token_here
```
Install [uv](https://docs.astral.sh/uv/) and run the `Streamlit` application:
```bash
cd ui
uv run streamlit run src/valencianow/app.py
```