# digital-im-regio-portal-client

> Query information from the Digital im Regio portal in German Regio trains.

Latest version **1.0.1** (published 2019-06-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install digital-im-regio-portal-client
pnpm add digital-im-regio-portal-client
yarn add digital-im-regio-portal-client
bun add digital-im-regio-portal-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-06-02 |
| First published | 2019-06-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 4 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | regio, re, regional, db, train |

## Links

- npm: https://www.npmjs.com/package/digital-im-regio-portal-client
- Repository: https://github.com/derhuerst/digital-im-regio-portal-client
- Issues: https://github.com/derhuerst/digital-im-regio-portal-client/issues
- npm.io page: https://npm.io/package/digital-im-regio-portal-client

## Dependencies (4)

- [luxon](https://npm.io/package/luxon.md) ^1.16.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [fetch-ponyfill](https://npm.io/package/fetch-ponyfill.md) ^6.0.2
- [pinkie-promise](https://npm.io/package/pinkie-promise.md) ^2.0.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-06-02
- 1.0.0 — 2019-06-02

## README

# digital-im-regio-portal-client

**Query information from the [*Digital im Regio* portal in German Regio trains](https://www.zugreiseblog.de/digital-im-regio-app-colibri-auslastung/).**

[![npm version](https://img.shields.io/npm/v/digital-im-regio-portal-client.svg)](https://www.npmjs.com/package/digital-im-regio-portal-client)
[![build status](https://api.travis-ci.org/derhuerst/digital-im-regio-portal-client.svg?branch=master)](https://travis-ci.org/derhuerst/digital-im-regio-portal-client)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/digital-im-regio-portal-client.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)


## Installation

```shell
npm install digital-im-regio-portal-client
```


## Usage

```js
const fetchStatus = require('digital-im-regio-portal-client')

fetchStatus()
.then(console.log)
.catch((err) => {
	console.error(err)
	process.exit(1)
})
```

```js
{
  type: 'RE',
  number: '93109',
  name: 'RE 3',
  tickermessage: null,
  speed: 32.461,
  nextStopovers: [ {
    stop: {
      type: 'stop',
      id: '8010338',
      name: 'Stralsund Hbf',
      ds100: 'WSR',
      location: { latitude: 54.308626, longitude: 13.077321 }
    },
    arrival: null,
    arrivalPlatform: 2,
    departure: null,
    departurePlatform: 2,
    status: '',
    message: '',
    distanceToNext: 14.58,
    arrivalDelay: 0,
    departureDelay: 0
  },
  // …
  {
    stop: {
      type: 'stop',
      id: '8013470',
      name: 'Bernau(b Berlin)',
      ds100: 'BBRN',
      location: { latitude: 52.675569, longitude: 13.592641 }
    },
    arrival: null,
    arrivalPlatform: 5,
    departure: null,
    departurePlatform: 5,
    status: '',
    message: '',
    distanceToNext: null,
    arrivalDelay: 180,
    departureDelay: 180
  } ],
  position: { latitude: 52.80088, longitude: 13.736525 },
  carriageUtilization: { bikes: 0, passengers: 0 },
  carriageCapacity: { passengers: 93, bikes: 12 },
  simCards: [ {
    sim: '89492018167014765317',
    type: 'lte',
    signal: -111,
    provider: 'Vodafone D2'
  } ]
}
```


## Contributing

If you have a question or need support using `digital-im-regio-portal-client`, 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/digital-im-regio-portal-client/issues).

---
_Source: https://npm.io/package/digital-im-regio-portal-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
