Skip to content

Commit

Permalink
actually fetching warnings now, using stoerunglang instead of stoerun…
Browse files Browse the repository at this point in the history
…gkurz, because that seems to fit better
  • Loading branch information
burnoutberni committed Mar 4, 2017
1 parent 1aebbb3 commit ce27bfb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It includes a small server written in Node.js that pulls the needed data from th

## API

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.
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.

### Example response

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oeffimonitor",
"version": "0.1.0",
"version": "0.1.1",
"description": "Displays an info screen with the next Wiener Linien public transport connections nearby.",
"main": "server/httpd.js",
"directories": {
Expand Down
7 changes: 6 additions & 1 deletion server/settings.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ const api_ids = [
"1376", // Auerspergstraße 46er (nur stadtauswärts)
"5691" // Auerspergstraße N46
];
const api_url = 'http://www.wienerlinien.at/ogd_realtime/monitor?sender='+api_key+'&rbl='+api_ids.join("&rbl=");

const api_url = 'http://www.wienerlinien.at/ogd_realtime/monitor' +
'?activateTrafficInfo=stoerunglang' +
`&sender=${api_key}`+
'&rbl=' + api_ids.join("&rbl=");

const exclude_lines = [
'VRT',
];
Expand Down

0 comments on commit ce27bfb

Please sign in to comment.