Page 37 of 184
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:27
by robgeerts
SwordFish wrote:@robgeerts
Is it possible to add the colorcode for overriding the color off the slidernob in the custum css?
I though i had it but it didn't work.
This works for me:
Code: Select all
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
border: 1px solid yellow !important;
background: #ff0000 !important;
}
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:28
by SwordFish
robgeerts wrote:EdKo66 wrote:SwordFish wrote:
Sorry for the late reaction, but yes thats the script. I removed the part wich said "binnen 15 minuten".
Also in my domoticz its a text idx (53) not a switch.
Got it working, sort of

Only the wrong icon, could you send me the output of this device?
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:29
by SwordFish
robgeerts wrote:SwordFish wrote:@robgeerts
Is it possible to add the colorcode for overriding the color off the slidernob in the custum css?
I though i had it but it didn't work.
This works for me:
Code: Select all
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
border: 1px solid yellow !important;
background: #ff0000 !important;
}
Will try that later, thanks
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:36
by Nautilus
koowee wrote:
When you uncomment CUSTOM POSITIONING part, did you also remove text CUSTOM POSITIONING or add // before it (//CUSTOM POSITIONING)?
Excellent point, boy do I feel stupid now...
Ok, page loads again, but I cannot still show any customized stuff (yes, I'm prepared to look stupid again

). If set _use_favorites = false I get all the devices I have (but no custom stuff I tied to add). If I set _use_auto_positioning = false I get only weather, clock and camera (no custom stuff). I tried to add some title blocks and a few devices under the tile but looks as though they are just ignored. How should these parameters (auto positioning, favorites) be used together with the custom items? What could be the reason? Some weird stuff in the console again, but does not seem related to this.
- Spoiler: show
Code: Select all
VM6780 pubads_impl_113.js:210 GET http://tpc.googlesyndication.com/safeframe/1-0-7/html/container.html?n=1 net::ERR_BLOCKED_BY_CLIENT
jk @ VM6780 pubads_impl_113.js:210
lk @ VM6780 pubads_impl_113.js:210
Xm @ VM6780 pubads_impl_113.js:254
h.setCorrelator @ VM6780 pubads_impl_113.js:259
xn @ VM6780 pubads_impl_113.js:287
Z.J @ VM6780 pubads_impl_113.js:270
(anonymous) @ VM6780 pubads_impl_113.js:69
h.Ba @ VM6780 pubads_impl_113.js:267
Z.Sa @ VM6780 pubads_impl_113.js:272
kp @ VM6780 pubads_impl_113.js:298
(anonymous) @ VM6780 pubads_impl_113.js:69
(anonymous) @ VM7101:715
Pl.push @ VM6780 pubads_impl_113.js:69
(anonymous) @ VM6780 pubads_impl_113.js:69
Rl @ VM6780 pubads_impl_113.js:70
(anonymous) @ VM6780 pubads_impl_113.js:69
Ap @ VM6780 pubads_impl_113.js:313
(anonymous) @ VM6780 pubads_impl_113.js:314
(anonymous) @ VM6780 pubads_impl_113.js:314
VM6780 pubads_impl_113.js:22 GET https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&correlator=409…3&vrp=113&ga_vid=1671611528.1492065324&ga_sid=1492068777&ga_hid=1228374834 net::ERR_BLOCKED_BY_CLIENT
Thanks for all the help, really appreciate it!

Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:40
by HansieNL
SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there's another switch with text.
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:43
by robgeerts
Nautilus wrote:koowee wrote:
When you uncomment CUSTOM POSITIONING part, did you also remove text CUSTOM POSITIONING or add // before it (//CUSTOM POSITIONING)?
Excellent point, boy do I feel stupid now...
Ok, page loads again, but I cannot still show any customized stuff (yes, I'm prepared to look stupid again

). If set _use_favorites = false I get all the devices I have (but no custom stuff I tied to add). If I set _use_auto_positioning = false I get only weather, clock and camera (no custom stuff). I tried to add some title blocks and a few devices under the tile but looks as though they are just ignored. How should these parameters (auto positioning, favorites) be used together with the custom items? What could be the reason? Some weird stuff in the console again, but does not seem related to this.
- Spoiler: show
Code: Select all
VM6780 pubads_impl_113.js:210 GET http://tpc.googlesyndication.com/safeframe/1-0-7/html/container.html?n=1 net::ERR_BLOCKED_BY_CLIENT
jk @ VM6780 pubads_impl_113.js:210
lk @ VM6780 pubads_impl_113.js:210
Xm @ VM6780 pubads_impl_113.js:254
h.setCorrelator @ VM6780 pubads_impl_113.js:259
xn @ VM6780 pubads_impl_113.js:287
Z.J @ VM6780 pubads_impl_113.js:270
(anonymous) @ VM6780 pubads_impl_113.js:69
h.Ba @ VM6780 pubads_impl_113.js:267
Z.Sa @ VM6780 pubads_impl_113.js:272
kp @ VM6780 pubads_impl_113.js:298
(anonymous) @ VM6780 pubads_impl_113.js:69
(anonymous) @ VM7101:715
Pl.push @ VM6780 pubads_impl_113.js:69
(anonymous) @ VM6780 pubads_impl_113.js:69
Rl @ VM6780 pubads_impl_113.js:70
(anonymous) @ VM6780 pubads_impl_113.js:69
Ap @ VM6780 pubads_impl_113.js:313
(anonymous) @ VM6780 pubads_impl_113.js:314
(anonymous) @ VM6780 pubads_impl_113.js:314
VM6780 pubads_impl_113.js:22 GET https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&correlator=409…3&vrp=113&ga_vid=1671611528.1492065324&ga_sid=1492068777&ga_hid=1228374834 net::ERR_BLOCKED_BY_CLIENT
Thanks for all the help, really appreciate it!

