Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz - General Discussions

Post by SwordFish »

Thanks you guys, I have that all, but when you use the custom.js to change the on and off text to aanwezig and afwezig the last seen isn't working. When I remove it from the custom.js then it works like you guys say. Do I make any sense ;)
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by bsmeding »

rpwessels wrote:Hello,

Can somebody help me, checked this discussion already but calendar(apple) is still not displaying. Changed CONFIG.js calendar settings in "var _ICALENDAR_URL = 'webcal://p32-calendars.icloud.com/published/2/i..... etc"
and placed 'icalendar' in column . Nothing is showing. What do i forget.

Ricardo
Hi Ricardo,

You have to wait a little more for the correct calendar plugin, see special calendar thread https://www.domoticz.com/forum/viewtopi ... 67&t=17425
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by bsmeding »

SwordFish wrote:Thanks you guys, I have that all, but when you use the custom.js to change the on and off text to aanwezig and afwezig the last seen isn't working. When I remove it from the custom.js then it works like you guys say. Do I make any sense ;)
can you post the custom.js
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz - General Discussions

Post by SwordFish »

Will do later, have to eat first ;)
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz - General Discussions

Post by SwordFish »

SwordFish wrote:I have in the custom.js code that turns on/off into aanwezig/afwezig (see Andrew thuis?). Is it right that last seen then don't work? When i quote it out then last seen is working. Is it possible to get it anyway with custum.js.
So this is the code in custom.js

Code: Select all

function getBlock_338(device,idx){ //change 233 to the idx of your device!
   $('.block_'+idx).attr('onclick','switchDevice(this)');
   var html='';
   html+='<div class="col-xs-4 col-icon">';
      if(device['Status']=='Off') html+=iconORimage(idx,'fa-toggle-off','','off icon');
      else html+=iconORimage(idx,'fa-toggle-on','','on icon');
   html+='</div>';
   html+='<div class="col-xs-8 col-data">';
   html+='<strong class="title">'+device['Name']+'</strong><br />';
   if(device['Status']=='Off') html+='<span class="state">Afwezig</span>';
   else html+='<span class="state">Aanwezig</span>';

   html+='</div>';
   return html;
}
rpwessels
Posts: 8
Joined: Tuesday 16 August 2016 11:41
Target OS: Linux
Domoticz version: V3.5641
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by rpwessels »

Hello ,

I will wait and follow the discussion.


Ricardo
Ubuntu16.04 LTS | Z-wave | Opentherm | P1 Smartmeter
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by madrian »

rpwessels wrote:Hello,

Can somebody help me, checked this discussion already but calendar(apple) is still not displaying. Changed CONFIG.js calendar settings in "var _ICALENDAR_URL = 'webcal://p32-calendars.icloud.com/published/2/i..... etc"
and placed 'icalendar' in column . Nothing is showing. What do i forget.

Ricardo
Without crossorigin.me of the front of the url it newer going to work.
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Swifty »

pkrabben wrote:
Swifty wrote:I tried to set dashticz up on a windows tablet last night but all I got was 500 - Internal server error when browsing to the url.

My steps were as the wiki - done a git clone of the master into domoticz/www/dashboard, cp CONFIG_DEFAULT.js to CONFIG.js.
Edit the CONFIG.js to point at my local domoticz server (which uses auth, so specified as http://user:pass@my_ip:8080)
Set language to english.

I've tried a restart of the domoticz installation, just in case it needed to refresh anything from the new directory, but I still get a 500 error when browsing.
Any sort of log I can look at to troubleshoot?
Did you try

http://IP address:port/{dashboard folder}/index.html
OK, that was simple :) works fine when I add the page name.
Didn't even think to try that.

Many thanks
repoman
Posts: 38
Joined: Saturday 15 April 2017 13:05
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by repoman »

Hi folks,

I've downloaded the latest beta and i like the moving weather icons. I'm also happy to see that the news items are scrolling again. Thnx!

The problem I have is with the dual output blocks. I'm using a youless device to monitor energy usage.
When I use 'idx_1' I get te total power usage of today and when I use 'idx_2' I get the total power usage.
I would like to see the current power usage. ('ídx_3' gives me an emty block...)

Related to this is are the temperature sensors. I suspect it should be possible to use i.e. 'idx_1'for temperature and 'idx_2' for humidity but it doesn't.
I still get two blocks while I only need the temperature reading..

Probably something stupid but I can't find it in the wiki..

A little help is much appreciated.

Thnx,

Pascal
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Dashticz - General Discussions

Post by tontze »

EdKo66 wrote:This is an indication that something IS wrong in your config. Not necessarily in the HOST_DOMOTICZ variable, but might be something further down the line. So double check if you might have forgotten a ';' or something trivial like that.
Aha, ok thnx :) Will check
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by bsmeding »

