Page 1 of 1

fas fa icon problem

Posted: Friday 05 July 2019 21:03
by dagger38
Hi,
In the dashticz V2 i got 2 sets of 3 buttons.
The first is from solaredge panels , the second a fibaro wall plug that is plugged on my waterboiler.
From the Kwh meter of the 2 , i get 3 buttons a piece in dashticz (this is automatic set) :
Kwh meter now
Kwh meter today
Kwh meter total

All 6 have a 'FAS FA-FIRE' icon set without that i set these icons in config.js!

Question:
Where or how can i set a different icon??

Thanks

Re: fas fa icon problem

Posted: Saturday 06 July 2019 15:51
by HansieNL
Some icons a pre defined. Can you try:

Code: Select all

blocks['IDX_1'] = {}
   blocks['IDX_1']['icon'] = 'fas fa-allergies';

Re: fas fa icon problem

Posted: Saturday 06 July 2019 17:48
by dagger38
I had allready tried :

blocks['64'] = {}
blocks['64']['title'] = 'Zonnepanelen';
blocks['64']['icon'] = 'fas fa-sun';
blocks['64']['width'] = 4;

But the fas fa-fire icon stays at the button...

Re: fas fa icon problem

Posted: Thursday 18 July 2019 16:00
by Lokonli
dagger38 wrote: Saturday 06 July 2019 17:48 I had allready tried :

blocks['64'] = {}
blocks['64']['title'] = 'Zonnepanelen';
blocks['64']['icon'] = 'fas fa-sun';
blocks['64']['width'] = 4;

But the fas fa-fire icon stays at the button...
Add the following lines to change the icons for the three blocks:

Code: Select all


blocks['64_1'] = {
    icon: 'fas fa-sun'
}

blocks['64_2'] = {
    icon: 'fas fa-car'
}

blocks['64_3'] = {
    icon: 'fas fa-train'
}