Page 1 of 1

Unresponsive

Posted: Thursday 13 February 2020 18:37
by EdwinK
Dashticz became laggy and threw errors.. 'dashticz became unresponsive'.. and then ask to wait or cancel the operation. Thinking this was due to the fact that my DiskStation was using too many processes, I decided to move the webserver part to a RPi. After working with the default settings, I then put back the config and it worked... for a moment, then the same error about unresponsive returned.

I tried to get more info fro the developers tool on Chrome.
Screen Shot 2020-02-13 at 18.30.46.png
Screen Shot 2020-02-13 at 18.30.46.png (106.28 KiB) Viewed 1297 times

Re: Unresponsive

Posted: Thursday 13 February 2020 21:29
by Lokonli
That is the websocket connection. The websocket connection will stay open, and should be no problem.

Can you test with adding to CONFIG.js the following:
config['enable_websocket'] = 0

This will disable the websocket connection.

Sent from my SM-A320FL using Tapatalk


Re: Unresponsive

Posted: Thursday 13 February 2020 21:45
by EdwinK
Unfortunately, same problem ;(

btw. With Firefox I get the following.
Source map error: Error: request failed with status 404
Resource URL: http://192.168.0.8:8082/dist/bundle.js
Source Map URL: ical.min.js.map

This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. bundle.js:1:67920
ReferenceError: alldevices is not defined
line 42 > scriptElement:83:7
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ bundle.js:53:83247
Source map error: Error: request failed with status 404
Resource URL: http://192.168.0.8:8082/dist/bundle.js
Source Map URL: ical.min.js.map

The script from “http://192.168.0.11:8080/json.htm?usern ... 1627889264” was loaded even though its MIME type (“application/json”) is not a valid JavaScript MIME type.
192.168.0.8:8082
The script from “http://192.168.0.11:8080/json.htm?usern ... 1627889266” was loaded even though its MIME type (“application/json”) is not a valid JavaScript MIME type.
192.168.0.8:8082


Re: Unresponsive

Posted: Thursday 13 February 2020 23:31
by Lokonli
The following message means something is wrong:
ReferenceError: alldevices is not defined
line 42 > scriptElement:83:7

Do you maybe use alldevices in your custom.js?
That may not work anymore ...

Re: Unresponsive

Posted: Friday 14 February 2020 9:37
by EdwinK
O. I see...
Spoiler: show

Code: Select all

/ Buienradar
    if (alldevices[500].Data == 'Voorlopig droog') {
            $('.block_500 .col-icon').addClass('off-ico');
            $('.block_500 .col-data').addClass('off-stat');
    }
    else {
            $('.block_500 .col-icon').removeClass('off-ico');
            $('.block_500 .col-data').removeClass('off-stat');
    }
}

// Toon Setpoint [377] & Toon Selector [380]
  if (alldevices[377].Data == '6.0') {
    $('.block_377_2 .col-icon').addClass('icon-off');
    $('.block_377_2 .col-data').addClass('data-off');
    $('.block_380 .col-icon').addClass('icon-off');
  }
  else {
    $('.block_377_2 .col-icon').removeClass('icon-off');
    $('.block_377_2 .col-data').removeClass('data-off');
    $('.block_380 .col-icon').removeClass('icon-off');
  }
  
  // Thuis
  if (alldevices[49].Data == 'Off') {
    $('.block_49 .col-data').addClass('data-off');
  }
  else {
    $('.block_49 .col-data').removeClass('data-off');
  }
 
  // TV
  if (alldevices[393].Data == 'Off') {
    $('.block_393 .col-data').addClass('data-off');
  }
  else {
    $('.block_393 .col-data').removeClass('data-off');
  }
  
Going to comment out those parts

Re: Unresponsive

Posted: Friday 14 February 2020 9:48
by EdwinK
unfortunately, after deleting those lines, Dashticz still becomes unresponsive.

Re: Unresponsive

Posted: Friday 14 February 2020 22:41
by EdwinK
It looks like I've found it. When I removed all multigraph's the dashboard seems to work.

Re: Unresponsive

Posted: Friday 14 February 2020 22:58
by Lokonli
Interesting. Maybe it's the amount of data. How many graphs do you have? Can you check in DevTools how much graph data is received from Domoticz?

Re: Unresponsive

Posted: Saturday 15 February 2020 9:28
by EdwinK
I only had one. Need to create it again. I'll try later tonight

Re: Unresponsive

Posted: Saturday 15 February 2020 11:39
by EdwinK
This is what I have (from the readthedocs instrcutions)
Spoiler: show