SwordFish wrote:
SwordFish wrote:I have in the custom.js code that turns on/off into aanwezig/afwezig (see Andrew thuis?). Is it right that last seen then don't work? When i quote it out then last seen is working. Is it possible to get it anyway with custum.js.
So this is the code in custom.js
..
Try to use this:

Code: Select all

function getBlock_338(device,idx){ //change 233 to the idx of your device!
   $('.block_'+idx).attr('onclick','switchDevice(this)');
   var html='';
   html+='<div class="col-xs-4 col-icon">';
      if(device['Status']=='Off') html+=iconORimage(idx,'fa-toggle-off','','off icon');
      else html+=iconORimage(idx,'fa-toggle-on','','on icon');
   html+='</div>';
   html+='<div class="col-xs-8 col-data">';
   html+='<strong class="title">'+device['Name']+'</strong><br />';
   if(device['Status']=='Off') html+='<span class="state">Afwezig</span>';
   else html+='<span class="state">Aanwezig</span>';

   if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
   html+='</div>';
   return html;
}
added : if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by qwerk »

Does anybody know of an easy way to adjust multiple blocks in one go:

I now have:

blocks[1321] = {}
blocks[1321]['width'] = 5

is there a way to also apply this for device 1329 without copying the two lines?
like: blocks[1321]-[1329] = {} etc etc
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz - General Discussions

Post by SwordFish »

Try to use this:

Code: Select all

function getBlock_338(device,idx){ //change 233 to the idx of your device!
   $('.block_'+idx).attr('onclick','switchDevice(this)');
   var html='';
   html+='<div class="col-xs-4 col-icon">';
      if(device['Status']=='Off') html+=iconORimage(idx,'fa-toggle-off','','off icon');
      else html+=iconORimage(idx,'fa-toggle-on','','on icon');
   html+='</div>';
   html+='<div class="col-xs-8 col-data">';
   html+='<strong class="title">'+device['Name']+'</strong><br />';
   if(device['Status']=='Off') html+='<span class="state">Afwezig</span>';
   else html+='<span class="state">Aanwezig</span>';

   if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
   html+='</div>';
   return html;
}
added : if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
That didn't work, sorry ( did also clear cache )
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by bsmeding »

and the variable _SHOW_LASTUPDATE = true in CONFIG.js?
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by bsmeding »

If I change it it works
also check if you don't hide it in the blocks settings


in CONFIG.js

Code: Select all

var _SHOW_LASTUPDATE            = true;
var _LASTUPDATE_FORMAT          = 'DD-MM-YY HH:mm'

and

blocks[402] = {}
blocks[402]['icon'] = 'fa-male';
blocks[402]['title'] = 'B';
in custom.js

Code: Select all

function getBlock_402(device,idx){ //change 233 to the idx of your device!
   $('.block_'+idx).attr('onclick','switchDevice(this)');
   var html='';
   html+='<div class="col-xs-4 col-icon">';
      if(device['Status']=='Off') html+=iconORimage(idx,'fa-toggle-off','','off icon');
      else html+=iconORimage(idx,'fa-toggle-on','','on icon');
   html+='</div>';
   html+='<div class="col-xs-8 col-data">';
   html+='<strong class="title">'+device['Name']+'</strong><br />';
   if(device['Status']=='Off') html+='<span class="state">AFWEZIG</span>';
   else html+='<span class="state">AANWEZIG</span>';
   if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
   html+='</div>';
   return html;
}

you can also force the update to change the line
if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';

to

html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
Attachments
Schermafbeelding 2017-05-08 om 20.44.27.png
Schermafbeelding 2017-05-08 om 20.44.27.png (95.13 KiB) Viewed 2204 times
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz - General Discussions

Post by SwordFish »

Will check it tomorrow, now not at home.
Thanks for the help
godinperson
Posts: 26
Joined: Saturday 06 May 2017 0:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by godinperson »

@htilburgs

I'm not seeing anything. Is it because of my setup? I don't have much right now, only Kodi and outside temperature.
https://www.domoticz.com/forum/viewtopi ... =4&t=17474

Thanks
lukev
Posts: 66
Joined: Friday 21 October 2016 10:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by lukev »

godinperson wrote:@htilburgs

I'm not seeing anything. Is it because of my setup? I don't have much right now, only Kodi and outside temperature.
https://www.domoticz.com/forum/viewtopi ... =4&t=17474

Thanks
Did you follow the wiki installation guide? ;)
https://www.domoticz.com/wiki/Dashticz_V2
godinperson
Posts: 26
Joined: Saturday 06 May 2017 0:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by godinperson »

I did yes! Installation and configuration

This is all I get:
Dashticz.png
Dashticz.png (85.36 KiB) Viewed 2155 times
I should at least get some buttons or some weather?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - General Discussions

Post by EdwinK »

I bet your CONFIG.js is faulty.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Locked

Who is online

Users browsing this forum: No registered users and 0 guests