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.
- Host: GitHub
- URL: https://github.com/kallelat/chuchu
- Owner: kallelat
- License: mit
- Created: 2022-10-13T11:49:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T11:48:37.000Z (over 3 years ago)
- Last Synced: 2024-06-21T19:54:54.450Z (about 2 years ago)
- Topics: cli, demo, golang, server, train
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```