Page 17 of 20
Re: Dashticz - Feature Requests
Posted: Monday 17 December 2018 16:53
by Vomera
Hi!
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 ?

or can i update it by my self ?
Re: Dashticz - Feature Requests
Posted: Thursday 20 December 2018 7:04
by tileiran
support of RTSP would be awesome, I have big problems with the image-based webcam possibilities at the moment.
Re: Dashticz - Feature Requests
Posted: Tuesday 25 December 2018 16:30
by Minglarn
Flash the sensor when it receives update.
Same as the built in Domoticz.
Edit: Strange... The Attachments does not work ...

Re: Dashticz - Feature Requests
Posted: Saturday 29 December 2018 10:00
by Minglarn
Minglarn wrote: ↑Tuesday 25 December 2018 16:30
Flash the sensor when it receives update.
Same as the built in Domoticz.
Edit: Strange... The Attachments does not work ...
Did some adjustments in "main.js" ...
At line: 668 I added:
Code: Select all
$('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550);
Hard to show the result... but it's better than nothing.

- Skärmklipp2.JPG (13.8 KiB) Viewed 5705 times
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:
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]
Where
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);
}
is the added code.
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..

Re: Dashticz - Feature Requests
Posted: Friday 25 January 2019 20:29
by Lokonli
Minglarn wrote: ↑Saturday 29 December 2018 10:00
Minglarn wrote: ↑Tuesday 25 December 2018 16:30
Flash the sensor when it receives update.
Same as the built in Domoticz.
Edit: Strange... The Attachments does not work ...
Did some adjustments in "main.js" ...
At line: 668 I added:
Code: Select all
$('div.block_'+idx).animate({'background-color': 'rgba(255, 255, 255, 1)'},550).animate({'background-color': 'rgba(90, 90, 90, 1)'},550);
Hard to show the result... but it's better than nothing.

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:
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]
Where
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);
}
is the added code.
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..
I've created the PR and it will be part of beta 2.5.3.
Small change: the flash parameter determines the duration of the animation (msec). By default flash is off.
Re: Dashticz - Feature Requests
Posted: Saturday 26 January 2019 2:09
by HansieNL
@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.
Re: Dashticz - Feature Requests
Posted: Sunday 27 January 2019 20:51
by Lokonli
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.
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']
Something for the next beta.
Re: Dashticz - Feature Requests
Posted: Monday 28 January 2019 0:34
by HansieNL
Lokonli wrote: ↑Sunday 27 January 2019 20:51
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']
@Lokonli: Thanks for your help. Files to set your flash color in screen settings menu uploaded to GitHub.
Re: Dashticz - Feature Requests
Posted: Tuesday 26 February 2019 13:24
by silver323
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
Re: Dashticz - Feature Requests
Posted: Tuesday 26 February 2019 19:45
by Lokonli
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
Workaround:
Save a file named door.html with the following content in your Dashticz folder:
Code: Select all
<center><font size="5" color="red">'Someone at the door!'</font>
Then define the openpopupOn as follows:
Code: Select all
blocks[IDX]['openpopupOn'] = { url: './door.html', auto_close : 500, frameheight:200};
Re: Dashticz - Feature Requests
Posted: Wednesday 27 February 2019 8:24
by silver323
Lokonli wrote: ↑Tuesday 26 February 2019 19:45
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
Workaround:
Save a file named door.html with the following content in your Dashticz folder:
Code: Select all
<center><font size="5" color="red">'Someone at the door!'</font>
Then define the openpopupOn as follows:
Code: Select all
blocks[IDX]['openpopupOn'] = { url: './door.html', auto_close : 500, frameheight:200};
Thanks for the workaround. Will test it!
EDIT: Had to change for working
Code: Select all
blocks[IDX]['openpopupOn'] to [code]blocks[IDX]['openpopup'] without the on and it works!
Re: Dashticz - Feature Requests
Posted: Friday 01 March 2019 23:22
by Lokonli
Vomera wrote: ↑Monday 17 December 2018 16:53
Hi!
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 ?

or can i update it by my self ?
I've created the PR. The new beta will use FontAwesome 5.7.2.
Re: Dashticz - Feature Requests
Posted: Monday 11 March 2019 23:17
by robgeerts
Added the following requested feature:
Confirmation for switches, no more accidental presses.
I had this for myself too, often with some switches so decided to add this.
Available in beta 2.5.10
Re: Dashticz - Feature Requests
Posted: Tuesday 12 March 2019 8:59
by EdwinK
Since this last update, not all my blocks are shown.

Previous screen

Present screen
At first glance, it looks like the RFXcom devices are missing, but they are still active in Domoticz.
Re: Dashticz - Feature Requests
Posted: Tuesday 12 March 2019 9:42
by robgeerts
Could you check latest beta?
(Just uploaded)
Re: Dashticz - Feature Requests
Posted: Tuesday 12 March 2019 10:00
by EdwinK
Working again

Re: Dashticz - Feature Requests
Posted: Tuesday 12 March 2019 15:40
by Vomera
Lokonli wrote: ↑Friday 01 March 2019 23:22
Vomera wrote: ↑Monday 17 December 2018 16:53
Hi!
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 ?

or can i update it by my self ?
I've created the PR. The new beta will use FontAwesome 5.7.2.
Awesome !! will update now!
Re: Dashticz - Feature Requests
Posted: Monday 18 March 2019 10:15
by stlaha2007
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
Re: Dashticz - Feature Requests
Posted: Monday 18 March 2019 18:30
by EdwinK
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
I second that. Maybe something like [blocks] 1,2,4,6,[width] = 6'; or something like this.
Re: Dashticz - Feature Requests
Posted: Monday 08 April 2019 13:02
by stlaha2007
Hi devs...
Recently replaced my bmp280 with an bmp180. Unfortunately discovered the new device wasn't diplaying correctly (Turned Up as a Switch

).
However looked into the code of the master and beta branch and dicovered only devices are displayed correctly when they are temp / hum / baro(pressure) or temp + hum or temp + hum + baro.
So the device temp + baro is missing.
I updated my running Beta-branch here
In js/main.js:
Just below function getAutoAppendSelector(device) {
around line 1314:
And below switch (device['Type']) {
around line 1407:
I updated my running master-branch here
In js/main.js:
Just below function getAutoAppendSelector(device) {
around line 1248:
And below switch (device['Type']) {
around line 1340:
And now working as expected for me...
Can this be integrated in the near future ??