Dashticz V3.4.2 beta

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

florisi
Posts: 78
Joined: Saturday 30 July 2016 10:14
Target OS: Linux
Domoticz version: 2020beta
Location: Arnhem
Contact:

Re: Dashticz V3.4.2 beta

Post by florisi »

I have another problem with PVoutput.
I displayed a subdevice ('90_2')which gave the actual output in Watts.
In this beta I can't see it anymore.

When I display the full device, I got all three subdevices in dashticz
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by Lokonli »

florisi wrote: Tuesday 07 April 2020 9:57 I have another problem with PVoutput.
I displayed a subdevice ('90_2')which gave the actual output in Watts.
In this beta I can't see it anymore.

When I display the full device, I got all three subdevices in dashticz
Do you not see the block at all, or only no value/title inside a block?

And if you try to display '90_1' or '90_3'?

EDIT:
It's bug. Will be fixed.
florisi
Posts: 78
Joined: Saturday 30 July 2016 10:14
Target OS: Linux
Domoticz version: 2020beta
Location: Arnhem
Contact:

Re: Dashticz V3.4.2 beta

Post by florisi »

ok, thanks. I'll wait for the fix and I will test it.
toro
Posts: 47
Joined: Wednesday 09 August 2017 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by toro »

I have a switch in Domotocz which will turn ON if someone is at the door.
In CONFIG.js is a block for this switch, with the option gotoslideOn: 3, where the feed of de camera is displayed.
But it won't slide (anymore). It will only slide if I add the block to a column. But I do not want to display this switch in Dashticz.
Is this possible?
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by Lokonli »

toro wrote: Tuesday 07 April 2020 17:14 I have a switch in Domotocz which will turn ON if someone is at the door.
In CONFIG.js is a block for this switch, with the option gotoslideOn: 3, where the feed of de camera is displayed.
But it won't slide (anymore). It will only slide if I add the block to a column. But I do not want to display this switch in Dashticz.
Is this possible?
Indeed, actions will only be executed if you add a block to a column.

However, you can hide the block. One way of doing that is the following. Use the addClass parameter to add the 'hidden' class, and add the block to a column:

Code: Select all

blocks[123] = {
	addClass: 'hidden'
}

columns[1] = {
	blocks: [123]
}

and in custom.css define the 'hidden' class:

Code: Select all

.hidden {
	display: none
}
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by Lokonli »

florisi wrote: Tuesday 07 April 2020 11:29 ok, thanks. I'll wait for the fix and I will test it.
Fixed in latest beta.
(Update with git pull)
florisi
Posts: 78
Joined: Saturday 30 July 2016 10:14
Target OS: Linux
Domoticz version: 2020beta
Location: Arnhem
Contact:

Re: Dashticz V3.4.2 beta

Post by florisi »

Fixed in latest beta.
Installed latest beta, and it is working correct now.
Thanks.
Good service.

New problem introduced now: all Corona data not vissible anymore, graph and numbers lost.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz V3.4.2 beta

Post by clinkadink »

Its an issue with the external source corona api, it is currently down. I am guessing its overloaded. But there is an alternative url you can apply, if you don't want to wait for the next update (which has been submitted).

See here: https://www.domoticz.com/forum/viewtopi ... 28#p242770
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
florisi
Posts: 78
Joined: Saturday 30 July 2016 10:14
Target OS: Linux
Domoticz version: 2020beta
Location: Arnhem
Contact:

Re: Dashticz V3.4.2 beta

Post by florisi »

Thanks, changed the url.
toro
Posts: 47
Joined: Wednesday 09 August 2017 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by toro »

Lokonli wrote: Tuesday 07 April 2020 17:51 Indeed, actions will only be executed if you add a block to a column.

However, you can hide the block. One way of doing that is the following. Use the addClass parameter to add the 'hidden' class, and add the block to a column:
Lokonli,
Again, thanks for your super-fast reply.
Great tip, that's working great.

I really appreciate all your effort. Cheers!
I hope you can find a moment to take a look at my lastest question in 112 Meldingen https://www.domoticz.com/forum/viewtopi ... 20#p241683 if you didn't already do so :)
Last edited by toro on Thursday 09 April 2020 17:32, edited 1 time in total.
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by geertvercamer »

