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: 4 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T22:09:08.000Z (about 5 years ago)
- Last Synced: 2025-02-08T14:11:14.818Z (4 months 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).**
[](https://www.npmjs.com/package/record-hafas-data)
[](https://travis-ci.org/derhuerst/record-hafas-data)

[](https://gitter.im/derhuerst)
[](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).