Dashticz - Module - Public Transport

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts »

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

Code: Select all

.publictransport div {
    font-size: 13px;
}
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by HansieNL »

Bus timetable is only showing morning table. Any suggestion?
Blah blah blah
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts »

What's the code in your config for the bus?
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by HansieNL »

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: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post 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
Last edited by jake on Wednesday 17 May 2017 22:44, edited 1 time in total.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts »

I did change sowthing with this. Will fix this tomorrow!
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts »

Please try again with latest beta! :)
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by HansieNL »

robgeerts wrote:Please try again with latest beta! :)
Seems the right timetable now. :D
Well done and thanks.
Blah blah blah
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post 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 ;)
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Public Transport

Post by EdwinK »

Would it also be possible to see what kind of train it is? Intercity, Sprinter or who knows what
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz - Module - Public Transport

Post 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!
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - Module - Public Transport

Post 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
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by vgr2 »

Something changed hear with the last update? Update timing is very slow and most of the time it is loading.
edwin
Posts: 11
Joined: Wednesday 30 November 2016 15:21
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post 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!
Recent beta (git) on Arch Linux | Dashticz v2 (git) | RFLink 46.0 | Ikea Trådfri | P1 Smart Meter
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post by robgeerts »

@edwin, available now in latest version!
edwin
Posts: 11
Joined: Wednesday 30 November 2016 15:21
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by edwin »

Excellent, thanks Rob!
Recent beta (git) on Arch Linux | Dashticz v2 (git) | RFLink 46.0 | Ikea Trådfri | P1 Smart Meter
edwin
Posts: 11
Joined: Wednesday 30 November 2016 15:21
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post 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
Recent beta (git) on Arch Linux | Dashticz v2 (git) | RFLink 46.0 | Ikea Trådfri | P1 Smart Meter
User avatar
Dynamic
Posts: 109
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: Dashticz - Module - Public Transport

Post 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?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Public Transport

Post 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..
User avatar
Dynamic
Posts: 109
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: Dashticz - Module - Public Transport

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

Who is online

Users browsing this forum: No registered users and 1 guest