Page 154 of 184

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 10:42
by aiolos
There is a trick for that. Using room plans. Downside is that you have to add the devices to the room plan in domoticz, but you get only the devices of the room plan back in the response. That might speed up things.
I'll have a look in how I can integrate this in dashticz, without breaking everything. Expect a PR soon...

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 10:59
by ensingg
Need some startup help as a complete newbie.

I run Domoticz on Windows, copied all the source code to the ../www diectory of domoticz.
Restartered the service. And changed the config.js to http://user:password@ip

But when I go to http://ip I still get the http://192.168.0.102:8181/#/Dashboard

Please help me started.

The are index2.html etc in the www directory.

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 11:03
by aiolos
Better move all files in a separate directory in www. For example: www/dashticz/
You can then access dashticz with http://192.168.0.102:8181/dashticz/index.html (or .../index2.html if you are using that)

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 12:49
by ensingg
I created a folder under ../www and named it dash.
Now when I go to http://192.168.0.102/dash/index.html I get a white page with the tile of Dashticz.

What am I doing wrong?

Best regards,

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 13:33
by htilburgs
Now you have to make the correct configuration, see the wiki (http://www.domoticz.com/wiki/Dashticz_V ... figuration)

You can start with editing your config.JS and set

Code: Select all

config['auto_positioning'] = 1;
config['use_favorites'] = 1;
Than Dashticz wil put your Domoticz Favorites in the dash.
Follow the Wiki for manual configuration of your Dashticz Dashboard.

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 13:44
by ensingg
Whats the correct place for config.JS? In the root or in de custom folder?

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 13:51
by htilburgs
It's in the www\dash\custom folder.

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 14:11
by ensingg
When I go to the dash/index.html I get a page with my favorites now. And when I use the config button I can change to edit mode.
So I get a new left frame with plugins etc that I can add. I can place it on the screen. But it says that I then have to save it.
I really have no idea how to. Used IE, Chrome and Edge.

Re: Dashticz - General Discussions

Posted: Friday 01 December 2017 16:17
by aiolos
About the issue with fetching all devices (and the possibility to limit it to the only the devices you use). I made some changes that give the option to set the room plan in the config.
For this to work you need to create a room plan in Domoticz (Setup -> More Options -> Plans -> Roomplan). In this room plan you need to add the devices you also specify in the dashticz configuration.

You then specify the room plan in the dashticz configuration:

Code: Select all

config['room_plan'] = 2; // Where 2 should be changed to the id of the room plan you created in domoticz
The dashticz configuration will default to room plan 0, which is all devices, as it was fetched before.

Using a room plan can speed up the loading of dashticz a lot, in my case it went down from 1.2 seconds to ~220 ms.

Re: Dashticz - General Discussions

Posted: Saturday 02 December 2017 5:38
by welby
Anyone know why when i edit my custom.js or custom.css files nothing happens but if i put the code into creative.css it works? Do i need to enable the custom files somehow?

Thanks.

Re: Dashticz - General Discussions

Posted: Saturday 02 December 2017 11:09
by robgeerts
It should work.... what code do you enter to custom.css ?

Re: Dashticz - General Discussions

Posted: Saturday 02 December 2017 11:46
by welby
robgeerts wrote: Saturday 02 December 2017 11:09 It should work.... what code do you enter to custom.css ?

Code: Select all

{
.warning {
    background: rgba(199,44,44,0.3) !important;
    background-clip: padding-box;
Just trying to get a door switch to change to red when the status is open.

Re: Dashticz - General Discussions

Posted: Saturday 02 December 2017 21:51
by robgeerts
This is not valid css...Please post your complete CSS whats inside custom.css

Re: Dashticz - General Discussions

Posted: Saturday 02 December 2017 22:11
by welby
robgeerts wrote: Saturday 02 December 2017 21:51 This is not valid css...Please post your complete CSS whats inside custom.css

That's all i have in there, still learning but i'm guessing there needs to be more code?

Re: Dashticz - General Discussions

Posted: Saturday 02 December 2017 22:25
by robgeerts
Well, the code should be:

Code: Select all

.warning {
    background: rgba(199,44,44,0.3) !important;
    background-clip: padding-box;
}
Do you have a function in custom.js wich adds this class to the switch?

Re: Dashticz - General Discussions

Posted: Sunday 03 December 2017 3:27
by welby
I had this in custom.js and it didn't work but it works when it's in CONFIG.js ??

Code: Select all

var fucntion = {}
function getStatus_35(idx,value,device){
   if(device['Status']=="Open"){
      $('div.block_35').addClass('warning');
   }
   else {
      $('div.block_35').removeClass('warning');
   }

Edit: Looks like i've got it working now, i think i'd stuffed the custom.css file code up a bit. Thanks for your help :D :D

Re: Dashticz - General Discussions

Posted: Sunday 03 December 2017 6:38
by edwin1234
Does dashticz work on iphone too?
I only have a blank screen with the time and date.
On the laptop i see my devices
Im new to dashticz search the forum but cant find annything about the iphone.
What to do?

Thanks

Re: Dashticz - General Discussions

Posted: Sunday 03 December 2017 15:31
by qwerk
I don't know what I am doing wrong, but I do not get all devices I want.

even with an almost empty config.js I only 60 to 70 % off my devices.
I don't use "use favorites" orso.
I have 7 doors, I only see three
I only get the half of my PIR's

When I use my_domoticz_ip/json.htm?type=devices&filter=all&used=true&order=Name I see all devices.
It is the same on windows as on Android, as on chrome and Firefox.

please advice

Dashticz iphone

Posted: Monday 04 December 2017 10:13
by edwin1234
Does dashticz work on iphone too?
I only have a blank screen with the time and date.
On the laptop i see my devices
Im new to dashticz search the forum but cant find annything about the iphone.
What to do?

Thanks

Re: Dashticz - General Discussions

Posted: Monday 04 December 2017 10:33
by CaesarPL
Please, provide you CONFIG.js. It's hard to advice when you don't know the details.