Whats the contents of your config.js?
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:44
by robgeerts
HansieNL wrote:SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there another switch with text.
For some reason you get the switch icon instead of rain icon.
Wait, I know the reason.... please send me your output of these 2 devices
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:45
by SwordFish
HansieNL wrote:SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there another switch with text.
Oké, I only have a text box. But the textbox has a IDX?
Verzonden vanaf mijn iPhone met Tapatalk
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:51
by HansieNL
SwordFish wrote:HansieNL wrote:SwordFish wrote:
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
For the rainscript there are 2 switches used. There is one on/off switch (see picture previous post) and there another switch with text.
Oké, I only have a text box. But the textbox has a IDX?
Verzonden vanaf mijn iPhone met Tapatalk
As far as I know every device has a IDX in Domoticz. So your textbox should have a IDX too.
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:54
by SwordFish
Strange, I only filled in the idx of the text box in the config and it worked
Verzonden vanaf mijn iPhone met Tapatalk
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 9:56
by Nautilus
robgeerts wrote:
Whats the contents of your config.js?
I started out with the default and just removed the idx I didn't have. Then I kept removing more stuff thinking I should get at least something simple to work

So now it is reduced to this:
Code: Select all
//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default
var blocks = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Lights';
//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'] = ['blocktitle_1',114,115,116]
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['clock','sunrise']
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise']
columns[3]['width'] = 2;
//if you want to use multiple screens, use the code below:
//var screens = {}
//screens[1] = {}
//screens[1]['background'] = 'bg1.jpg';
//screens[1]['columns'] = [1,2,3]
//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['columns'] = [4,5,6]
Selected parameters:
Code: Select all
var _USE_AUTO_POSITIONING = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = false; //only used when using auto positioning
Changing auto positioning to false will remove everything except weather, clock, sunrise & camera. Like this it will show all switches I have.
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:04
by HansieNL
SwordFish wrote:Strange, I only filled in the idx of the text box in the config and it worked
Verzonden vanaf mijn iPhone met Tapatalk
That's not strange. The texbox is just giving you the info extracted from the download. If you set a treshhold you can trigger a real switch to alarm you when it's gonna rain. And from there you can trigger other switches. I hope it's clear to you now?
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:08
by EdwinK
SwordFish wrote:robgeerts wrote:EdKo66 wrote:
Got it working, sort of

