Re: New Dashboard Design
Posted: Wednesday 05 April 2017 10:53
just noticed in that my setpoint devices are not showing up at two devices in the Dashboard
Open source Home Automation System
https://forum.domoticz.com/
Aren't they also positioned in the left column?ddahya wrote:just noticed in that my setpoint devices are not showing up at two devices in the Dashboard
Worksrobgeerts wrote:
Could you test if this is working, add to creative.css:EdKo66 wrote: Just the two bottom (wind and barometer) should go up a little more.
(or download latest version)Code: Select all
.states > div { height:75px; } #switches > div { height:85px; }
Code: Select all
//defining wich blocks to show
var blocks = {}
blocks[23] = {}
blocks[23]['title'] = 'Dinner table'; //remove line if you want use title as defined in domoticz
blocks[23]['width'] = 2; //1 to 12, remove this line if you want to use the default (4)
blocks[35] = {}
blocks[35]['title'] = 'Living room'; //remove line if you want use title as defined in domoticz
blocks[35]['width'] = 2; //1 to 12, remove this line if you want to use the default (4)
blocks[76] = {}
blocks[76]['title'] = 'Stairs'; //remove line if you want use title as defined in domoticz
blocks[76]['width'] = 2; //1 to 12, remove this line if you want to use the default (4)
//defining number of columns, their contents en widths
//width can be a number 1 to 12, but total widths of all columns should always be 12
var columns = {}
columns[1] = {}
columns[1]['blocks'] = {23,35,76}
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = {'weather',1,67,128,'buttons'}
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = {'clock','sunrise','currentweather'}
columns[3]['width'] = 2;
Just sent you all the details via PMrobgeerts wrote:Aren't they also positioned in the left column?ddahya wrote:just noticed in that my setpoint devices are not showing up at two devices in the Dashboard
Could you send me a complete screenshot?
And, if possible, the complete (all devices) json-output from domoticz, via PM?
I think it's a good approach. If you need a beta-tester, count me in!robgeerts wrote:@ALL:
Do define wich switches/states you want to show, I'm thinking of the following solution, if there's a file called POSITION.JS execute this, if not, parse everything the way it is currently. The contents could be something like:
In this case, everybody can arrange their dashboard according to their needs!Code: Select all
//defining wich blocks to show var blocks = {} blocks[23] = {} blocks[23]['title'] = 'Dinner table'; //remove line if you want use title as defined in domoticz blocks[23]['width'] = 2; //1 to 12, remove this line if you want to use the default (4) blocks[35] = {} blocks[35]['title'] = 'Living room'; //remove line if you want use title as defined in domoticz blocks[35]['width'] = 2; //1 to 12, remove this line if you want to use the default (4) blocks[76] = {} blocks[76]['title'] = 'Stairs'; //remove line if you want use title as defined in domoticz blocks[76]['width'] = 2; //1 to 12, remove this line if you want to use the default (4) //defining number of columns, their contents en widths //width can be a number 1 to 12, but total widths of all columns should always be 12 var columns = {} columns[1] = {} columns[1]['blocks'] = {23,35,76} columns[1]['width'] = 5; columns[2] = {} columns[2]['blocks'] = {'weather',1,67,128,'buttons'} columns[2]['width'] = 5; columns[3] = {} columns[3]['blocks'] = {'clock','sunrise','currentweather'} columns[3]['width'] = 2;
I would like that very much.robgeerts wrote:@ALL:
Do define wich switches/states you want to show, I'm thinking of the following solution, if there's a file called POSITION.JS execute this, if not, parse everything the way it is currently. The contents could be something like:
...
In this case, everybody can arrange their dashboard according to their needs!
Verry nicerobgeerts wrote:@ALL:
Do define wich switches/states you want to show, I'm thinking of the following solution, if there's a file called POSITION.JS execute this, if not, parse everything the way it is currently. The contents could be something like:
In this case, everybody can arrange their dashboard according to their needs!Code: Select all
//defining wich blocks to show var blocks = {} blocks[23] = {} blocks[23]['title'] = 'Dinner table'; //remove line if you want use title as defined in domoticz blocks[23]['width'] = 2; //1 to 12, remove this line if you want to use the default (4) blocks[35] = {} blocks[35]['title'] = 'Living room'; //remove line if you want use title as defined in domoticz blocks[35]['width'] = 2; //1 to 12, remove this line if you want to use the default (4) blocks[76] = {} blocks[76]['title'] = 'Stairs'; //remove line if you want use title as defined in domoticz blocks[76]['width'] = 2; //1 to 12, remove this line if you want to use the default (4) //defining number of columns, their contents en widths //width can be a number 1 to 12, but total widths of all columns should always be 12 var columns = {} columns[1] = {} columns[1]['blocks'] = {23,35,76} columns[1]['width'] = 5; columns[2] = {} columns[2]['blocks'] = {'weather',1,67,128,'buttons'} columns[2]['width'] = 5; columns[3] = {} columns[3]['blocks'] = {'clock','sunrise','currentweather'} columns[3]['width'] = 2;
Well, it does at my dashboard...HansieNL wrote:@robgeerts: You're almost faster than light
Is it possible to have the selector switch show to the right selection instead of always "select"?
What's the output of that selector?HansieNL wrote:The Toon Setpoint is working great now!!! But I also have a selector switch to quickly select a presetted temperature.
Tried an other selector switch and it just shows "select" and not the selection already made. I hope it's more clear now.
I don't know if you can make it work default for every selector switch?robgeerts wrote:What's the output of that selector?HansieNL wrote:The Toon Setpoint is working great now!!! But I also have a selector switch to quickly select a presetted temperature.
Tried an other selector switch and it just shows "select" and not the selection already made. I hope it's more clear now.
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 15,
"Data" : "On",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "Dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0001407F",
"Image" : "Heating",
"IsSubDevice" : false,
"LastUpdate" : "2017-04-05 15:08:06",
"Level" : 40,
"LevelActions" : "|http%3A//192.168.2.14%3A8080/json.htm%3Ftype%3Dcommand%26param%3Dthermostatstate%26idx%3D35%26state%3D0|http%3A//192.168.2.14%3A8080/json.htm%3Ftype%3Dcommand%26param%3Dthermostatstate%26idx%3D35%26state%3D1|http%3A//192.168.2.14%3A8080/json.htm%3Ftype%3Dcommand%26param%3Dthermostatstate%26idx%3D35%26state%3D2|http%3A//192.168.2.14%3A8080/json.htm%3Ftype%3Dcommand%26param%3Dthermostatstate%26idx%3D35%26state%3D3|",
"LevelInt" : 40,
"LevelNames" : "Off|Comfort|Thuis|Slapen|Weg|Hand",
"LevelOffHidden" : true,
"MaxDimLevel" : 100,
"Name" : "Thermostaat",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SelectorStyle" : 0,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Selector Switch",
"SwitchType" : "Selector",
"SwitchTypeVal" : 18,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "Light",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "48"
}
"Weg" was selected. It must be this one: "LevelInt" : 40, or this on "Level" : 40,robgeerts wrote:I think the problem is that not of these levels (Off|Comfort|Thuis|Slapen|Weg|Hand) is set als active in the output...
What was the active state at the time you copied the output?