current-regio-speed

1.0.0 • Public • Published

current-regio-speed

Get the speed of the Regio (RE/RB) train you're sitting in.

npm version ISC-licensed chat on gitter support me on Patreon

Usage

npx current-regio-speed
# 131 km/h
npx current-regio-speed --json
# 131
npx current-regio-speed --json # in a tunnel
# null
npx current-regio-speed --refresh 5 # refresh speed every 5 seconds

API

speed()

Returns a Promise that resolves with the current speed in km/h.

Contributing

If you have a question or have difficulties using current-regio-speed, 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.

Package Sidebar

Install

npm i current-regio-speed

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • derhuerst