Page 1 of 1

Getting started, basic setup not working

Posted: Saturday 13 February 2021 9:42
by johansson
I've installed the latest beta (V3.7.3) based on the great instructions, but am having a probably simple/stupid problem: if I add no blocks or columns at all, I get all Domoticz devices as expected. If I copy-paste the basic custom layout with some of my own devices idx's, I get a blank page.

This produces a complete list of all Domoticz devices:

Code: Select all

var config = {}
config['language'] = 'en_US'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SV
config['domoticz_ip'] = 'http://***.***.***.***:***';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['user_name'] = '****';
config['pass_word'] = '****';
Just the connection stuff in custom.js
Just the connection stuff in custom.js
no blocks.png (197.98 KiB) Viewed 446 times
But when adding example blocks & columns, just a blank screen is shown:

Code: Select all

var config = {}
config['language'] = 'en_US'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SV
config['domoticz_ip'] = 'http://***.***.***.***:***';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['user_name'] = '****';
config['pass_word'] = '****';

//config['use_favorites'] = 0; //Request all Domoticz Devices, not only favorites
//config['auto_positioning'] = 0; // Use 0 this if you have defined your own columns

//Definition of blocks
blocks = {}
blocks[3] = {
  width: 6
}

blocks[34] = {
  width: 6
}

//Definition of columns
columns = {}
columns[1] = {
  //In this example: No blocks are defined in this column
  //This column will be empty
  width: 4
}
columns[2] = {
  blocks : [3, 34],
  width: 8
}

//Definition of screens
screens = {}
screens[1] = {
  columns: [1, 2]
  }
Blank screen with blocks in custom.js
Blank screen with blocks in custom.js
With blocks.png (253.22 KiB) Viewed 446 times
Cannot figure out what's going on, probably too simple but I'm lost - any pointers?

Re: Getting started, basic setup not working

Posted: Saturday 13 February 2021 12:22
by Lokonli
I guess device 3 and 34 are not marked as favorite in Domoticz.

Remove the two slashes before the config parameter, like this:

Code: Select all

config['use_favorites'] = 0;

Re: Getting started, basic setup not working

Posted: Saturday 13 February 2021 13:17
by johansson
Thanks for the tip, but unfortunately no help - one of the other was marked as favorite, the other one not. Choosing two non-favorite ones and removing the slashes had no impact, neither did two favorites with or without the slashes. I'm sure the solution is obvious, but I'm just missing something.

Re: Getting started, basic setup not working

Posted: Sunday 14 February 2021 20:57
by Lokonli
There is a bug in beta: Each column must have a parameter 'block'
The block array can be empty, like this:

Code: Select all

columns[1] = {
   blocks: [],
   width: 4
}
but the blocks parameter must be present.

Re: Getting started, basic setup not working

Posted: Monday 15 February 2021 7:40
by johansson
Indeed, that was it - great, thanks! Now at least (only) the test devices are seen in Dashticz.