Skip to content

Commit ce27bfb

Browse files
author
burnoutberni
committed
actually fetching warnings now, using stoerunglang instead of stoerungkurz, because that seems to fit better
1 parent 1aebbb3 commit ce27bfb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ It includes a small server written in Node.js that pulls the needed data from th
1818

1919
## API
2020

21-
Besides the HTML frontend you can find a JSON API at ```/api```. It returns a status message, an array of departures and an array of warnings, which include all traffic infos of the type ```stoerungkurz``` from the Wiener Linien API.
21+
Besides the HTML frontend you can find a JSON API at ```/api```. It returns a status message, an array of departures and an array of warnings, which include all traffic infos of the type ```stoerunglang``` from the Wiener Linien API.
2222

2323
### Example response
2424

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oeffimonitor",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Displays an info screen with the next Wiener Linien public transport connections nearby.",
55
"main": "server/httpd.js",
66
"directories": {

server/settings.example.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ const api_ids = [
1515
"1376", // Auerspergstraße 46er (nur stadtauswärts)
1616
"5691" // Auerspergstraße N46
1717
];
18-
const api_url = 'http://www.wienerlinien.at/ogd_realtime/monitor?sender='+api_key+'&rbl='+api_ids.join("&rbl=");
18+
19+
const api_url = 'http://www.wienerlinien.at/ogd_realtime/monitor' +
20+
'?activateTrafficInfo=stoerunglang' +
21+
`&sender=${api_key}`+
22+
'&rbl=' + api_ids.join("&rbl=");
23+
1924
const exclude_lines = [
2025
'VRT',
2126
];

0 commit comments

Comments
 (0)