Dashticz - Bug report

Moderator: leecollings

Locked
kurniawan77
Posts: 46
Joined: Wednesday 21 January 2015 20:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post by kurniawan77 »

Does anyone experience lag in dimmer sliders? They don't slide so smoothly. I don't know if this has to do with latest beta as this is the first time that I try dashticz...

Sent from my Nexus 6P using Tapatalk
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Just tested, no problems here...
kurniawan77
Posts: 46
Joined: Wednesday 21 January 2015 20:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post by kurniawan77 »

What can it be? because mines are very laggy.. i cant drag them smoothly, i've tried on my tablet, PC, Phone... bummer
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Somebody else having this problem???
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by HansieNL »

robgeerts wrote:Somebody else having this problem???
Same problem here on both ipad and pc. Don't know when this problem started.
Blah blah blah
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by Blueone »

robgeerts wrote:It is an async call?

Code: Select all

req = $.getJSONP({
	url: settings['domoticz_ip']+'/json.htm?type=devices&filter=all&used=true&order=Name&jsoncallback=?',
	type: 'GET',
	async: true,
	contentType: "application/json",dataType: 'jsonp',
	error: function( jqXHR, textStatus ) {
		console.error("Domoticz error!\nPlease, double check the path to Domoticz in Settings!");
	},
	success: function(data) {
//etc etc
hmm strange
I checked with the chrome debug console, I have quite some devices in domoticz and it takes about 200 to 500ms to do the call to get all data. During this time the dashboard freezes, as it refreshes every 5 seconds the dasboard is freezed for 10% of the time. So maybe the json call to domoticz can be approved or run async?

Also the external pages are causing issue's sometimes, with long loading times the dashboard also freezes until the reqeust receives a time-out.

I also made a video of the issue, maybe that helps in recognizing the problem. During the freeze I can't do anything with the screen:

https://player.vimeo.com/video/228036880
kurniawan77
Posts: 46
Joined: Wednesday 21 January 2015 20:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post by kurniawan77 »

HansieNL wrote:
robgeerts wrote:Somebody else having this problem???
Same problem here on both ipad and pc. Don't know when this problem started.
Would be great if this would be fixed. I was just planning on to getting rid of the Eneco Toon and do it with Dashticz...
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Problem is it dont occurs with me... I was hoping someone could help me with this or could find the bug in the scripts. Although, i am working on loading scripts faster so maybe that solves it already.
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by Blueone »

Do you have some tips for debugging something like this, I can't see it in the network tab from the google debugger, I would like to debug it but I need some directions :). At this moment I only know it happens just after the call to domoticz.

I just send you a profiling copy, maybe you can do something with it.

I'm a little bit further, appearently not the call itself but the success function (processing the received data) is causing the freeze. I have about 356 devices in domoticz so maybe this way of processing isn't suitable enough for a bigger domoticz installation?
kurniawan77
Posts: 46
Joined: Wednesday 21 January 2015 20:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post by kurniawan77 »

2 things...

how do i get the button "Comfort" next to "Home"? Seems to me that this should fit without making the buttons smaller imo.
dashticz selector.PNG
dashticz selector.PNG (33.37 KiB) Viewed 3203 times
dashticz selector02.PNG
dashticz selector02.PNG (22.35 KiB) Viewed 3174 times
And... i cannot change the "Room Setpoint" with -(minus), but the + is working...
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by Swifty »

Swifty wrote:I have a graph on my dashticz page for energy usage.
The graph has automatically added several buttons for "Last Hours" "Today" and "Last Month".

I'd like to permanently display "Today" but if I click this button it only displays for a couple of minutes then goes back to last hours.

Is this a bug or by design?
Anyone know the answer to this?
Bigted
Posts: 68
Joined: Friday 12 December 2014 14:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: Dashticz - Bug report

Post by Bigted »

Swifty wrote:
Swifty wrote:I have a graph on my dashticz page for energy usage.
The graph has automatically added several buttons for "Last Hours" "Today" and "Last Month".

I'd like to permanently display "Today" but if I click this button it only displays for a couple of minutes then goes back to last hours.

Is this a bug or by design?
Anyone know the answer to this?
It was recently fixed in the beta

viewtopic.php?p=143352#p143352
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by Swifty »

Bigted wrote:
Swifty wrote:
Swifty wrote:I have a graph on my dashticz page for energy usage.
The graph has automatically added several buttons for "Last Hours" "Today" and "Last Month".

I'd like to permanently display "Today" but if I click this button it only displays for a couple of minutes then goes back to last hours.

Is this a bug or by design?
Anyone know the answer to this?
It was recently fixed in the beta

viewtopic.php?p=143352#p143352
Ah brilliant, many thanks - I hadn't seen that!
Time to update again :D
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by Blueone »

Blueone wrote:
robgeerts wrote:It is an async call?

Code: Select all

req = $.getJSONP({
	url: settings['domoticz_ip']+'/json.htm?type=devices&filter=all&used=true&order=Name&jsoncallback=?',
	type: 'GET',
	async: true,
	contentType: "application/json",dataType: 'jsonp',
	error: function( jqXHR, textStatus ) {
		console.error("Domoticz error!\nPlease, double check the path to Domoticz in Settings!");
	},
	success: function(data) {
//etc etc
hmm strange
I checked with the chrome debug console, I have quite some devices in domoticz and it takes about 200 to 500ms to do the call to get all data. During this time the dashboard freezes, as it refreshes every 5 seconds the dasboard is freezed for 10% of the time. So maybe the json call to domoticz can be approved or run async?

Also the external pages are causing issue's sometimes, with long loading times the dashboard also freezes until the reqeust receives a time-out.

I also made a video of the issue, maybe that helps in recognizing the problem. During the freeze I can't do anything with the screen:

https://player.vimeo.com/video/228036880
Oke, after debugging a couple of hours i found out is has to do with the lights which have the RGB option, when I remove my hue lights the issue is gone.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Can someone with this issue confirm this?
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by Blueone »

robgeerts wrote:Can someone with this issue confirm this?
I didn't had any freezes anymore after removing the RGB lights from the dashboard, I will try to narrow it down further to see what is causing it in the weekend.
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Bug report

Post by gielie »

kurniawan77 wrote:
dashticz selector.PNG

dashticz selector02.PNG
Is it possible to decrease the font size of the selector switch
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Bug report

Post by Blueone »

Blueone wrote:
robgeerts wrote:Can someone with this issue confirm this?
I didn't had any freezes anymore after removing the RGB lights from the dashboard, I will try to narrow it down further to see what is causing it in the weekend.
Oke, this row is causing the freeze issue:

$(".rgbw").spectrum({

if I comment the line, the issue doesn't occur, it is not caused by the "color: Cookies.get('rgbw_'+idx)" in the block.

Appearently this is the color spectrum for picking the color?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Yes, thats the plugin I use to show a colorpicker..
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Bug report

Post by gielie »

HI Rob,

The following code doesn't work anymore in the latest beta.

Code: Select all

function getBlock_6(device,idx){ 
   $('.block_'+idx);
   var html='';
   html+='<div class="col-xs-4 col-icon">';
      if(device['Status']=='Off') html+='<img src="img/cust_away.png" class="off icon" />';
      else html+='<img src="img/cust_home.png" class="on icon" />';
   html+='</div>';
   html+='<div class="col-xs-8 col-data">';
   html+='<strong class="title">'+device['Name']+'</strong><br />';
   if(device['Status']=='Off') html+='<span class="state">AFWEZIG</span>';
   else html+='<span class="state">AANWEZIG</span>';
 
   if((_SHOW_LASTUPDATE && (typeof(blocks[idx])=='undefined' || typeof(blocks[idx]['hide_lastupdate'])=='undefined' || blocks[idx]['hide_lastupdate']===false)) || (!_SHOW_LASTUPDATE && (typeof(blocks[idx])!=='undefined' && typeof(blocks[idx]['show_lastupdate'])!=='undefined' && blocks[idx]['show_lastupdate']==true))  ){
          html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
   }
   html+='</div>';
   return html;
}
Its the presence switch with is no a on/off again instead of a aan/afwezig.
Can you fix this?
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
Locked

Who is online

Users browsing this forum: No registered users and 1 guest