fas fa icon problem

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
dagger38
Posts: 40
Joined: Wednesday 01 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Belgium Achel
Contact:

fas fa icon problem

Post 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
My system:
1 Raspberry Pi 3
1 Rfx-Trx 433 module
1 Milight module
1 aeotec Zwave stick
1 Philips Home Bridge
3 Qubino ZMNHBDx Flush 2 Relays
2 FIBARO System FGS223 Double Relay
1 Niko home system
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: fas fa icon problem

Post by HansieNL »

Some icons a pre defined. Can you try:

Code: Select all

blocks['IDX_1'] = {}
   blocks['IDX_1']['icon'] = 'fas fa-allergies';
Blah blah blah
dagger38
Posts: 40
Joined: Wednesday 01 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Belgium Achel
Contact:

Re: fas fa icon problem

Post 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...
My system:
1 Raspberry Pi 3
1 Rfx-Trx 433 module
1 Milight module
1 aeotec Zwave stick
1 Philips Home Bridge
3 Qubino ZMNHBDx Flush 2 Relays
2 FIBARO System FGS223 Double Relay
1 Niko home system
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: fas fa icon problem

Post 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'
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest