Dashticz - v3.8.10 beta Topic is solved

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:

Dashticz - v3.8.10 beta

Post 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
publictransport.jpg (35.61 KiB) Viewed 2354 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
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post by Jimster »

You're great! I'll try it out.
brandsrus
Posts: 20
Joined: Wednesday 27 October 2021 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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?
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post 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.
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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>"
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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
heerenveen.jpg (16.8 KiB) Viewed 2264 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.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by Lokonli »

geertvercamer wrote: Monday 24 January 2022 18:37 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
I've fixed a bug. Can you retest?
brandsrus
Posts: 20
Joined: Wednesday 27 October 2021 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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.
brandsrus
Posts: 20
Joined: Wednesday 27 October 2021 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by brandsrus »

And this bug in traffic information is also present in v3.8.10, viewtopic.php?p=281565#p281565
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by Lokonli »

brandsrus wrote: Monday 24 January 2022 22:55 And this bug in traffic information is also present in v3.8.10, viewtopic.php?p=281565#p281565
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.
brandsrus
Posts: 20
Joined: Wednesday 27 October 2021 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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
Schermafbeelding 2022-01-25 080040.png (28.81 KiB) Viewed 2216 times
Schermafbeelding 2022-01-25 080021.png
Schermafbeelding 2022-01-25 080021.png (38.43 KiB) Viewed 2216 times
And the view on Dashticz block:
Schermafbeelding 2022-01-25 080107.png
Schermafbeelding 2022-01-25 080107.png (65.08 KiB) Viewed 2216 times
All busses to Heerenveen Busstation are missing.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by Lokonli »

De funny thing is, this is my output:
heerenveen2.jpg
heerenveen2.jpg (18.1 KiB) Viewed 2214 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 ...)
brandsrus
Posts: 20
Joined: Wednesday 27 October 2021 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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.
Last edited by brandsrus on Tuesday 25 January 2022 10:22, edited 1 time in total.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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.
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post 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.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post 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.
brandsrus
Posts: 20
Joined: Wednesday 27 October 2021 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by brandsrus »

Thanks Lokonli, so far it works with result set to 5. I see both directions of the busstop.
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by geertvercamer »

Lokonli wrote: Monday 24 January 2022 22:35
geertvercamer wrote: Monday 24 January 2022 18:37 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
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>
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest