Code: Select all
blocks[142]['title'] = 'Your Name';
blocks[142]['width'] = 6;
Where 142 should be replaced with your selector ID.
Moderators: leecollings, htilburgs, robgeerts
Code: Select all
blocks[142]['title'] = 'Your Name';
blocks[142]['width'] = 6;
But I can't see the block[14] defined in the blocks part....columns[8] = {} //DORMITORIO y FRIKYROOM
columns[8]['blocks'] = ['dormitorio',96,14,31,40,'15_2',38,6,'frikyroom',97,48,51,49]
columns[8]['width'] = 4;
Code: Select all
blocks[4] = {}
blocks[4] ['width'] = 4;
blocks[4] ['title'] = 'Dor_Boton_Izq' --> can be anything you like, to overrule the Domoticz Title
Code: Select all
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, see: 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
Failed to load http://www.nu.nl/rss/Algemeen: Redirect from 'http://www.nu.nl/rss/Algemeen' to 'https://www.nu.nl/rss/Algemeen' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.0.10' is therefore not allowed access.
OK, I've managed to solve this: in main.js, after the 'if' statement in function getDevices starting with this line:MikeF wrote: ↑Wednesday 25 October 2017 11:11In my dashboard I've got a LightwaveRF dimmer (Lighting 5), which uses 32 steps rather than the usual 16. This is handled OK by Domoticz, and the value set in Domoticz is shown correctly in Dashticz (max value shown is 96%).
However, if I try to reduce the slider setting by 1 step (in Domoticz, this would take it down to 93%), in Dashticz it snaps down to 40% (and similarly for other settings).
I suspect this is due to it having 32 steps rather than 16.
Code: Select all
if(parseFloat(device['MaxDimLevel'])==100){
Code: Select all
else if(parseFloat(device['MaxDimLevel'])==32){
$( ".slider"+device['idx'] ).slider({
value:Math.ceil((device['Level']/100)*32),
step: 1,
min:2,
max:32,
slide: function( event, ui ) {
sliding = true;
slideDevice($(this).data('light'),ui.value);
},
change:function( event, ui ) {
sliding = true;
slideDevice($(this).data('light'),ui.value);
},
stop: function( event, ui ) {
sliding = false;
}
});
Yep, there is: viewtopic.php?f=67&t=17242&p=153719#p153719
Code: Select all
var config = {}
config['language'] = 'nl_NL';
config['timeformat'] = 'DD/MM/YYYY HH:mm';
config['domoticz_ip'] = 'http://xxxxxxxxxxxxxx';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['wu_api'] = 'xxxxxxxxxxxx';
config['wu_city'] ='Gruitrode';
config['wu_country'] = 'Belgium';
config['wu_name'] = 'Gruitrode';
config['use_favorites'] = 0;
var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT
var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }
var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:12, channels: [49,59,60], maxitems: 10 }
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];
var buttons = {}
buttons.hbvl = {key: 'hbvl', width:4, icon: 'fa-newspaper-o', title: 'HBVL', url: 'http://www.hbvl.be'}
buttons.hln = {key: 'hln', width:4, icon: 'fa-newspaper-o', title: 'HLN', url: 'http://www.hln.be'}
buttons.sporza = {key: 'sporza', width:4, icon: 'fa-newspaper-o', title: 'Sporza', url: 'http://www.sporza.be'}
var blocks = {}
blocks['blocktitle_buiten'] = {}
blocks['blocktitle_buiten']['key'] = 'blocktitle_buiten';
blocks['blocktitle_buiten']['type'] = 'blocktitle';
blocks['blocktitle_buiten']['title'] = 'Buiten';
blocks['blocktitle_gelijkvloers'] = {}
blocks['blocktitle_gelijkvloers']['key'] = 'blocktitle_gelijkvloers';
blocks['blocktitle_gelijkvloers']['type'] = 'blocktitle';
blocks['blocktitle_gelijkvloers']['title'] = 'Gelijkvloers';
blocks['blocktitle_boven'] = {}
blocks['blocktitle_boven']['key'] = 'blocktitle_boven';
blocks['blocktitle_boven']['type'] = 'blocktitle';
blocks['blocktitle_boven']['title'] = 'Boven';
blocks['blocktitle_onder'] = {}
blocks['blocktitle_onder']['key'] = 'blocktitle_onder';
blocks['blocktitle_onder']['type'] = 'blocktitle';
blocks['blocktitle_onder']['title'] = 'Onder';
blocks[40] = {} //achterdeur
blocks[40]['width'] = 4;
blocks[39] = {} //voordeur
blocks[39]['width'] = 4;
blocks[38] = {} //kelderdeur
blocks[38]['width'] = 4;
blocks[65] = {} //garage buiten
blocks[65]['width'] = 4;
blocks[66] = {} //Terras living
blocks[66]['width'] = 4;
blocks[67] = {} //Terras keuken
blocks[67]['width'] = 4;
blocks[54] = {} //voordeur sfeer
blocks[54]['width'] = 4;
blocks[50] = {} //aanrecht
blocks[50]['width'] = 6;
blocks[49] = {} //keuken
blocks[49]['width'] = 6;
blocks[51] = {} //sfeer
blocks[51]['width'] = 12;
blocks[52] = {} //zithoek
blocks[52]['width'] = 6;
blocks[53] = {} //eethoek
blocks[53]['width'] = 6;
blocks[55] = {} //bureau
blocks[55]['width'] = 4;
blocks[56] = {} //inkomhal
blocks[56]['width'] = 4;
blocks[64] = {} //Garage
blocks[64]['width'] = 4;
blocks[48] = {} //berging
blocks[48]['width'] = 4;
blocks[47] = {} //sas
blocks[47]['width'] = 4;
blocks[58] = {} //Toilet
blocks[58]['width'] = 4;
blocks[72] = {} //Rol omhoog
blocks[72]['width'] = 6;
blocks[72] ['icon'] = 'fa-arrow-up';
blocks[73] = {} //Rol omlaag
blocks[73]['width'] = 6;
blocks[73] ['icon'] = 'fa-arrow-down';
blocks[59] = {} //Overloop
blocks[59]['width'] = 4;
blocks[57] = {} //overloop sfeer
blocks[57]['width'] = 4;
blocks[60] = {} //Emily
blocks[60]['width'] = 4;
blocks[61] = {} //Ryan
blocks[61]['width'] = 4;
blocks[62] = {} //Slaapkamer
blocks[62]['width'] = 4;
blocks[63] = {} //Dressing
blocks[63]['width'] = 4;
blocks[69] = {} //Douche
blocks[69]['width'] = 4;
blocks[70] = {} //Badkamer
blocks[70]['width'] = 4;
blocks[71] = {} //Lavabo
blocks[71]['width'] = 4;
blocks[68] = {} //Zolder
blocks[68]['width'] = 4;
blocks[78] = {} //Trap
blocks[78]['width'] = 4;
blocks[77] = {} //Voorraad
blocks[77]['width'] = 4;
blocks[74] = {} //Droogkast
blocks[74]['width'] = 4;
blocks[76] = {} //Container
blocks[76]['width'] = 4;
blocks[80] = {} //Werkbank
blocks[80]['width'] = 4;
blocks[75] = {} //Dompelpomp
blocks[75]['width'] = 4;
blocks[79] = {} //Waterpomp
blocks[79]['width'] = 4;
blocks[41] = {} //Kodi
blocks[41]['width'] = 12;
var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_buiten',40,39,38,65,66,67,'blocktitle_gelijkvloers', 50,49,51,52,53,55,56,64,48,47,58,72,73]
columns[1]['width'] = 4;
columns[2] = {}
columns[2]['blocks'] = ['blocktitle_boven', 59,57,60,61,62,63,69,70,71,68, 'blocktitle_onder',78,77,74,76,80,75,79]
columns[2]['width'] = 4;
columns[3] = {}
columns[3]['blocks'] = ['currentweather_big','weather','sunrise', 41, buttons.hbvl, buttons.hln, buttons.sporza]
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]
Code: Select all
blocks['211_1']['switch'] = true;
Code: Select all
blocks['211a']['switch'] = true;
Code: Select all
blocks['211a'] = {}
blocks['211a']['switch'] = true;
blocks['211b'] = {}
blocks['211b']['switch'] = false;
Users browsing this forum: No registered users and 1 guest