Can not set icon

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
RduPre
Posts: 53
Joined: Thursday 11 August 2016 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Can not set icon

Post by RduPre »

See image

I have fa-bolt icon to "huidig verbruikk" and "verbruik vandaag", but is shows the sun icon :(
In fact whatever I fill in as Icon, it does not use it and stays a sun

The config.js part is this

Code: Select all

blocks['518_1'] = {} 
blocks['518_1']['title'] = 'Huidig verbruik';
blocks['518_1']['icon'] = 'fas fa-bolt';
blocks['518_1']['width'] = 4;
blocks['518_1']['switch'] = true;
blocks['518_2'] = {} 
blocks['518_2']['title'] = 'Verbruik vandaag';
blocks['518_2']['icon'] = 'fas fa-bolt';
blocks['518_2']['width'] = 4;
blocks['518_2']['switch'] = true;
The custom.css is like this

Code: Select all

}
#newsTicker li {
font-size:20px !important;
}
.col-data span	{ font-size: 30px; margin-left: 25px; font-weight: 600; color: deepskyblue; font-variant: small-caps;}
/*.col-data .title 		{ font-size: 25px; margin-right: 25px; font-weight:220; color: dodgerblue;font-variant: small-caps;}*/

.containsicalendar {
}

.containsicalendar .items {
  font-size: 175%;
}

.publictransport div {
    font-size: 20px; 
}
   
.title { 
    font-size:20px;
    
    }
#newsTicker li {
font-size:20px !important;

Schermafbeelding 2019-09-15 om 12.05.58.png
Schermafbeelding 2019-09-15 om 12.05.58.png (57.83 KiB) Viewed 410 times
User avatar
HansieNL
Posts: 969
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Can not set icon

Post by HansieNL »

Some icons are hard coded. There's already an issue logged for that: https://github.com/Dashticz/dashticz/issues/26
Blah blah blah
RduPre
Posts: 53
Joined: Thursday 11 August 2016 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Can not set icon

Post by RduPre »

OK,

But I am pretty sure this was working on earlier releases
Lokonli
Posts: 2292
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Can not set icon

Post by Lokonli »

RduPre wrote: Sunday 15 September 2019 18:35 OK,

But I am pretty sure this was working on earlier releases
I've tested setting the icons for three type of devices:
* P1 power meter
* Climate device (temperature, humidity, pressure)
* Energy device (actual, total today)

on the beta branch and the master branch.

This all works.

What is the device type of the device for which you try to modify the icons?
Did you change something in custom.js? If yes, can you post that here as well?
What is the exact Dashticz version you are using?
There might be something wrong in your CONFIG.js. Can you post it here? Then I'll have a look.
RduPre
Posts: 53
Joined: Thursday 11 August 2016 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Can not set icon

Post by RduPre »

Hi,

You put me on the right track :-)

There was some old code in the custom.js what caused this

Thanks...
Lokonli
Posts: 2292
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Can not set icon

Post by Lokonli »

Ok, good. Thanks for the update.

Sent from my SM-A320FL using Tapatalk

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest