Try:
Code: Select all
publictransport.mol={station:'Mol',title:'Station Mol',show_lastupdate:true,provider:'irailbe',icon:'train',interval:15,width:7,results:5};
Moderators: leecollings, htilburgs, robgeerts
Code: Select all
publictransport.mol={station:'Mol',title:'Station Mol',show_lastupdate:true,provider:'irailbe',icon:'train',interval:15,width:7,results:5};
Code: Select all
var publictransport = {}
publictransport.ovinfotrain = { show_via: true, station: 'station-den-haag-ypenburg', title:'NS-Ypenburg', provider: '9292-train', show_lastupdate:true, icon: 'train', width: 5, results: 6 };
hello Rob, is there also a version for in Belgium?robgeerts wrote: ↑Monday 15 May 2017 23:00 First of all, thanks to @ultrara1n who started to build this module just the way the calendar- and trashmodule is coded too
In latest beta it is possible to show the timetable of the public transport company VVS (Germany) AND NS (Netherlands) with live data.
VVS:
To call the function properly, you will need the correct station id from: https://efa-api.asw.io/api/v1/station/
So for Stuttgart Central Station the station id is 5006118
Then add this to config.js:9292.nl:Code: Select all
var publictransport = {} publictransport.hbf= { show_via: true, station: '5006118', title:'Trains', show_lastupdate:true, provider: 'VVS', icon: 'train', interval: 15, results: 5 };
First get the station id from http://api.9292.nl/0.1/locations?lang=nl-NL&q=eindhoven
(Change eindhoven to your own search parameter).
Then copy the id!
Mobiliteit.lu:Code: Select all
//example station id: station-eindhoven var publictransport = {} publictransport.ovinfo= { show_via: true, station: 'station-eindhoven', title:'OV Info', show_lastupdate:true, provider: '9292', icon: 'train', results: 5 }; publictransport.ovinfotrain= { show_via: true, station: 'station-eindhoven', title:'Bus', show_lastupdate:true, provider: '9292-bus', icon: 'bus', results: 5 }; publictransport.ovinfobus= { show_via: true, station: 'station-eindhoven', title:'Trein', show_lastupdate:true, provider: '9292-train', icon: 'train', results: 5 };
To call the function properly, you will need the correct station name, for example:
Luxembourg/Centre, Royal
Then add this to config.js:Code: Select all
var publictransport = {} publictransport.ovinfobus = { key:'ovinfobus', show_via: false, station: 'Luxembourg/Centre, Royal', provider: 'mobiliteit',title:'Royal Stop',show_lastupdate:true, icon: 'bus', width:6, results: 4}
icon is simply font-awesome without fa, interval = time in seconds for refreshing the data, and results = number of shown results. Also possible is to customize the width, but i would not change the value of 12 because of the size of the output.
If anyone can provide JSON-output from other transport companies, please send me a message and I will add these!
Yes, you can use destination: 'Name of destination' to filter the destinations.rolandbreedveld wrote: ↑Friday 21 February 2020 17:56 Is it possible for publictransport.ovinfobus to filter on destination, half of the info is not relevant for me, while the bus is driving the wrong direction.
Yes, thanxz that did the trick it was "Rotterdam Zuidplein via Lombardijen"
Yes, me too, seems like since the beginning of the year.
Hello,robgeerts wrote: ↑Wednesday 02 May 2018 9:16 Added NMBS (Belgium) in latest beta! (Thanks to ericvb)
Try:
Code: Select all
publictransport.mol={station:'Mol',title:'Station Mol',show_lastupdate:true,provider:'irailbe',icon:'train',interval:15,width:7,results:5};
The irail.be API supports other languages as well (ne, en, de, fr)Doudy wrote: ↑Monday 21 February 2022 10:42 Hello,
To Robgeerts,Hello,robgeerts wrote: ↑Wednesday 02 May 2018 9:16 Added NMBS (Belgium) in latest beta! (Thanks to ericvb)
Try:
Code: Select all
publictransport.mol={station:'Mol',title:'Station Mol',show_lastupdate:true,provider:'irailbe',icon:'train',interval:15,width:7,results:5};
Is it possible to also provide information in French?
E.g.: spoor = voie
Bergen = Mons
Charleroi-Zuid = Charleroi-Sud
etc...
Thank you
![]()
Implemented in latest beta (3.9.2)Doudy wrote: ↑Monday 21 February 2022 10:42 Hello,
To Robgeerts,Hello,robgeerts wrote: ↑Wednesday 02 May 2018 9:16 Added NMBS (Belgium) in latest beta! (Thanks to ericvb)
Try:
Code: Select all
publictransport.mol={station:'Mol',title:'Station Mol',show_lastupdate:true,provider:'irailbe',icon:'train',interval:15,width:7,results:5};
Is it possible to also provide information in French?
E.g.: spoor = voie
Bergen = Mons
Charleroi-Zuid = Charleroi-Sud
etc...
Thank you
![]()
Code: Select all
blocks['ovapi'] = {
tpc: '09542',
title: 'Lijn 53 Diemen Zuid - Centraal Station',
show_lastupdate: true,
provider: 'ovapi',
show_via: true,
icon: 'fas fa-subway',
interval: '120',
newindow: '1',
results: 5,
width: 6
Users browsing this forum: Google [Bot] and 1 guest