Getting started, basic setup not working

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
johansson
Posts: 75
Joined: Sunday 27 September 2015 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Finland
Contact:

Getting started, basic setup not working

Post 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 437 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 437 times
Cannot figure out what's going on, probably too simple but I'm lost - any pointers?
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Getting started, basic setup not working

Post 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;
johansson
Posts: 75
Joined: Sunday 27 September 2015 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Finland
Contact:

Re: Getting started, basic setup not working

Post 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.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Getting started, basic setup not working

Post 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.
johansson
Posts: 75
Joined: Sunday 27 September 2015 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Finland
Contact:

Re: Getting started, basic setup not working

Post by johansson »

Indeed, that was it - great, thanks! Now at least (only) the test devices are seen in Dashticz.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest