Dashticz - Module - Public Transport

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts » Tuesday 16 May 2017 22:39

Just added an extra class, download latest beta and add to custom.css:

Code: Select all

.publictransport div {
    font-size: 13px;
}
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
HansieNL
Posts: 436
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by HansieNL » Wednesday 17 May 2017 19:47

Bus timetable is only showing morning table. Any suggestion?
Blah blah blah

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts » Wednesday 17 May 2017 21:07

What's the code in your config for the bus?
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
HansieNL
Posts: 436
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by HansieNL » Wednesday 17 May 2017 22:11

robgeerts wrote:What's the code in your config for the bus?
lastupdate is giving current date and time

Fixed
Last edited by HansieNL on Thursday 18 May 2017 23:16, edited 1 time in total.
Blah blah blah

jake
Posts: 458
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

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

Post by jake » Wednesday 17 May 2017 22:44

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
Last edited by jake on Wednesday 17 May 2017 22:44, edited 1 time in total.

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts » Wednesday 17 May 2017 22:47

I did change sowthing with this. Will fix this tomorrow!
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts » Thursday 18 May 2017 16:12

Please try again with latest beta! :)
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
HansieNL
Posts: 436
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by HansieNL » Thursday 18 May 2017 20:39

robgeerts wrote:Please try again with latest beta! :)
Seems the right timetable now. :D
Well done and thanks.
Blah blah blah

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts » Thursday 18 May 2017 20:51

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 ;)
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
EdwinK
Posts: 1317
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Rhoon
Contact:

Re: Dashticz - Module - Public Transport

Post by EdwinK » Thursday 18 May 2017 20:55

Would it also be possible to see what kind of train it is? Intercity, Sprinter or who knows what
Running latest BETASTABLE on a Pi-3 | Toon Thermostat (rooted) | RFxcom | Dashticz V2 |
Back to stable for now, as beta ***** over my installation

jake
Posts: 458
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Dashticz - Module - Public Transport

Post by jake » Thursday 18 May 2017 23:12

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!

poudenes
Posts: 555
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - Module - Public Transport

Post by poudenes » Wednesday 24 May 2017 14:37

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
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by vgr2 » Wednesday 21 June 2017 20:25

Something changed hear with the last update? Update timing is very slow and most of the time it is loading.

edwin
Posts: 15
Joined: Wednesday 30 November 2016 16:21
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by edwin » Tuesday 08 August 2017 19:36

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!
Recent beta (git) on Arch Linux | Dashticz v2 (git) | RFLink 46.0 | Ikea Trådfri | P1 Smart Meter

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts » Tuesday 08 August 2017 20:42

@edwin, available now in latest version!
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

edwin
Posts: 15
Joined: Wednesday 30 November 2016 16:21
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by edwin » Wednesday 09 August 2017 7:55

Excellent, thanks Rob!
Recent beta (git) on Arch Linux | Dashticz v2 (git) | RFLink 46.0 | Ikea Trådfri | P1 Smart Meter

edwin
Posts: 15
Joined: Wednesday 30 November 2016 16:21
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by edwin » Thursday 10 August 2017 8:35

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
Recent beta (git) on Arch Linux | Dashticz v2 (git) | RFLink 46.0 | Ikea Trådfri | P1 Smart Meter

User avatar
Dynamic
Posts: 217
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: Dashticz - Module - Public Transport

Post by Dynamic » Friday 11 August 2017 14:08

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?

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts » Friday 11 August 2017 14:31

Are you sure you have the correct name? Are both busstoos having the same name? I entered mine and do get both directions..
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
Dynamic
Posts: 217
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: Dashticz - Module - Public Transport

Post by Dynamic » Friday 11 August 2017 14:48

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest