Skip to content

A little CLI Script for looking up connections of sbb/cff/ffs

License

Notifications You must be signed in to change notification settings

absturztaube/sbb_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Bash SBB Fahrplan

Created this on a Sunday, just for the lulz.

This script uses the http://transport.opendata.ch/ API to lookup connections of SBB/CFF/FFS trains and stuff.

Requirements

  • curl
  • jq

Maybe some other stuff to... I used the things available on my pc, so...

Usage

Just run this script like this

./sbb.sh bern zürich

This should give you the next 4 connections from bern to zürich

Time and Date can be specified by -t and -d switches

./sbb.sh -d 14.10.2018 -t 10:15 bern zürich

Via is implemented by -v

./sbb.sh -v lausanne brig bern

If date and/or time should be used to search for arrival time, use -a

./sbb.sh -t 20:00 -a bern basel

Infos

Feel free to use this thing. Fork it, and make it your own^^

Contributions

Thanks to @nohillside for adding support for macOS

About

A little CLI Script for looking up connections of sbb/cff/ffs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages