Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/record-hafas-data
CLI tool to record data from monitor-hafas-cli into a LevelDB.
https://github.com/derhuerst/record-hafas-data
delays departures hafas public-transport transit
Last synced: 3 days ago
JSON representation
CLI tool to record data from monitor-hafas-cli into a LevelDB.
- Host: GitHub
- URL: https://github.com/derhuerst/record-hafas-data
- Owner: derhuerst
- License: isc
- Created: 2018-03-25T13:54:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T22:09:08.000Z (over 4 years ago)
- Last Synced: 2024-12-08T02:37:30.057Z (27 days ago)
- Topics: delays, departures, hafas, public-transport, transit
- Language: JavaScript
- Homepage: https://github.com/derhuerst/hafas-record-delays#record-hafas-data
- Size: 91.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# record-hafas-data
**CLI tool to record data from [`monitor-hafas-cli@2`](https://github.com/derhuerst/monitor-hafas-cli) into a [LevelDB](https://github.com/google/leveldb).**
[![npm version](https://img.shields.io/npm/v/record-hafas-data.svg)](https://www.npmjs.com/package/record-hafas-data)
[![build status](https://api.travis-ci.org/derhuerst/record-hafas-data.svg?branch=master)](https://travis-ci.org/derhuerst/record-hafas-data)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/record-hafas-data.svg)
[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)## Installing
```shell
npm install record-hafas-data
```## Usage
```
Usage:
monitor-hafas … | record-hafas-data
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 [event types]
Examples:
export-hafas-data-as-sql db.ldb departure,stopover >export.sql
```## Related
- [`monitor-hafas-cli`](https://github.com/derhuerst/monitor-hafas-cli) – Monitor any HAFAS endpoint from the command line.
## 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](https://github.com/derhuerst/record-hafas-data/issues).