Public transport not showing all results

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Public transport not showing all results

Post by Jimster »

Hi all, last week I bought a Pi and I'm setting up Dashticz. Works great!
I'm having an issue with the public transport module.
For example, if I choose a station with a lot of trains, station-amsterdam-centraal and I set a destination where not so many trains go to, for example: Beverwijk and I set results to 6, I only get 1 result. It seems like it's only showing results that are available in a period of time, maybe one hour ahead?
Is it possible to get more results?
This is the code I use:

Code: Select all

publictransport.ovinfotrain = { 
 show_via: false,
 title: 'Treinen',
 station: 'station-amsterdam-centraal',
 destination: 'Beverwijk',
 provider: '9292-train',
 interval: '120',
 show_lastupdate: true,
 icon: 'fas fa-train',
 width: 12,
 results: 6
 } 
 
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Public transport not showing all results

Post by Lokonli »

Jimster wrote: Tuesday 04 February 2020 14:31 Hi all, last week I bought a Pi and I'm setting up Dashticz. Works great!
I'm having an issue with the public transport module.
For example, if I choose a station with a lot of trains, station-amsterdam-centraal and I set a destination where not so many trains go to, for example: Beverwijk and I set results to 6, I only get 1 result. It seems like it's only showing results that are available in a period of time, maybe one hour ahead?
Is it possible to get more results?
This is the code I use:

Code: Select all

publictransport.ovinfotrain = { 
 show_via: false,
 title: 'Treinen',
 station: 'station-amsterdam-centraal',
 destination: 'Beverwijk',
 provider: '9292-train',
 interval: '120',
 show_lastupdate: true,
 icon: 'fas fa-train',
 width: 12,
 results: 6
 } 
 
I don't think we can change that. We return the data that is provided by the 9292.nl api. This is the only data we get.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest