Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

derhuerst/record-vbb-delays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

record-vbb-delays

Deprecated. Use monitor-hafas-cli@2 with record-hafas-data.


Record VBB departures.

npm version ISC-licensed gitter channel support me on Patreon

Installing

npm i -g record-vbb-delays

Or just use npx:

record-vbb-delays --interval 10 --stations 900000100003,900000100001

Usage

Usage:
    record-vbb-delays [command] [options]
Options:
	--db            -d  Path to LevelDB. Default: vbb-delays.ldb
	--stations      -s  Stations to monitor. Default: all
	--stations-file     JSON file with stations to monitor.
	--interval      -i  In seconds. Default: 30
	--quiet         -q  Don't show progress reports. Default: false
Examples:
    record-vbb-delays --db my-custom.leveldb -s 900000100003,900000100001
    record-vbb-delays --stations-file stations-to-monitor.json -q
    record-vbb-delays export-sql --db my-custom.leveldb >delays.sql
    record-vbb-delays export-ndjson --db my-custom.leveldb >delays.ndjson
    cat delays.ndjson | record-vbb-delays last-dep-per-stopover >last-dep-delays.ndjson

You can get station IDs using vbb-stations-cli.

Pro Tip: Use screen to handle this long-running process.

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.