Dashticz - v3.8.10 beta Topic is solved
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Dashticz - v3.8.10 beta
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.
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
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.
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
-
- 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
You're great! I'll try it out.
-
- Posts: 20
- Joined: Wednesday 27 October 2021 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
I have the next block in my config.js but it shows the busses in one direction instead of all directions.
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.
Can you fixed that?
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
};
Can you fixed that?
-
- 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
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.
I've set show_via to false, but that didn't work.
And multiple destinations doesn't seem to work.
-
- Posts: 84
- Joined: Friday 12 May 2017 20:03
- Target OS: -
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
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
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
-
- Posts: 84
- Joined: Friday 12 May 2017 20:03
- Target OS: -
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
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>"
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>"
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
This is the actual Dashticz output with the above block: I expect bus station is one direction, Oosterwolde is the other direction.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.
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.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 };
Can you fixed that?
Correct?
I can add a linedirectionnumber (1 or 2) to the output of the Dashticz block if that would be useful.
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
I've fixed a bug. Can you retest?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
-
- Posts: 20
- Joined: Wednesday 27 October 2021 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
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.Lokonli wrote: ↑Monday 24 January 2022 21:54This is the actual Dashticz output with the above block: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.
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.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 };
Can you fixed that?
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.
-
- Posts: 20
- Joined: Wednesday 27 October 2021 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
And this bug in traffic information is also present in v3.8.10, viewtopic.php?p=281565#p281565
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
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 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
-
- Posts: 20
- Joined: Wednesday 27 October 2021 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
The information from ovzoeker: And the view on Dashticz block:brandsrus wrote: ↑Monday 24 January 2022 22:50That 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.Lokonli wrote: ↑Monday 24 January 2022 21:54This is the actual Dashticz output with the above block: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.
This busstop have 2 tpc codes => 24000030 and 24000040 but shows only 24000030 in the specified block.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 };
Can you fixed that?
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.
All busses to Heerenveen Busstation are missing.
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
De funny thing is, this is my output:
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 ...)
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 ...)
-
- Posts: 20
- Joined: Wednesday 27 October 2021 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
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.
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.
-
- 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
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.
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
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.
I also changed the destination filtering to case sensitive (Ede should not match Enschede). If this is not convenient let me know.
-
- Posts: 20
- Joined: Wednesday 27 October 2021 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
Thanks Lokonli, so far it works with result set to 5. I see both directions of the busstop.
-
- Posts: 84
- Joined: Friday 12 May 2017 20:03
- Target OS: -
- Domoticz version:
- Contact:
Re: Dashticz - v3.8.10 beta
I don't see an error anymore, but nothing is shown in the block...Lokonli wrote: ↑Monday 24 January 2022 22:35I've fixed a bug. Can you retest?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
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>
Who is online
Users browsing this forum: No registered users and 1 guest