Page 1 of 2
Dashticz - v3.8.10 beta
Posted: Sunday 23 January 2022 18:18
by Lokonli
Dashticz v3.8.10 beta has been released.
Main change is the new Public Transport block.
Reason for the change is that the site 9292.nl doesn't provide a public API anymore for requesting public transport information.
Luckily new data providers have been found:
* 'treinen' for train departures in the Netherlands
* 'ovapi' for bus/tram in the Netherlands.

- publictransport.jpg (35.61 KiB) Viewed 2640 times
See the documentation:
https://dashticz.readthedocs.io/en/beta ... sport.html
Usage of Belgian train information (irail.be) and bus information (delijn.be) has been described as well.
For other changes see the release notes:
https://dashticz.readthedocs.io/en/beta ... -23-1-2022
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 10:46
by Jimster
You're great! I'll try it out.
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 12:16
by brandsrus
I have the next block in my config.js but it shows the busses in one direction instead of all directions.
Code: Select all
blocks['ovapi'] = {
station: 'HrKup', //utrlun, Amstel: 60094
title:'Bussen',
show_lastupdate:true,
provider: 'ovapi',
show_via: true,
icon: 'fas fa-bus',
results: 5
};
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.
Can you fixed that?
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 12:23
by Jimster
Is it possible to hide the stops in between?
I've set show_via to false, but that didn't work.
And multiple destinations doesn't seem to work.
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 18:37
by geertvercamer
delijn stopped working.
ie station code 503902, 508902
bundle.js?t=20:309
jQuery.Deferred exception: Cannot read properties of undefined (reading 'length') TypeError: Cannot read properties of undefined (reading 'length')
at updateState (js/components/publictransport.js:79:43)
at mightThrow (
http://192.168.1.13/dashticz-beta/dist/ ... :309:28164)
at R (
http://192.168.1.13/dashticz-beta/dist/ ... :309:28545) undefined
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 18:50
by geertvercamer
calendar.js also has error on line 154
readystate 4
responsetext:
"RuntimeException: Can't open filehttps://calendar.google.com/calendar/ical/
[email protected]/yyyyyyyyyyyyyyyy/basic.ics for reading in /home/ubuntu/dashticz-beta/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:43
Stack trace:
#0 /home/ubuntu/dashticz-beta/vendor/dashticz/ical/index.php(155): om\IcalParser->parseFile()
#1 /home/ubuntu/dashticz-beta/vendor/dashticz/ical/index.php(137): ical7()
#2 {main}
<table>
<tbody>
<tr>
<th>Icalurl</th>
<td>
https://calendar.google.com/calendar/ic ... ic.ics</td>
</tr>
<tr>
<th>Error</th>
<td><pre>fopen(
https://[email protected]/[email protected]/yyy/basic.ics): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
</pre></td>
</tr>
<tr>
<th>Errno</th>
<td><pre>2</pre></td>
</tr>
<tr>
<th>File</th>
<td>/home/ubuntu/dashticz-beta/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php</td>
</tr>
<tr>
<th>Line</th>
<td>42</td>
</tr>
<tr>
<th>Trace</th>
<td><pre>Array
(
[0] => Array
(
[file] => /home/ubuntu/dashticz-beta/vendor/dashticz/ical/index.php
[line] => 43
[function] => format_error
[args] => Array
(
[0] => 2
[1] => fopen(
https://[email protected]/yyy/basic.ics): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
[2] => /home/ubuntu/dashticz-beta/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php
[3] => 42
)
)
[1] => Array
(
[function] => fatal_handler
[args] => Array
(
)
)
)
</pre></td>
</tr>
</tbody>
</table>"
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 21:54
by Lokonli
brandsrus wrote: ↑Monday 24 January 2022 12:16
I have the next block in my config.js but it shows the busses in one direction instead of all directions.
Code: Select all
blocks['ovapi'] = {
station: 'HrKup', //utrlun, Amstel: 60094
title:'Bussen',
show_lastupdate:true,
provider: 'ovapi',
show_via: true,
icon: 'fas fa-bus',
results: 5
};
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.
Can you fixed that?
This is the actual Dashticz output with the above block:

- heerenveen.jpg (16.8 KiB) Viewed 2550 times
I expect bus station is one direction, Oosterwolde is the other direction.
Correct?
I can add a linedirectionnumber (1 or 2) to the output of the Dashticz block if that would be useful.
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 22:34
by Lokonli
Jimster wrote: ↑Monday 24 January 2022 12:23
Is it possible to hide the stops in between?
I've set show_via to false, but that didn't work.
And multiple destinations doesn't seem to work.
There was a bug in show_via. I've fixed that in latest update.
I've to check multiple destinations.
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 22:35
by Lokonli
I've fixed a bug. Can you retest?
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 22:50
by brandsrus
Lokonli wrote: ↑Monday 24 January 2022 21:54
brandsrus wrote: ↑Monday 24 January 2022 12:16
I have the next block in my config.js but it shows the busses in one direction instead of all directions.
Code: Select all
blocks['ovapi'] = {
station: 'HrKup', //utrlun, Amstel: 60094
title:'Bussen',
show_lastupdate:true,
provider: 'ovapi',
show_via: true,
icon: 'fas fa-bus',
results: 5
};
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.
Can you fixed that?
This is the actual Dashticz output with the above block:
heerenveen.jpg
I expect bus station is one direction, Oosterwolde is the other direction.
Correct?
I can add a linedirectionnumber (1 or 2) to the output of the Dashticz block if that would be useful.
That is not the situation around 12.00 CET, there are more lines on both stops and then it's shows only the direction of Oosterwolde.
Re: Dashticz - v3.8.10 beta
Posted: Monday 24 January 2022 22:55
by brandsrus
And this bug in traffic information is also present in v3.8.10,
viewtopic.php?p=281565#p281565
Re: Dashticz - v3.8.10 beta
Posted: Tuesday 25 January 2022 8:03
by Lokonli
I did not work on that yet. First I'll stabilize the 3.8.10 changes (public transport). After that I'll look into this issue.
Re: Dashticz - v3.8.10 beta
Posted: Tuesday 25 January 2022 8:03
by brandsrus
brandsrus wrote: ↑Monday 24 January 2022 22:50
Lokonli wrote: ↑Monday 24 January 2022 21:54
brandsrus wrote: ↑Monday 24 January 2022 12:16
I have the next block in my config.js but it shows the busses in one direction instead of all directions.
Code: Select all
blocks['ovapi'] = {
station: 'HrKup', //utrlun, Amstel: 60094
title:'Bussen',
show_lastupdate:true,
provider: 'ovapi',
show_via: true,
icon: 'fas fa-bus',
results: 5
};
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.
Can you fixed that?
This is the actual Dashticz output with the above block:
heerenveen.jpg
I expect bus station is one direction, Oosterwolde is the other direction.
Correct?
I can add a linedirectionnumber (1 or 2) to the output of the Dashticz block if that would be useful.
That is not the situation around 12.00 CET, there are more lines on both stops and then it's shows only the direction of Oosterwolde.
The information from ovzoeker:

- Schermafbeelding 2022-01-25 080040.png (28.81 KiB) Viewed 2502 times

- Schermafbeelding 2022-01-25 080021.png (38.43 KiB) Viewed 2502 times
And the view on Dashticz block:

- Schermafbeelding 2022-01-25 080107.png (65.08 KiB) Viewed 2502 times
All busses to Heerenveen Busstation are missing.
Re: Dashticz - v3.8.10 beta
Posted: Tuesday 25 January 2022 8:13
by Lokonli
De funny thing is, this is my output:

- heerenveen2.jpg (18.1 KiB) Viewed 2500 times
That means including Heerenveen ...
Can you update to latest version (git pull): I've fixed two small things yesterday evening (although I don't think it's related to this)
Increase the results block parameter
Double check that you are really using 'ovapi' in your column definition, and that you don't redefine the 'ovapi' block.
(I have show_via set to false. That explains why each second line is not visible ...)
Re: Dashticz - v3.8.10 beta
Posted: Tuesday 25 January 2022 10:15
by brandsrus
If you increase the results to 10 then it works!
ANy value between 5 and 10 it don't work and you see de busses in one direction.
I try an other busstop and i need a value of 15 if all stops will present in Dashticz.
Re: Dashticz - v3.8.10 beta
Posted: Tuesday 25 January 2022 10:21
by Lokonli
brandsrus wrote: ↑Tuesday 25 January 2022 10:15
If you increase the results to 10 then it works!
ANy value between 5 and 10 it don't work and you see de busses in one direction.
Probably I do the time sorting in the wrong order... I'll check.
Re: Dashticz - v3.8.10 beta
Posted: Tuesday 25 January 2022 13:42
by Jimster
Lokonli wrote: ↑Monday 24 January 2022 22:34
Jimster wrote: ↑Monday 24 January 2022 12:23
Is it possible to hide the stops in between?
I've set show_via to false, but that didn't work.
And multiple destinations doesn't seem to work.
There was a bug in show_via. I've fixed that in latest update.
I've to check multiple destinations.
Thanks, show_via works now.
And multiple destinations works now as well. I found out that I had to set 'results' high enough. It seems like Dashticz first retrieves the number of results for the station and then applies the filter for multiple destinations. So I set 'results' to 10 and with the destinations I choose, I get 5 results.
Re: Dashticz - v3.8.10 beta
Posted: Tuesday 25 January 2022 23:05
by Lokonli
I've fixed the filtering: Reducing the number of results is now applied after filtering instead of before. That means you should now see the number of results as defined in the block (assuming there are sufficient departures known)
I also changed the destination filtering to case sensitive (Ede should not match Enschede). If this is not convenient let me know.
Re: Dashticz - v3.8.10 beta
Posted: Wednesday 26 January 2022 12:22
by brandsrus
Thanks Lokonli, so far it works with result set to 5. I see both directions of the busstop.
Re: Dashticz - v3.8.10 beta
Posted: Thursday 27 January 2022 18:50
by geertvercamer
Lokonli wrote: ↑Monday 24 January 2022 22:35
I've fixed a bug. Can you retest?
I don't see an error anymore, but nothing is shown in the block...
Title is right though
resulting HTML:
Code: Select all
<div class="dt_content">
<div class="dt_title">Zonnebeke - Ieper</div>
<div class="dt_state">
<table>
</table>
</div>
</div>