Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anotherkamila/transport-ch-exporter

Haven't you always wanted to have a proper dashboard to check your next tram? ;-)
https://github.com/anotherkamila/transport-ch-exporter

grafana metrics prometheus-exporter public-transport switzerland

Last synced: about 2 months ago
JSON representation

Haven't you always wanted to have a proper dashboard to check your next tram? ;-)

Awesome Lists containing this project

README

        

# transport-ch-exporter

![contributions welcome!](https://img.shields.io/badge/contributions-welcome!-brightgreen)

Prometheus exporter for the [transport.opendata.ch](https://transport.opendata.ch/) public transport API.

Haven't you always wanted to have a proper dashboard to check your next tram? ;-)

![grafana dashboard screenshot](./screenshot.png)

Add your connections to `config.yml` (see the example included here).

In your dashboards, use queries such as:
```
min(transport_next_departure_unixtime{number=~"61|62"} - time())
```