derhuerst / record-hafas-data

CLI tool to record data from monitor-hafas-cli into a LevelDB.

Home Page:https://github.com/derhuerst/hafas-record-delays#record-hafas-data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

record-hafas-data

CLI tool to record data from monitor-hafas-cli@2 into a LevelDB.

npm version build status ISC-licensed chat with me on Gitter support me on Patreon

Installing

npm install record-hafas-data

Usage

Usage:
	monitor-hafas … | record-hafas-data <path-to-leveldb>
Supported monitor-hafas-cli events:
	departure, stopover, trip
Options:
	--event-types  -e  Event types for record. Default: all
Examples:
	monitor-hafas vbb-hafas departure stations \
		900000100001,900000100003 | record-hafas-data vbb-deps.ldb
	monitor-hafas oebb-hafas stopover bbox \
		52.6 13.3 52.3 13.6 | record-hafas-data oebb-stopovers.ldb
Usage:
	export-hafas-data-as-sql <path-to-leveldb> [event types]
Examples:
	export-hafas-data-as-sql db.ldb departure,stopover >export.sql

Related

Contributing

If you have a question or have difficulties using record-hafas-data, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

About

CLI tool to record data from monitor-hafas-cli into a LevelDB.

https://github.com/derhuerst/hafas-record-delays#record-hafas-data

License:ISC License


Languages

Language:JavaScript 91.0%Language:Shell 9.0%