Dashticz - Module - Public Transport

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by Lokonli »

Somehow haltenummer '09542' is not working as tpc code.

I was able to find the TPC code for line 53 via:
https://v0.ovapi.nl/line/GVB_53_1

The TPC code is 30009542 for Diemen zuid.
So you the following in your block:

Code: Select all

   tpc: '30009542',
After some more analysis:

Apparently 09542 is a stoparea.
If you fill this in in your block via:

Code: Select all

  station: '09542',
you see all the lines passing the stoparea (=station).

You can find all the TPC codes in that stoparea via:
http://v0.ovapi.nl/stopareacode/09542

By some searching you should be able to select the right tpc code.
Still a bit of trial and error I'm afraid ...
Beschuitje
Posts: 27
Joined: Saturday 24 February 2018 12:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by Beschuitje »

Thanks! It's working now. :D

Also checked the other tpc codes for tram and bus and indeed they are all different than the codes on 'ovzoeker'.
All have the number 3000 in front.
stephanvdplas
Posts: 73
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - Module - Public Transport

Post by stephanvdplas »

The busstops region Zwolle have a different way to find the json info of the stops: e.g. the info of https://ovzoeker.nl/halte/c80b2bbc3bb66 ... e0d00512f5 can be found with https://ovzoeker.nl/api/arrivals/2495588. I have no clue where the number 2495588 comes from, other then look it up in the sources of the web page (via dev mode of the browser).

Is it possible to enter this in the public transport module block in Dashticz?
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
stephanvdplas
Posts: 73
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - Module - Public Transport

Post by stephanvdplas »

Following my last post...

The EBS bus stops in region Zwolle don't work. They are not enumerated in https://v0.ovapi.nl/stopareacode/
All other busstops do work, only the EBS busses don't.

I cannot find out why this is. Can someone point me to the right direction?
For instance the busstop 46006650 (https://ovzoeker.nl/halte/c06db90c8b82c ... 6df4671523) is working, but 46104005 (https://ovzoeker.nl/halte/f0d6e3a869d82 ... 4ee9f77883) is not working.

on ovzoeker.nl though the timetables are visible (via https://ovzoeker.nl/api/arrivals/2495588).
Also on https://drgl.nl/stop/NL:S:46104005 it is working as expected.
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Public Transport

Post by Lokonli »

In fact the drgl site is quite nice.
Probably it can be used to collect the departure data.

Nice project for the dark winter months :)
stephanvdplas
Posts: 73
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - Module - Public Transport

Post by stephanvdplas »

stephanvdplas wrote: Monday 21 August 2023 10:52 Following my last post...

The EBS bus stops in region Zwolle don't work. They are not enumerated in https://v0.ovapi.nl/stopareacode/
All other busstops do work, only the EBS busses don't.

I cannot find out why this is. Can someone point me to the right direction?
For instance the busstop 46006650 (https://ovzoeker.nl/halte/c06db90c8b82c ... 6df4671523) is working, but 46104005 (https://ovzoeker.nl/halte/f0d6e3a869d82 ... 4ee9f77883) is not working.

on ovzoeker.nl though the timetables are visible (via https://ovzoeker.nl/api/arrivals/2495588).
Also on https://drgl.nl/stop/NL:S:46104005 it is working as expected.
Has anyone been able to work around this? I'd really like to post the bus times to my dashboard.
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
stephanvdplas
Posts: 73
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - Module - Public Transport

Post by stephanvdplas »

Lokonli wrote: Friday 08 September 2023 6:37 In fact the drgl site is quite nice.
Probably it can be used to collect the departure data.

Nice project for the dark winter months :)
Are the winter months dark enough for (reverse) engineering the drgl site? Do you have some material to have tested?
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest