Scenes and some other data does not display?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Marque1968
Posts: 60
Joined: Tuesday 03 April 2018 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Scenes and some other data does not display?

Post by Marque1968 »

Noob question, I'm sure.

I have created a scene, which has been given the IDX 3. I want to use this scene to turn off most lights and dim some others.
I have set:

Code: Select all

blocks['s3'] = {}
blocks['s3']['title'] = 'Nacht';
blocks['s3']['icon'] = 'fa-power-off';
I have a dummy switch, which has been given the IDX 6. This shows if I am there or nearby, based on a proximity app I have installed on my mobile. In Dashticz I added:

Code: Select all

blocks[6] = {}
blocks[6]['width'] = 6;
blocks[6]['icon'] = 'fa-male';
blocks[6]['hide_data'] = true;
blocks[6]['title'] = 'Marque';
and both are added to the column:

Code: Select all

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_2',135,144,'blocktitle_3','s3','blocktitle_4',6]
columns[1]['width']['default'] = 2; 
columns[1]['width']['tablet'] = 2; 
However, neither one of them is displayed. The block titles are, but the buttons are omitted. I have this with other values aswell. I wanted to display the current temperature that is collected from the local wunderground station. In Domoticz I see all the values, like 13.6 degrees. But no information is shown in Dashticz, when I ask for '26_1' (or even just 26).

I would appreciate any insight
Spoiler: show
var config = {}
config['domoticz_ip'] = 'http://94.*:*';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '120';
config['translate_windspeed'] = true;
config['default_news_url'] = 'https://cors-anywhere.herokuapp.com/htt ... s/algemeen';
config['news_scroll_after'] = '6';
config['wu_api'] = '';
config['wu_city'] = '';
config['wu_name'] = '';
config['wu_country'] = 'NL';
config['boss_stationclock'] = 'RedBoss';
config['hide_seconds_stationclock'] = 0;

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'A', provider: '9292-bus', icon: 'bus', width:5, results: 6, title: 'Bussen A' },
publictransport.ovinfobus2 = { show_via: false, station: 'B', provider: '9292-bus', icon: 'bus', width:5, results: 6, title: 'B' }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,2,3,4,31,46,92,465,37,36,460,466,5,6,7,8,114], maxitems: 15 }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"NPO Radio 2","file":"http://icecast.omroep.nl/radio2-bb-mp3"},
{"track":2,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/ ... ive_96.mp3"},
{"track":3,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":4,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":5,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
{"track":6,"name":"Omroep Brabant","file":"http://streaming.omroepbrabant.nl/mp3"},
];


var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}
buttons.buienradar = {width:12, isimage:true, image: 'http://api.buienradar.nl/image/1.0/Rada ... =445&h=296', url: 'http://www.weer.nl/verwachting/nederland/*/*/'}


var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Voorbeeld';

blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['key'] = 'blocktitle_2';
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Lampen';

blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['key'] = 'blocktitle_3';
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Scenes';

blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['key'] = 'blocktitle_3';
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'Aanwezig';

blocks[135] = {} //Winkellicht
blocks[135]['title'] = 'Winkel';
blocks[135]['icon']= 'fa-shopping-basket';
blocks[135]['width']= 6;
blocks[135]['hide_data']= true;

blocks[144] = {} //Meterkast
blocks[144]['title'] = 'Meterkast';
blocks[144]['icon']= 'fa-tachometer';
blocks[144]['width']= 6;
blocks[144]['hide_data']= true;

blocks['26_1'] = {} //Temperatuur
blocks['26_1']['title'] = 'Temp';
blocks['26_1']['hide_data']= false;
blocks['26_1']['width']= 12;
blocks['26_1']['switch'] = true;

blocks['s3'] = {}
blocks['s3']['title'] = 'Nacht';
blocks['s3']['icon'] = 'fa-power-off';

blocks['news_2'] = {}
blocks['news_2']['feed'] = 'https://cors-anywhere.herokuapp.com/htt ... ers/nieuws';

blocks[6] = {}
blocks[6]['width'] = 6;
blocks[6]['icon'] = 'fa-male';
blocks[6]['hide_data'] = true;
blocks[6]['title'] = 'Marque';

var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_2',135,144,'blocktitle_3','s3','blocktitle_4',6]
columns[1]['width'] = 2;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather','26_1','news','news_2']
columns[2]['width'] = 3;

columns[3] = {}
columns[3]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus,publictransport.ovinfobus2]
columns[3]['width'] = 5;

columns[4] = {}
columns[4]['blocks'] = ['stationclock','sunrise','streamplayer',buttons.nunl,buttons.nos,buttons.buienradar]
columns[4]['width'] = 2;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;

