I wanted to use an icon on awesome font, but i see it's an icon made in version 5.5. Somewhere I saw 5.0.13 is supported in dashticz. Any idea awesome font will be updated to the latest version ?

Moderators: leecollings, htilburgs, robgeerts
Did some adjustments in "main.js" ...
Code: Select all
$('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550);
Code: Select all
function triggerChange(idx, value, device) {
if (typeof(oldstates[idx]) !== 'undefined' && value !== oldstates[idx]) {
//disableStandby();
try {
eval('getChange_' + idx + '(idx,value,device)');
}
catch (err) {
}
if (typeof(blocks[idx]) !== 'undefined' && blocks[idx]['flash'] === false) {
} else {
$('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550);
}[code]
Code: Select all
if (typeof(blocks[idx]) !== 'undefined' && blocks[idx]['flash'] === false) {
} else {
$('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550);
}
Code: Select all
blocks[69] = {title:'PIR', flash:false};
I've created the PR and it will be part of beta 2.5.3.Minglarn wrote: ↑Saturday 29 December 2018 10:00Did some adjustments in "main.js" ...
At line: 668 I added:Hard to show the result... but it's better than nothing.Code: Select all
$('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550);
Skärmklipp2.JPG
So the new function adds an "flash" effect to the idx when it updates...
Now I have to figure out how to use a setting when I don't want it to flash... Any help someone?
EDIT:
Nailed it...
In main.js i've added:WhereCode: Select all
function triggerChange(idx, value, device) { if (typeof(oldstates[idx]) !== 'undefined' && value !== oldstates[idx]) { //disableStandby(); try { eval('getChange_' + idx + '(idx,value,device)'); } catch (err) { } if (typeof(blocks[idx]) !== 'undefined' && blocks[idx]['flash'] === false) { } else { $('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550); }[code]
is the added code.Code: Select all
if (typeof(blocks[idx]) !== 'undefined' && blocks[idx]['flash'] === false) { } else { $('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550); }
This makes my block flash...
If I dont want any flash I add:Code: Select all
blocks[69] = {title:'PIR', flash:false};
Hope this will get implemented..![]()
That should work. Some code has to be added in settings.js to make the config setting available in the config menu, and to copy config['blink_color'] to settings['blink_color']HansieNL wrote: ↑Saturday 26 January 2019 2:09 @Lokonli : Is it maybe an option to set your own blink color. For example: config['blink_color'] = '255, 0, 0, 0.7';
Then we can also add the option to the config menu.
I'm trying to use the setting in main.js, but I think I'm missing something:
var flash_color = settings['blink_color'];
$('div.block_'+idx).animate({'background-color': 'rgba( flash_color )'}, flash_value).animate({'background-color': cur_bc},flash_value);
Maybe someone can tell me how to get this setting working.
@Lokonli: Thanks for your help. Files to set your flash color in screen settings menu uploaded to GitHub.
Workaround:silver323 wrote: ↑Tuesday 26 February 2019 13:24 Maybe someone can help with the following.
I want a popup screen when the doorbell is pushing.
But what have I need do display text in a popup instead of a URL?
blocks[IDX]['openpopupOn'] = {}
blocks[IDX]['openpopupOn']['????'] = 'Someone at the door!';
blocks[IDX]['openpopupOn']['auto_close'] = 5; //seconds
Code: Select all
<center><font size="5" color="red">'Someone at the door!'</font>
Code: Select all
blocks[IDX]['openpopupOn'] = { url: './door.html', auto_close : 500, frameheight:200};
Thanks for the workaround. Will test it!Lokonli wrote: ↑Tuesday 26 February 2019 19:45Workaround:silver323 wrote: ↑Tuesday 26 February 2019 13:24 Maybe someone can help with the following.
I want a popup screen when the doorbell is pushing.
But what have I need do display text in a popup instead of a URL?
blocks[IDX]['openpopupOn'] = {}
blocks[IDX]['openpopupOn']['????'] = 'Someone at the door!';
blocks[IDX]['openpopupOn']['auto_close'] = 5; //seconds
Save a file named door.html with the following content in your Dashticz folder:Then define the openpopupOn as follows:Code: Select all
<center><font size="5" color="red">'Someone at the door!'</font>
Code: Select all
blocks[IDX]['openpopupOn'] = { url: './door.html', auto_close : 500, frameheight:200};
Code: Select all
blocks[IDX]['openpopupOn'] to [code]blocks[IDX]['openpopup'] without the on and it works!
I've created the PR. The new beta will use FontAwesome 5.7.2.
Code: Select all
blocks[IDX]['confirmation']=1
I second that. Maybe something like [blocks] 1,2,4,6,[width] = 6'; or something like this.stlaha2007 wrote: ↑Monday 18 March 2019 10:15 Hi all,
Searched several ways but couldn't find an answer.
Instead of adding block[idx][width] = 6; to all my blocks.
Is there a setting for the default block size. Or is it possible to add this in the config, so it keeps the config.js a lot cleaner?
Regards Stephan
Code: Select all
case 'Temp + Baro':
Code: Select all
case 'Temp + Baro':
Code: Select all
case 'Temp + Baro':
Code: Select all
case 'Temp + Baro':
Users browsing this forum: No registered users and 0 guests