Code: Select all

//multigraph temperature
blocks['multigraph_175'] = {
        title: 'Outside vs Inside Temp',
        devices: [ 175, 376],
        graph: 'line',
        buttonsBorder: '#ccc',
        buttonsColor: '#ccc',
        buttonsFill: 'transparent',
        buttonsIcon: 'Blue',
        buttonsPadX: 10,
        buttonsPadY: 5,
        buttonsMarginX: 5,
        buttonsMarginY: 2,
        buttonsRadius: 0,
        buttonsShadow: 'rgba(2, 117, 216, 0.2)',
        buttonsSize: 12,
                custom : {
                        "Last hours": {
                                range: 'day',
                                filter: '6 hours',
                                data: {
                                        te1: 'd.te1',
                                        te2: 'd.te2',
                                        delta: 'd.te2-d.te1'
                                },
                        },
                        "Last 2 weeks": {
                                range: 'month',
                                filter: '14 days',
                                data: {
                                        te1: 'd.te1',
                                        te2: 'd.te2',
                                        delta: 'd.te2-d.te1'
                                }
                        },
                        "Last 6 months": {
                                range: 'year',
                                filter: '6 months',
                                data: {
                                        te1: 'd.te1',
                                        te2: 'd.te2',
                                        delta: 'd.te2-d.te1'
                                }
                        }
                },
        legend: {
                'te1': 'Outside',
                'te2': 'Inside',
                'delta': 'Difference'
        }
}


When I check with DevTools , in console there is one error listed:
Spoiler: show
js/domoticz-api.js:83 Uncaught TypeError: newPromise.reject is not a function
at js/domoticz-api.js:83
(anonymous) @ js/domoticz-api.js:83
setTimeout (async)
newRequest @ js/domoticz-api.js:80
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
add @ bundle.js:53
(anonymous) @ bundle.js:53
Deferred @ bundle.js:53
then @ bundle.js:53
domoticzRequest @ js/domoticz-api.js:45
_requestAllDevices @ js/domoticz-api.js:247
setInterval (async)
(anonymous) @ js/domoticz-api.js:112
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
jQuery.each.jQuery.<computed> @ bundle.js:53
newRequest @ js/domoticz-api.js:66
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
add @ bundle.js:53
(anonymous) @ bundle.js:53
Deferred @ bundle.js:53
then @ bundle.js:53
domoticzRequest @ js/domoticz-api.js:45
checkWSSupport @ js/domoticz-api.js:105
_init @ js/domoticz-api.js:126
(anonymous) @ js/dashticz.js:63
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
initDomoticz @ js/dashticz.js:50
_init @ js/dashticz.js:32
(anonymous) @ VM142:143
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:138
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:97
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM145:60
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
initVersion @ VM145:19
(anonymous) @ VM142:93
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:87
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:78
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
loadFiles @ VM142:55
(anonymous) @ index2.html:62
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ index2.html:57
When I remove the multigraph then everything works again.

Re: Unresponsive

Posted: Sunday 16 February 2020 9:35
by clinkadink
EdwinK wrote: Saturday 15 February 2020 11:39 This is what I have (from the readthedocs instrcutions)
Spoiler: show

Code: Select all

//multigraph temperature
blocks['multigraph_175'] = {
        title: 'Outside vs Inside Temp',
        devices: [ 175, 376],
        graph: 'line',
        buttonsBorder: '#ccc',
        buttonsColor: '#ccc',
        buttonsFill: 'transparent',
        buttonsIcon: 'Blue',
        buttonsPadX: 10,
        buttonsPadY: 5,
        buttonsMarginX: 5,
        buttonsMarginY: 2,
        buttonsRadius: 0,
        buttonsShadow: 'rgba(2, 117, 216, 0.2)',
        buttonsSize: 12,
                custom : {
                        "Last hours": {
                                range: 'day',
                                filter: '6 hours',
                                data: {
                                        te1: 'd.te1',
                                        te2: 'd.te2',
                                        delta: 'd.te2-d.te1'
                                },
                        },
                        "Last 2 weeks": {
                                range: 'month',
                                filter: '14 days',
                                data: {
                                        te1: 'd.te1',
                                        te2: 'd.te2',
                                        delta: 'd.te2-d.te1'
                                }
                        },
                        "Last 6 months": {
                                range: 'year',
                                filter: '6 months',
                                data: {
                                        te1: 'd.te1',
                                        te2: 'd.te2',
                                        delta: 'd.te2-d.te1'
                                }
                        }
                },
        legend: {
                'te1': 'Outside',
                'te2': 'Inside',
                'delta': 'Difference'
        }
}


