Hoping someone can assist with graphs in Dashticz. They are working for me - I get an error. I did create a separate thread but haven't gotten a response so thought I would try here.
Graphs work fine in standard dashboard, but when I try and add/view one in Dashticz I get a "192.168.1.xxx:10001 says Could not load graph!" where Domoticz ip address and port is listed.
Here is the code of my CONFIG.js
Code: Select all
var config = {}
config['domoticz_ip'] = 'http://192.168.1.xxx:10001';
config['app_title'] = 'Home';
config['domoticz_refresh'] = '20';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['idx_moonpicture'] = 2; //index of the uservariabele MoonPicture
config['standard_graph'] = 'hour';
config['auto_swipe_back_to'] = 1;
config['language'] = 'en_US';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'en_US';
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 'xxxxx';
config['gm_zoomlevel'] = 7;
config['gm_latitude'] = xxxx;
config['gm_longitude'] = xxxxx;
config['wu_api'] = 'xxxxx';
config['wu_city'] = 'Brisbane';
config['wu_name'] = '';
config['wu_country'] = 'AU';
config['spot_clientid'] = 'xxxxx';
config['selector_instead_of_buttons'] = 0;
config['last_update'] = 0;
config['hide_topbar'] = 0;
config['hide_seconds'] = 1;
config['hide_seconds_stationclock'] = 1;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 0;
config['static_weathericons'] = 0;
config['settings_icons'] = ["settings", "fullscreen"];
config['shortdate'] = 'D MMM';
config['longdate'] = 'D MMMM YYYY';
config['shorttime'] = 'HH:mm';
config['longtime'] = 'HH:mm:ss';
config['weekday'] = 'dddd';
config['no_rgb'] = 0;
var buttons = {}
buttons.moon = {width:4, isimage:true, refreshimage:60000, image: 'moon'}
var blocks = {}
// title blocks
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Lights';
blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Sensors';
blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Temperatures';
blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'Miscellaneous';
blocks['blocktitle_5'] = {}
blocks['blocktitle_5']['type'] = 'blocktitle';
blocks['blocktitle_5']['title'] = 'Sensors';
blocks['blocktitle_6'] = {}
blocks['blocktitle_6']['type'] = 'blocktitle';
blocks['blocktitle_6']['title'] = 'Harmony Functions';
//lights
blocks[28] = {}
blocks[28]['title'] = 'Living Room Front'
blocks[32] = {}
blocks[32]['title'] = 'Living Room Back'
blocks[51] = {}
blocks[51]['title'] = 'Kitchen'
blocks[49] = {}
blocks[49]['title'] = 'Dining Room'
blocks[26] = {}
blocks[26]['title'] = 'Garage'
blocks[66] = {}
blocks[66]['title'] = 'Stairs'
blocks[41] = {}
blocks[41]['title'] = 'Study'
blocks[40] = {}
blocks[40]['title'] = 'Bedroom'
blocks[25] = {}
blocks[25]['title'] = 'Unused'
//sensors
blocks[60] = {}
blocks[60]['title'] = 'Living Room Temp'
blocks[60]['switch'] = true;
blocks[61] = {}
blocks[61]['title'] = 'Living Room Humidity'
blocks[61]['switch'] = true;
blocks[52] = {}
blocks[52]['title'] = 'Study Temp'
blocks[52]['switch'] = true;
blocks[53] = {}
blocks[53]['title'] = 'Study Humidity'
blocks[53]['switch'] = true;
blocks[56] = {}
blocks[56]['title'] = 'Bedroom Temp'
blocks[56]['switch'] = true;
blocks[57] = {}
blocks[57]['title'] = 'Bedroom Humidity'
blocks[57]['switch'] = true;
blocks[10] = {}
blocks[10]['title'] = 'Garage Door'
blocks[10]['show_lastupdate'] = true;
blocks[8] = {}
blocks[8]['title'] = 'Garage Motion'
blocks[8]['show_lastupdate'] = true;
blocks[65] = {}
blocks[65]['title'] = 'Study Motion'
blocks[65]['show_lastupdate'] = true;
//robovac
blocks[73] = {}
blocks[73]['title'] = 'Robovac Status'
blocks[73]['icon'] = 'fa-gears';
blocks[80] = {}
blocks[80]['title'] = 'Robovac Filter Status'
blocks[80]['icon'] = 'fa-exclamation-triangle';
blocks[77] = {}
blocks[77]['title'] = 'Robovac Main Brush Status'
blocks[77]['icon'] = 'fa-exclamation-triangle';
blocks[78] = {}
blocks[78]['title'] = 'Robovac Side Brush Status'
blocks[78]['icon'] = 'fa-exclamation-triangle';
blocks[47] = {}
//harmony
blocks[71] = {}
blocks[71]['title'] = 'Radio'
blocks[71]['hide_data'] = true;
blocks[68] = {}
blocks[68]['title'] = 'TV'
blocks[68]['hide_data'] = true;
blocks[72] = {}
blocks[72]['title'] = 'Chromecast'
blocks[72]['hide_data'] = true;
blocks[69] = {}
blocks[69]['title'] = 'Bluray'
blocks[69]['hide_data'] = true;
blocks[70] = {}
blocks[70]['title'] = 'HD-DVD'
blocks[70]['hide_data'] = true;
blocks[67] = {}
blocks[67]['title'] = 'Power Off'
blocks[67]['width'] = 2;
blocks[67]['hide_data'] = true;
//solar
blocks[47]['title'] = 'Solar'
blocks[47]['icon'] = 'fa-plug' //doesn't seem to work
blocks[47]['switch'] = true;
/*
blocks['47_1'] = {}
blocks['47_1']['switch'] = true;
blocks['47_2'] = {}
blocks['47_2']['switch'] = true;
blocks['47_3'] = {}
blocks['47_3']['switch'] = true;
*/
//blocks[1] = {}
//blocks[1]['width'] = 4; // 1 to 12, remove this line if you want to use the default (4)
//blocks[1]['title'] = 'Living room' // if you want change the name of switch different then domoticz
//blocks[1]['icon'] = 'fa-eye'; // if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
//blocks[1]['image'] = 'bulb_off.png'; // if you want to show an image instead if icon, place image in img/ folder
//blocks[1]['switch'] = true; // if you want to switch title and data
//blocks[1]['hide_data'] = true; // if you want to hide the data of this block
//blocks[1]['show_lastupdate'] = true; // show lastupdate time from device (per device)
//blocks[1]['protected'] = true; // make switch protected (no actions on push)
//blocks[1]['playsound'] = 'sounds/sonar.mp3'; // play sound
var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','sunrise']
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',28,32,51,49,26,66,41,40]
columns[1]['width'] = 4;
columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather','blocktitle_3',60,'61_2',52,'53_2',56,'57_2','blocktitle_5',10,8,65]
columns[2]['width'] = 4;
columns[3] = {}
columns[3]['blocks'] = ['blocktitle_4','graph_47',47,7,73,80,77,78,'blocktitle_6',71,68,72,69,70,67]
columns[3]['width'] = 4;
var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]
var fucntion = {}
//garage open
function getStatus_10(idx,value,device){
if(device['Status']=="Open"){
$('div.block_61').addClass('warning');
}
else {
$('div.block_61').removeClass('warning');
}
}
//garge motion
function getStatus_8(idx,value,device){
if(device['Status']=="On"){
$('div.block_61').addClass('warning');
}
else {
$('div.block_61').removeClass('warning');
}
}
I have attached a pic of the Dashticz dashboard. When I click on OK for the graph error the dashboard loads without displaying it. If I then click on something that can show a graph (eg: temp) I get the same error.
I am running V3.8798 of Domoticz and Beta of Dashticz on a Rapberry Pi 3. The temp sensors are Xiaomi Aqara temp sensors and the Solar inverter is SMA setup via
http://www.domoticz.com/wiki/SMASpot_Mo ... n_Domoticz
Would be awesome if someone can assist as I would really like to get graphs working