Lokonli wrote: Friday 03 April 2020 21:43
geertvercamer wrote: Friday 03 April 2020 18:13 you're welcome.
Glad to learn something new.

new beta: the title of those blocks is gone
Did you define the subblocks in CONFIG.js?

That might have been solved in the most recent beta.
If not, can you post your CONFIG.js parts for this block? (the block and column definition)
sorry, missed this.
Not sure what you mean with subblocks.
My device '95' is THB from openweather

Code: Select all

blocks['95_1'] = {title: 'Temperatuur', show_lastupdate: true, switch: true, width: 3};
blocks['95_2'] = {title: 'Vochtigheid', show_lastupdate: true, switch: true, width: 3};
blocks['95_3'] = {title: 'Barometer', show_lastupdate: true, switch: true, width: 3};
blocks['95_4'] = {title: 'Dauw Punt', show_lastupdate: true, switch: true, width: 3};
This below worked before:

Code: Select all

columns[2]['blocks'] = [95, 'weather_owm', 149, 153, 35, buttons.webcam];
I've changed to this and this is working:

Code: Select all

columns[2]['blocks'] = ['95_1', '95_2', '95_3', '95_4', 'weather_owm', 149, 153, 35, buttons.webcam];
Last edited by geertvercamer on Thursday 09 April 2020 18:20, edited 1 time in total.
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by madradrakie »

Lokonli wrote: Monday 06 April 2020 22:58 Please check a few posts earlier, and read:
https://dashticz.readthedocs.io/en/beta ... fterupdate
any idea how to modify the following code:

Code: Select all

function getStatus_413(block){ 
   if(parseFloat(device['Usage'])>0){
       block.icon= 'fas fa-sun slow-spin'; //if you use "fa-spin" instead of "slow-spin" then it is not necessary to add code to custom.css
      
   }
   else {
      block.icon= 'fas fa-sun'; 
   }
}
i tried but this one is not working:

Code: Select all

function getStatus_413(block){ 
   if(parseFloat(device['Usage'])>0){
	Dashticz.setBlock('413_1', {
       		block.icon= 'fas fa-sun slow-spin'    
   	});
   else 
	Dashticz.setBlock('413_1', {
	      block.icon= 'fas fa-sun'
	});
   }
}
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by Lokonli »

Almost ok :)

Try this:

Code: Select all

function getStatus_413(block){ 
   var usage = block.device.Usage;
   if(parseFloat(usage)>0) {
	Dashticz.setBlock('413_1', {
       		icon: 'fas fa-sun slow-spin'    
   	});
   }
   else { 
	Dashticz.setBlock('413_1', {
	      icon: 'fas fa-sun'
	});
   }
}
I'll add this as an example to the documentation (if it works ...)
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by Lokonli »

Wait, i've to check the usage of the subblock 413_1
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by madradrakie »

i have tried your solution but not working yet unfortunately.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by Lokonli »

First I had to do some checks, but everything seems to be fine, assuming you have updated to latest beta.
You just want to change the icon of subblock 413_1. You can do it as follows:

Code: Select all

 function getStatus_413_1(block) {
     var usage = block.device.Usage;
     if (parseFloat(usage) > 0) {
         block.icon = 'fas fa-sun slow-spin'
     } else {
         block.icon = 'fas fa-sun';
     }
 }
 
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 V3.4.2 beta

Post by EdwinK »

After getting the latest beta yesterday, I'm getting this message:
Screen Shot 2020-04-11 at 08.56.22.png
Screen Shot 2020-04-11 at 08.56.22.png (27.51 KiB) Viewed 900 times
(should have been in topic for 3.4.3)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz V3.4.2 beta

Post by Lokonli »

EdwinK wrote: Saturday 11 April 2020 9:02 After getting the latest beta yesterday, I'm getting this message:

Screen Shot 2020-04-11 at 08.56.22.png

(should have been in topic for 3.4.3)
Check:
https://www.domoticz.com/forum/viewtopi ... 45#p243203
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest