Page 2 of 5

Re: Dashticz - Module - Public Transport

Posted: Tuesday 16 May 2017 22:39
by robgeerts
Just added an extra class, download latest beta and add to custom.css:

Code: Select all

.publictransport div {
    font-size: 13px;
}

Re: Dashticz - Module - Public Transport

Posted: Wednesday 17 May 2017 19:47
by HansieNL
Bus timetable is only showing morning table. Any suggestion?

Re: Dashticz - Module - Public Transport

Posted: Wednesday 17 May 2017 21:07
by robgeerts
What's the code in your config for the bus?

Re: Dashticz - Module - Public Transport

Posted: Wednesday 17 May 2017 22:11
by HansieNL
robgeerts wrote:What's the code in your config for the bus?
lastupdate is giving current date and time

Fixed

Re: RE: Re: Dashticz - Module - Public Transport

Posted: Wednesday 17 May 2017 22:44
by jake
HansieNL wrote:Bus timetable is only showing morning table. Any suggestion?
I have more or less the same. I added all 3 options in the screen, just to see how it goes:

I noticed it last night as well around the same time (22:40):

Train shows me on row 1 the earliest train of tomorrow (I guess), on row 2-5 it shows the next (and last for today) four trains for this evening. Therefore the sorting order is not correct

OVinfo and Bus show me indeed the 5 next buses, starting tomorrow morning, while I I checked on OV9292 that there are plenty of buses tonight that will still go.

During the day it was doing well, showing the next buses after that specific point in time

Re: Dashticz - Module - Public Transport

Posted: Wednesday 17 May 2017 22:47
by robgeerts
I did change sowthing with this. Will fix this tomorrow!

Re: Dashticz - Module - Public Transport

Posted: Thursday 18 May 2017 16:12
by robgeerts
Please try again with latest beta! :)

Re: Dashticz - Module - Public Transport

Posted: Thursday 18 May 2017 20:39
by HansieNL
robgeerts wrote:Please try again with latest beta! :)
Seems the right timetable now. :D
Well done and thanks.

Re: Dashticz - Module - Public Transport

Posted: Thursday 18 May 2017 20:51
by robgeerts
I had some buses wich had as destination something like:

Den Bosch via Veghel

Now it's an option to hide the via-part ;)

Code: Select all

publictransport.ovinfotrain= { show_via: false, station: 'station-eindhoven', title:'Bus', show_lastupdate:true, provider: '9292-bus', icon: 'bus', results: 5 };
Saves some space ;)

Re: Dashticz - Module - Public Transport

Posted: Thursday 18 May 2017 20:55
by EdwinK
Would it also be possible to see what kind of train it is? Intercity, Sprinter or who knows what

Re: Dashticz - Module - Public Transport

Posted: Thursday 18 May 2017 23:12
by jake
OVinfo now shows the time table correct: both in times late in the evening (and not right away tomorrow's schedule) as well that tomorrows departures are below the ones of tonight, so sorting in time is now correct as well.

Thanks for the update!

Re: Dashticz - Module - Public Transport

Posted: Wednesday 24 May 2017 14:37
by poudenes
I have created a PHP file to get info from the NS API and show it in a nice design. To bad im not a great programmer... Maybe someone will help me to build something that can add into Dashticz ?

The user variable will be only:
NS API Username
NS API Password
NS Station short name for me ASDZ (Amsterdam Zuid)

Here the link to see the layout: http://www.oudenes.photography/trein/tr ... p?afk=asdz

you can change ASDZ for something else if you know the short name.
on this site you can find your short name from any station: https://nl.wikipedia.org/wiki/Lijst_van ... _Nederland

Re: Dashticz - Module - Public Transport

Posted: Wednesday 21 June 2017 20:25
by vgr2
Something changed hear with the last update? Update timing is very slow and most of the time it is loading.

Re: Dashticz - Module - Public Transport

Posted: Tuesday 08 August 2017 19:36
by edwin
Hi,

Just installed this nice dashboard and noticed the public transport module was lacking some information for my nearest public transport hub. It appears for "station-amsterdam-lelyaan", 9292.nl combines the tram and buses departure times, so the 9292-bus does not show anything. Also, there is no way to only get the subway data.

For this, I implemented two new providers, "9292-metro" and "9292-tram-bus", raised an issue and created a pull request #143.

Thanks for the good work!

Re: Dashticz - Module - Public Transport

Posted: Tuesday 08 August 2017 20:42
by robgeerts
@edwin, available now in latest version!

Re: Dashticz - Module - Public Transport

Posted: Wednesday 09 August 2017 7:55
by edwin
Excellent, thanks Rob!

Re: Dashticz - Module - Public Transport

Posted: Thursday 10 August 2017 8:35
by edwin
Well... it seems the 9292-api devs have decided to change things, 2 days after I proposed the 9292-tram-bus provider:

Code: Select all

...
    {
      "id": "tram",
      "name": "Tram",
      "locations": [
        {
          "id": "amsterdam/bus-tramhalte-station-lelylaan",
...
Now it's just called "tram" (but it still includes the bus departures!) I'll probably create another pull request later today.

Cheers,

Edwin

Re: Dashticz - Module - Public Transport

Posted: Friday 11 August 2017 14:08
by Dynamic
Great function! But I have a small problem... I entered my local bus stop, but it shows me the busses for the other direction. There is a busstop on each side of the street and I need the times form the other busstop. How do i do that?

Re: Dashticz - Module - Public Transport

Posted: Friday 11 August 2017 14:31
by robgeerts
Are you sure you have the correct name? Are both busstoos having the same name? I entered mine and do get both directions..

Re: Dashticz - Module - Public Transport

Posted: Friday 11 August 2017 14:48
by Dynamic
The names are the same. But I think I found the problem. The busses depart at exactly the same time. Dashticz show me just one direction (the other way). I'll send you a screenshot via PM.