When I check with DevTools , in console there is one error listed:
Spoiler: show
js/domoticz-api.js:83 Uncaught TypeError: newPromise.reject is not a function
at js/domoticz-api.js:83
(anonymous) @ js/domoticz-api.js:83
setTimeout (async)
newRequest @ js/domoticz-api.js:80
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
add @ bundle.js:53
(anonymous) @ bundle.js:53
Deferred @ bundle.js:53
then @ bundle.js:53
domoticzRequest @ js/domoticz-api.js:45
_requestAllDevices @ js/domoticz-api.js:247
setInterval (async)
(anonymous) @ js/domoticz-api.js:112
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
jQuery.each.jQuery.<computed> @ bundle.js:53
newRequest @ js/domoticz-api.js:66
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
add @ bundle.js:53
(anonymous) @ bundle.js:53
Deferred @ bundle.js:53
then @ bundle.js:53
domoticzRequest @ js/domoticz-api.js:45
checkWSSupport @ js/domoticz-api.js:105
_init @ js/domoticz-api.js:126
(anonymous) @ js/dashticz.js:63
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
initDomoticz @ js/dashticz.js:50
_init @ js/dashticz.js:32
(anonymous) @ VM142:143
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:138
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:97
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM145:60
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
initVersion @ VM145:19
(anonymous) @ VM142:93
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:87
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
(anonymous) @ bundle.js:53
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ VM142:78
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
loadFiles @ VM142:55
(anonymous) @ index2.html:62
mightThrow @ bundle.js:53
l @ bundle.js:53
setTimeout (async)
(anonymous) @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
fire @ bundle.js:53
fire @ bundle.js:53
fireWith @ bundle.js:53
done @ bundle.js:53
(anonymous) @ bundle.js:53
load (async)
send @ bundle.js:53
ajax @ bundle.js:53
(anonymous) @ index2.html:57
When I remove the multigraph then everything works again.
Hi, I have just noticed that the readthedocs graph section for the latest beta needs updating.

https://dashticz.readthedocs.io/en/beta ... tom-graphs

The example multigraph should be updated as follows:
Spoiler: show

Code: Select all

blocks['outside_inside_temp'] = {
        title: 'Outside vs Inside Temp',
        devices: [ 175, 376],
        graph: 'line',
        buttonsBorder: '#ccc',
        buttonsColor: '#ccc',
        buttonsFill: 'transparent',
        buttonsIcon: 'Blue',
        buttonsPadX: 10,
        buttonsPadY: 5,
        buttonsMarginX: 5,
        buttonsMarginY: 2,
        buttonsRadius: 0,
        buttonsShadow: 'rgba(2, 117, 216, 0.2)',
        buttonsSize: 12,
                custom : {
                        "Last hours": {
                                range: 'day',
                                filter: '6 hours',
                                data: {
                                        te1: 'd.te_175',
                                        te2: 'd.te_376',
                                        delta: 'd.te_376-d.te_175'
                                },
                        },
                        "Last 2 weeks": {
                                range: 'month',
                                filter: '14 days',
                                data: {
                                        te1: 'd.te_175',
                                        te2: 'd.te_376',
                                        delta: 'd.te_376-d.te_175''
                                }
                        },
                        "Last 6 months": {
                                range: 'year',
                                filter: '6 months',
                                data: {
                                        te1: 'd.te_175',
                                        te2: 'd.te_376',
                                        delta: 'd.te_376-d.te_175'
                                }
                        }
                },
        legend: {
                'te_175': 'Outside',
                'te_376': 'Inside',
                'delta': 'Difference'
        }
}
The was a significant change in the last beta that saw the graph block and the multigraph block merge. But also, the idx of each device within the graph are added to each of the keys displayed. e.g. te for device idx 100 would become te_100. In the example above (and below) you can see that the keys in the custom data now reference "key_idx". All existing graphs using custom data, drawOrder and legends, will need to be updated to this new format.

I posted an example block config (and graph) of these changes. Link below. Hope it makes sense ;)

https://www.domoticz.com/forum/viewtopi ... 20#p236733

Re: Unresponsive

Posted: Sunday 16 February 2020 10:15
by EdwinK
going to take a look at it. :)

Re: Unresponsive

Posted: Sunday 16 February 2020 12:12
by EdwinK
Now this gives a error in config.js. Time to do some troubleshooting.

Re: Unresponsive

