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

https://github.com/kallelat/chuchu

A simple Go app to poll train statuses.
https://github.com/kallelat/chuchu

cli demo golang server train

Last synced: 4 months ago
JSON representation

A simple Go app to poll train statuses.

Awesome Lists containing this project

README

          

# chuchu

A simple Go app to poll statuses and timetables of trains operating in Finnish railroad system.

It uses public API's from https://www.digitraffic.fi/rautatieliikenne/ as source.

The app supports CLI version and a lightweight HTTP server.

## CLI

### List stations

```
go run *.go -stations
```

### List all trains for a station

```
go run *.go -station
```

### List all trains

```
go run *.go -all
```

### Show a single train

```
go run *.go -train
```

### Watch a single train as it travels

```
go run *.go -watch
```

## HTTP Server

```
go run *.go -server
```