var screens = {}
screens['default'] = {}
screens['default']['maxwidth'] = 1920;
screens['default']['maxheight'] = 1080;

screens['default'][1] = {}
screens['default'][1]['background'] = 'bg2.jpg';
screens['default'][1]['columns'] = [1,2,3,4]

screens['tablet'] = {}
screens['tablet']['maxwidth'] = 1024;
screens['tablet']['maxheight'] = 768;

screens['tablet'][1] = {}
screens['tablet'][1]['background'] = 'bg9.jpg';
screens['tablet'][1]['columns'] = [1,2]

screens['tablet'][2] = {}
screens['tablet'][2]['background'] = 'bg9.jpg';
screens['tablet'][2]['columns'] = [3]
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scenes and some other data does not display?

Post by rgroothuis »

Have you ever resolved this problem? I've similar problem.

I've defined the following blocks:

blocks[353] = {}
blocks[353]['title'] = '1st Verd';
blocks[353]['show_lastupdate'] = true;

blocks[461] = {}
blocks[461]['title'] = '2de Verd';
blocks[461]['show_lastupdate'] = true;

And the column as follow:

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_2',60,90,91,100,367,481,489,145,'blocktitle_3',9,353,461,417];
columns[2]['width'] = 3;

And item 461 is NOT displayed. I cannot find out the reason why! And this is happening with more sensors/lights.
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scenes and some other data does not display?

Post by Lokonli »

Some sensors/switches are shown? If not then probably something is wrong with your Domoticz connection.
Do you use a room_plan? (and maybe 461 is missing in the room)
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scenes and some other data does not display?

Post by rgroothuis »

Lokonli wrote: Sunday 04 November 2018 21:30 Some sensors/switches are shown? If not then probably something is wrong with your Domoticz connection.
Do you use a room_plan? (and maybe 461 is missing in the room)
Thanks for the feedback. I'm not making use of floorplan, I only use the Roomplan feature. The connection seems to be OK as all the other switches are shown on the Dashticz dashboard. How can I check the connection (just to be sure)?
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scenes and some other data does not display?

Post by Lokonli »

Dashticz gets all device info via 1 json call to Domoticz. If you see some switches then the connection is working. If some switches are not present then it's because of user control or because you're using a floor plan or the device is not used in Domoticz.

Did you try with disabled user/password verification? (You can disable user/password verification for local networks in Domoticz)
Did you remove from CONFIG.js the following setting: config['room_plan'] = '?'

The device info is collected via:

Code: Select all

http://192.168.178.18:8080/json.htm?type=devices&filter=all&used=true&order=Name
Can you try that command and check whether device 461 is in? (use your the IP adress of your Domoticz server)

Can you also post the output from:

Code: Select all

http://192.168.178.18:8080/json.htm?type=devices&rid=461
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scenes and some other data does not display?

Post by HansieNL »

Have tried to add the following lines to your CONFIG.js:
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
Blah blah blah
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scenes and some other data does not display?

Post by rgroothuis »

Thanks for the feedback. I'm not using a password for the local network, that has already been disabled/configured correctly.

The output for 461 is:

{
"ActTime" : 1541369349,
"AstrTwilightEnd" : "19:05",
"AstrTwilightStart" : "05:48",
"CivTwilightEnd" : "17:45",
"CivTwilightStart" : "07:07",
"DayLength" : "09:26",
"NautTwilightEnd" : "18:25",
"NautTwilightStart" : "06:27",
"ServerTime" : "2018-11-04 23:09:09",
"SunAtSouth" : "12:05",
"Sunrise" : "07:43",
"Sunset" : "17:09",
"app_version" : "4.10007",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"DimmerType" : "abs",
"Favorite" : 0,
"HardwareID" : 4,
"HardwareName" : "ZWave",
"HardwareType" : "OpenZWave USB",
"HardwareTypeVal" : 21,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00002101",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2018-11-04 22:18:17",
"Level" : 40,
"LevelInt" : 40,
"MaxDimLevel" : 100,
"Name" : "HallWay2ndFloorLamp",
"Notifications" : "false",
"PlanID" : "6",
"PlanIDs" : [ 6 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "dimmer",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "461"
}
],
"status" : "OK",
"title" : "Devices"
}

Can you see something strange from this summary?
THe URL I used is: http://192.168.0.165:8080/json.htm?type=devices&rid=461
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scenes and some other data does not display?

Post by rgroothuis »

HansieNL wrote: Sunday 04 November 2018 23:10 Have tried to add the following lines to your CONFIG.js:
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
This seems to be the trick to solve it. I had this in the config as:

var _USE_AUTO_POSITIONING = false;
var _USE_FAVORITES = false;

But when I changed it to what was suggested it started to work :-) Great.

THanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest