Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
wili
Advanced tools
Readme
A Node client for the Wiener Linien public transport API
yarn add wili || npm install wili
You will need a valid API key to access Wiener Linien's real-time data, get it here.
Use ES6 imports or require()
to include the module:
// ECMAScript Import
import WienerLinien from 'wili';
// CommonJS Require
const WienerLinien = require('wili');
Example usage in script:
import WienerLinien from 'wili';
// API key can be omitted when process.env.WIENER_LINIEN_API_KEY is set
const wl = new WienerLinien(API_KEY);
wl.trafficInfoList({ relatedLine: ['U2', 'U4', 'U6'] })
.then( data => {
console.log(data.trafficInfos);
}).catch( error => {
console.error(error);
});
Usage: monitor(rbl, [options])
Returns real-time data for a station, including train information such as identifier or accessibility features.
rbl
Type: String
, Integer
, Array
RBL Number (Rechnergestütztes Betriebsleitsystem - computer-aided operations control system)
options.activeTrafficInfo
Type: String
, Array
Disruption type (stoerungkurz
, stoerunglang
, or aufzugsinfo
)
Usage: newsList(options)
Returns news, elevator maintenance and other information
options.relatedLine
Type: String
, Integer
, Array
Train or bus number, e.g. U1, S7, 59A
options.relatedStop
Type: String
, Integer
, Array
Station ID
options.name
Type: String
, Array
Information category, e.g news
or aufzugsservice
Usage: trafficInfoList([options])
Returns interruption of operations and elevator outage
options.relatedLine
Type: String
, Integer
, Array
Train or bus number, e.g. U1, S7, 59A
options.relatedStop
Type: String
, Integer
, Array
Station ID
options.name
Type: String
, Array
Disruption type (stoerungkurz
, stoerunglang
, or aufzugsinfo
)
This work is licensed under The MIT License
You are welcome support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd
FAQs
A Node client for the Wiener Linien public transport API
The npm package wili receives a total of 2 weekly downloads. As such, wili popularity was classified as not popular.
We found that wili demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.