Posted: Sunday 16 February 2020 17:42
by EdwinK
This one works

Code: Select all

blocks['multigraph_17'] = {
        title: 'CPU, Memory & HDD',
        devices: [ 491, 493, 495 ],
        datasetColors: ['Red', 'Orange', 'Blue', 'Green', 'LightBlue', 'Aqua', 'Yellow', 'Purple', 'Pink'],
        legend: true,
        cartesian : 'linear',
        graph: 'line',
        lineFill: true,
        drawOrderDay:   ['v_491', 'v_495', 'v_493'],
        drawOrderMonth: ['v_min_17', 'v_avg_17', 'v_min_18', 'v_max_17', 'v_avg_189', 'v_max_189', 'v_min_189', 'v_avg_18', 'v_max_18'],
        legend: {
                'v_491'          : 'CPU',
                'v_avg_491'       : 'CPU avg',
                'v_max_491'      : 'CPU max',
                'v_min_491'      : 'CPU min',
                'v_493'          : 'MEM',
                'v_avg_493'      : 'MEM avg',
                'v_max_493'      : 'MEM max',
                'v_min_493'      : 'MEM min',
                'v_495'         : 'HDD',
                'v_avg_495'     : 'HDD avg',
                'v_max_495'     : 'HDD max',
                'v_min_495'     : 'HDD min'
        }
}
This one as well:

Code: Select all

blocks['graph_1'] = {
    title: 'My Power',
    graph: ['line','bar','bar'],
    custom : {
        "last day": {
            range: 'day',
            filter: '24 hours',
            data: {
                nett: 'd.v+d.v2-d.r1-d.r2',
                usage: 'd.v+d.v2',
                generation: '-d.r1-d.r2'
            }
        },
        "last 2 weeks": {
            range: 'month',
            filter: '14 days',
            data: {
                nett: 'd.v+d.v2-d.r1-d.r2',
                usage: 'd.v+d.v2',
                generation: '-d.r1-d.r2'
            }
        },
        "last 6 months": {
            range: 'year',
            filter: '6 months',
            data: {
                nett: 'd.v+d.v2-d.r1-d.r2',
                usage: 'd.v+d.v2',
                generation: '-d.r1-d.r2'
            }
        }
    },
    legend: true,
    datasetColors:['blue','red','yellow']
}
Working, sort of..
Working, sort of..
Screen Shot 2020-02-16 at 22.46.51.png (334.19 KiB) Viewed 1094 times

Re: Unresponsive

Posted: Sunday 16 February 2020 17:45
by clinkadink
I am glad you have got it working ;)

Re: Unresponsive

Posted: Sunday 16 February 2020 22:46
by EdwinK
Those two in my previous post are working, but the outside_inside_temp one is still throwing errors.

For now I'm going to forget about it, and see if I can think about it some more tomorrow.

Re: Unresponsive

Posted: Monday 17 February 2020 1:49
by HansieNL
EdwinK wrote: Sunday 16 February 2020 22:46 Those two in my previous post are working, but the outside_inside_temp one is still throwing errors.

For now I'm going to forget about it, and see if I can think about it some more tomorrow.
For latest betas there are some changes:
I suppose your device idx for your graph is 1.
You have to define your device and use the _idx fot the graph types in the custom section.

Code: Select all

blocks['graph_1'] = {
    title: 'My Power',
    devices: [1],
    graph: ['line','bar','bar'],
    custom : {
        "last day": {
            range: 'day',
            filter: '24 hours',
            data: {
                nett: 'd.v_1+d.v2_1-d.r1_1-d.r2_1',
                usage: 'd.v_1+d.v2_1',
                generation: '-d.r1_1-d.r2_1'
            }
        },
        "last 2 weeks": {
            range: 'month',
            filter: '14 days',
            data: {
                nett: 'd.v_1+d.v2_1-d.r1_1-d.r2_1',
                usage: 'd.v_1+d.v2_1',
                generation: '-d.r1_1-d.r2_1'
            }
        },
        "last 6 months": {
            range: 'year',
            filter: '6 months',
            data: {
                nett: 'd.v_1+d.v2_1-d.r1_1-d.r2_1',
                usage: 'd.v_1+d.v2_1',
                generation: '-d.r1_1-d.r2_1'
            }
        }
    },
    legend: true,
    datasetColors:['blue','red','yellow']
}

Re: Unresponsive

Posted: Monday 17 February 2020 10:17
by clinkadink
See updates this weekend for the graph:
https://www.domoticz.com/forum/viewtopi ... 05#p237105