# technicolas/velobxl architecture

> Architecture diagram of the GitHub repository technicolas/velobxl, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/technicolas/velobxl
- Repository: https://github.com/technicolas/velobxl

## Overview

veloBxl is a small PHP site for viewing live bicycle-counter data in Brussels. A visitor opens or refreshes either page; it fetches sensor data and a timestamp from Mobility Brussels, then renders hourly, daily and yearly counts plus network totals. The image-enabled page also displays each sensor’s two photo URLs. The PHP files are standalone implementations rather than a shared application pipeline. Relationships shown are supported by their excerpts; no separate storage or backend layer is evident.

Main entry points: [`velobxl.php`](https://github.com/technicolas/velobxl/blob/main/velobxl.php) (Counts page), [`velobxlpics.php`](https://github.com/technicolas/velobxl/blob/main/velobxlpics.php) (Photo counts page), [`velobxl.css`](https://github.com/technicolas/velobxl/blob/main/velobxl.css) (Page styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_bike_data["Mobility Brussels data"]
node_standard_page["Counts page<br/>[velobxl.php]"]
node_photo_page["Photo counts page<br/>[velobxlpics.php]"]
node_styles["Page styling<br/>[velobxl.css]"]

node_visitor -->|"opens or refreshes"| node_standard_page
node_visitor -->|"opens or refreshes"| node_photo_page
node_standard_page -->|"fetches counts and time"| node_bike_data
node_photo_page -->|"fetches counts and time"| node_bike_data
node_standard_page -->|"renders totals"| node_visitor
node_photo_page -->|"renders totals and photos"| node_visitor
node_standard_page -->|"links stylesheet"| node_styles
node_photo_page -->|"links stylesheet"| node_styles

click node_standard_page "https://github.com/technicolas/velobxl/blob/main/velobxl.php"
click node_photo_page "https://github.com/technicolas/velobxl/blob/main/velobxlpics.php"
click node_styles "https://github.com/technicolas/velobxl/blob/main/velobxl.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_visitor,node_bike_data toneIndigo
class node_standard_page,node_photo_page,node_styles toneTeal
```

## Components

### Other components

- **Visitor**
- **Mobility Brussels data**
- [Counts page](https://github.com/technicolas/velobxl/blob/main/velobxl.php): `velobxl.php`
- [Photo counts page](https://github.com/technicolas/velobxl/blob/main/velobxlpics.php): `velobxlpics.php`
- [Page styling](https://github.com/technicolas/velobxl/blob/main/velobxl.css): `velobxl.css`

## Connections

- Visitor → Counts page: opens or refreshes (evidence: `velobxl.php`)
- Visitor → Photo counts page: opens or refreshes (evidence: `velobxlpics.php`)
- Counts page → Mobility Brussels data: fetches counts and time (evidence: `velobxl.php`)
- Photo counts page → Mobility Brussels data: fetches counts and time (evidence: `velobxlpics.php`)
- Counts page → Visitor: renders totals (evidence: `velobxl.php`)
- Photo counts page → Visitor: renders totals and photos (evidence: `velobxlpics.php`)
- Counts page → Page styling: links stylesheet (evidence: `velobxl.php`)
- Photo counts page → Page styling: links stylesheet (evidence: `velobxlpics.php`)
