Page 3 of 3

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 9:57
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

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 10:11
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.

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 11:29
by florisi
ok, thanks. I'll wait for the fix and I will test it.

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 17:14
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?

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 17:51
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
}

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 18:02
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)

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 18:18
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.

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 18:45
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

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 19:49
by florisi
Thanks, changed the url.

Re: Dashticz V3.4.2 beta

Posted: Tuesday 07 April 2020 23:04
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 :)

Re: Dashticz V3.4.2 beta

Posted: Wednesday 08 April 2020 18:28
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];

Re: Dashticz V3.4.2 beta

Posted: Thursday 09 April 2020 10:35
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'
	});
   }
}

Re: Dashticz V3.4.2 beta

Posted: Thursday 09 April 2020 10:52
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 ...)

Re: Dashticz V3.4.2 beta

Posted: Thursday 09 April 2020 10:54
by Lokonli
Wait, i've to check the usage of the subblock 413_1

Re: Dashticz V3.4.2 beta

Posted: Friday 10 April 2020 8:11
by madradrakie
i have tried your solution but not working yet unfortunately.

Re: Dashticz V3.4.2 beta

Posted: Friday 10 April 2020 17:05
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';
     }
 }
 

Re: Dashticz V3.4.2 beta

Posted: Saturday 11 April 2020 9:02
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 1029 times
(should have been in topic for 3.4.3)

Re: Dashticz V3.4.2 beta

Posted: Saturday 11 April 2020 9:19
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