Only the wrong icon, could you send me the output of this device?
I don't think it is a wrong icon, i have the same script. With me it is in domoticz a text box not a switchbox.
Maybe something when wrong with the install off the script?
This is the output of the idx:
Code: Select all
{
"ActTime" : 1492070863,
"ServerTime" : "2017-04-13 10:07:43",
"Sunrise" : "06:50",
"Sunset" : "20:35",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Hello World",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 24,
"HardwareName" : "Weer",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "00082113",
"LastUpdate" : "2017-04-13 09:48:15",
"Name" : "Rain Expected",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : false,
"SignalLevel" : "-",
"SubType" : "Text",
"Timers" : "false",
"Type" : "General",
"TypeImg" : "text",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "113"
}
],
"status" : "OK",
"title" : "Devices"
}
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:13
by SwordFish
HansieNL wrote:SwordFish wrote:Strange, I only filled in the idx of the text box in the config and it worked
Verzonden vanaf mijn iPhone met Tapatalk
That's not strange. The texbox is just giving you the info extracted from the download. If you set a treshhold you can trigger a real switch to alarm you when it's gonna rain. And from there you can trigger other switches. I hope it's clear to you now?
I know how it works, but it's strange that we used the same script and I get the text output when used the idx for the text and someone else the switch output.
Verzonden vanaf mijn iPhone met Tapatalk
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:17
by HansieNL
@EdKo66 are you sure this is the right IDX for this switch? Looks like the picture is the on/off switch and the data output looks like the text device to me.
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:21
by HansieNL
SwordFish wrote:
I know how it works, but it's strange that we used the same script and I get the text output when used the idx for the text and someone else the switch output.
Verzonden vanaf mijn iPhone met Tapatalk
Ahhhh... Now I understand what you exactly means. See my post to EdKo66.
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:27
by gielie
@HansieNL
I use the same rainscript but i dont have the switch with text, i never got this to work, can you explain how you got this to work?
Or do i just have to create a text switch with "Rain expected"? Beacause when i do that i only get "Hello world"
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:29
by axelbaas
SwordFish wrote:HansieNL wrote:SwordFish wrote:Strange, I only filled in the idx of the text box in the config and it worked
Verzonden vanaf mijn iPhone met Tapatalk
That's not strange. The texbox is just giving you the info extracted from the download. If you set a treshhold you can trigger a real switch to alarm you when it's gonna rain. And from there you can trigger other switches. I hope it's clear to you now?
I know how it works, but it's strange that we used the same script and I get the text output when used the idx for the text and someone else the switch output.
Verzonden vanaf mijn iPhone met Tapatalk
I did update the dashboard. Just to be sure.. But still there is a 'switch' box instead of a text box.
Strange....

Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:34
by EdwinK
HansieNL wrote:@EdKo66 are you sure this is the right IDX for this switch? Looks like the picture is the on/off switch and the data output looks like the text device to me.
That is what's confusing me atm.
I created a text device, with IDX 113

.
When I return from the evil that is grocery-shopping, I will take another look at the scripts in that topic and see what I can do.
Re: New Dashboard Design v2, custom positioning and multiple screens
Posted: Thursday 13 April 2017 10:34
by koowee
Nautilus wrote:robgeerts wrote:
Whats the contents of your config.js?
I started out with the default and just removed the idx I didn't have. Then I kept removing more stuff thinking I should get at least something simple to work

So now it is reduced to this:
Code: Select all
//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default
var blocks = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Lights';
//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'] = ['blocktitle_1',114,115,116]
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['clock','sunrise']
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise']
columns[3]['width'] = 2;
//if you want to use multiple screens, use the code below:
//var screens = {}
//screens[1] = {}
//screens[1]['background'] = 'bg1.jpg';
//screens[1]['columns'] = [1,2,3]
//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['columns'] = [4,5,6]
Try to enable screens (one screen, it should show colums 1-3)
example
Code: Select all
//if you want to use multiple screens, use the code below:
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.jpg';
screens[1]['columns'] = [1,2,3]
//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['columns'] = [4,5,6]