Dashticz - v3.8.10 beta Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2287
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: Thursday 27 January 2022 18:50
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>
Are you using a destination filter? It's case sensitive now ...

Can you post your block definition? Then I'll check
Dickey
Posts: 25
Joined: Friday 19 April 2019 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post by Dickey »

Thanks @Lokonli, works like a charme.
Dz-beta | Dashticz 3.8.10 BETA | Tradfri | RF-Link | Z-Wave | Harmony | Unify | P1 |
stephanvdplas
Posts: 76
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post by stephanvdplas »

Lokonli wrote: Monday 24 January 2022 21:54 I can add a linedirectionnumber (1 or 2) to the output of the Dashticz block if that would be useful.
That would be a perfect idea! +1 for this feature(request).
- 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
JanvdW
Posts: 118
Joined: Saturday 21 December 2019 8:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by JanvdW »

Works perfect when there's StopAreaCode. Unfortunately the bus station close to my home (Prof. Waterinklaan in Dordrecht, with tpc 53602050 and 53602060) hasn't one; it shows

Code: Select all

"StopAreaCode":null,
I don't know how to fix this.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by Lokonli »

You can use tpc code as well. The following block is working:

Code: Select all

      blocks['tpctest'] = {
        tpc: '53602050',  
        provider: 'ovapi',
      };
The other code (53602060) is working as well.

You have to create two blocks. Currently you can't combine two tpc codes into one block.
JanvdW
Posts: 118
Joined: Saturday 21 December 2019 8:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by JanvdW »

Thanks; that works. I did some experiments and it appears that you can make a combined list of both tpc's with a comma separated list:

Code: Select all

blocks['ovapi'] = { tpc: '53602050,53602060', title:' Prof. Waterinklaan', provider: 'ovapi', show_via: false, icon: 'fas fa-bus', results: 6, width: 6 };
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by Lokonli »

JanvdW wrote: Saturday 12 February 2022 20:15 Thanks; that works. I did some experiments and it appears that you can make a combined list of both tpc's with a comma separated list:

Code: Select all

blocks['ovapi'] = { tpc: '53602050,53602060', title:' Prof. Waterinklaan', provider: 'ovapi', show_via: false, icon: 'fas fa-bus', results: 6, width: 6 };
Funny, I was not even aware of that, but indeed it's working :)
stephanvdplas
Posts: 76
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post by stephanvdplas »

stephanvdplas wrote: Tuesday 01 February 2022 20:22
Lokonli wrote: Monday 24 January 2022 21:54 I can add a linedirectionnumber (1 or 2) to the output of the Dashticz block if that would be useful.
That would be a perfect idea! +1 for this feature(request).
Am I right that this has not been implemented yet? Could this be implemented in a near (beta) release?
Thanks in advance!

Regards,
Stephan
- 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: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by Lokonli »

stephanvdplas wrote: Sunday 20 February 2022 16:14
stephanvdplas wrote: Tuesday 01 February 2022 20:22
Lokonli wrote: Monday 24 January 2022 21:54 I can add a linedirectionnumber (1 or 2) to the output of the Dashticz block if that would be useful.
That would be a perfect idea! +1 for this feature(request).
Am I right that this has not been implemented yet? Could this be implemented in a near (beta) release?
Thanks in advance!

Regards,
Stephan
Implemented in beta 3.9.2

Add the following block parameter to show the line direction number:

Code: Select all

  show_direction: true
stephanvdplas
Posts: 76
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post by stephanvdplas »

Lokonli wrote: Sunday 27 February 2022 19:41
stephanvdplas wrote: Sunday 20 February 2022 16:14
stephanvdplas wrote: Tuesday 01 February 2022 20:22

That would be a perfect idea! +1 for this feature(request).
Am I right that this has not been implemented yet? Could this be implemented in a near (beta) release?
Thanks in advance!

Regards,
Stephan
Implemented in beta 3.9.2

Add the following block parameter to show the line direction number:

Code: Select all

  show_direction: true
While this works, it is not exactly the answer to my issue. I would like to be able to only show the buses in direction 1 or 2 and hide the buses in the other direction. Can this be used as a filter? Thanks for all the good work!
- 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: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - v3.8.10 beta

Post by Lokonli »

ok, I've added the filter. You can use the block parameter 'destination' for this, like:

Code: Select all

    blocks['ovapi_dir_filter'] = {
      station: 'HrKup',  
      title:'Bussen direction filter',
      provider: 'ovapi',
      direction: "1"            //filter line direction 1 only
    }
or to filter multiple directions:

Code: Select all

  direction: "1,2"
stephanvdplas
Posts: 76
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post by stephanvdplas »

Thanks! Works like a charm!
- 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: 76
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Dashticz - v3.8.10 beta

Post by stephanvdplas »

Lokonli wrote: Sunday 06 March 2022 15:22 ok, I've added the filter. You can use the block parameter 'destination' for this, like:

Code: Select all

    blocks['ovapi_dir_filter'] = {
      station: 'HrKup',  
      title:'Bussen direction filter',
      provider: 'ovapi',
      direction: "1"            //filter line direction 1 only
    }
or to filter multiple directions:

Code: Select all

  direction: "1,2"
There seems to be a problem with the ovapi.nl website. The certificate is no longer valid (there is a 1313.nl certificate).
The permalink to the busstation gives no information anymore.
Is there another way to receive the bus information?

Correction: The issue is with EBS, the provider whicht took over the bus transport in our region. They hope to fix it soon.
- 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