derhuerst / fetch-db-operating-status

Fetch major alerts about the operating status of Deutsche Bahn.
https://github.com/derhuerst/fetch-db-operating-status#fetch-db-operating-status
ISC License
0 stars 0 forks source link
deutsche-bahn public-transport transit

fetch-db-operating-status

Fetch major alerts about the operating status of Deutsche Bahn.

npm version build status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installation

npm install fetch-db-operating-status

Usage

const fetchOperatingStatus = require('.')

fetchOperatingStatus()
.then(console.log)
.catch(console.error)
{
    messageId: 9086315,
    translations: {
        en: {
            title: 'Strike is over',
            message: 'Minor disruption to rail services can still occur.',
            link: 'https://www.bahn.de/p/view/service/aktuell/index.shtml'
        },
        de: {
            title: 'Nach Streikende: Bahnverkehr stabilisiert sich weiter.',
            message: 'Für Dienstag, 11.12. regulärer Zugverkehr erwartet. ',
            link: 'https://www.bahn.de/p/view/service/aktuell/index.shtml?dbkanal_007=L01_S01_D001_KIN0001_blitzbox-bahndeaktuell-021218_LZ01'
        }
    }
}

Contributing

If you have a question or need support using fetch-db-operating-status, 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.