Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Locked
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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;
}
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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 ;)

Image
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?
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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... :oops:

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! :)
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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.
Last edited by HansieNL on Thursday 13 April 2017 9:47, edited 1 time in total.
Blah blah blah
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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... :oops:

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?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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.
Blah blah blah
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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?
Blah blah blah
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post by EdwinK »

SwordFish wrote:
robgeerts wrote:
EdKo66 wrote:
Got it working, sort of ;)

Image
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?

Image

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"
}
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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.
Blah blah blah
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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.
Blah blah blah
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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"
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
axelbaas
Posts: 28
Joined: Thursday 14 January 2016 20:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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.... :?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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
Image.

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.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
koowee
Posts: 62
Joined: Thursday 29 December 2016 18:17
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Finland
Contact:

Re: New Dashboard Design v2, custom positioning and multiple screens

Post 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]
Last edited by koowee on Thursday 13 April 2017 10:40, edited 1 time in total.
Locked

Who is online

Users browsing this forum: No registered users and 1 guest