A few advice needed to improve my dash plz ;-)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

A few advice needed to improve my dash plz ;-)

Post by TroisSix »

Hi guys,

After a long period to read the very complete tutorial and read you all, thank's a lot to the devs for their work! 8-)
I present you my board on my iPad 2, mounted on the wall with a support 3d printed ;)
my board on my iPad 2, mounted on the wall with a support 3d printed
my board on my iPad 2, mounted on the wall with a support 3d printed
MyDashticz on the wall (for forum).jpg (378.18 KiB) Viewed 2521 times
I use "Kiosk Browser for iPad" (better than a "shortcut of the dashticz page on the home page" which displays a useless bar with the battery)

But I still have a few questions that I summarized here: :)

:mrgreen: Problem solved: :mrgreen:
4. long loading of device temp: I don't know why, but I have a device temperature (only temp) which takes a lot more time than the others (temp+hum): what could be the reason? :arrow: I recreated the device in Domoticz cause it was buggy, now working.
7. hide a device? for some actions in my custom.js, I need a device to be displayed on the dashboard to be able to change another device, can we hide a device in the page? :arrow: with the 1.3.6 beta, a css class to hide the button is now working with the functions in custom.js
8. calendar: my google agenda is quite big (1.7MB) and takes a long time to be displayed (10secs), I created a script to get it every 10 minutes, and I call it with 'http://127.0.0.1/dashticz/ical/agenda_personal.ics' really faster, can i use something like 'dashticz/ical/agenda_personal.ics' instead of an url? I dont' find the good path :arrow: I confirm the path /home/pi/dashticz/ical/agenda_personal.ics is now working with the 1.3.6 beta. That may take some time for big ics files, especially when we have a lot of recurring events.
10. garbage: what is the role of the garbage, sorry I couldn't find what it is used for :p :arrow: garbage = garbage with the pickup dates
12. logs: are there some logs for Dashticz somewhere? :arrow: in DevTools, or make log
errors: I have a few errors with the dev tool, see the screenshot, what is wrong in my config? :arrow: just warnings
A few errors in DevTools of Firefox
A few errors in DevTools of Firefox
Few errors.png (20.02 KiB) Viewed 2521 times

:?: Points to test again on my side: :oops: :?:
3. secure dashticz: how could I secure my connexion to Domoticz + Dashticz? each time I try to use the https for Domoticz (in basic-auth), it works with my firefox on my pc (thanks to cookies I presume?) but it's never working with Safari with my iPad, what is the best way to do it?

:?: Points waiting for advice: :?:
1. auto exit of browser: after a while Kiosk Browser exits alone (same behaviour with safari as a shortcut on the home page): what could be the reason? ==> the config parameter 'dashticz_refresh' with a high value (100000) isn't the trick
9. slow on iPad 2? are there some users using an iPad 2, is it also slow? or quite fast? perhaps something in my config is bad?
11. domoticz logs: when my dashticz is connected, it displays a lot of lines like "Incoming connection from 192.168.x.x" where x.x is my tablet (or my pc) How could I remove this kind of line "Incoming connection from"? see my thread viewtopic.php?f=67&t=35734&p=270385#p270385 ==> could it be possible to point another log file?

:roll: Points waiting for some checks on your side / points waiting for some improvments: :roll:
2. sleep screen: to get out of the sleep screen, if I clic anywhere on the screen, it activates the button where I clicked... How can we protect this? see my thread viewtopic.php?f=77&t=35776&p=270740#p270740
5. cameras: is it be possible to specify the dimensions width+height only in the configuration of the screen? instead of each device? see a more complete explanation viewtopic.php?f=67&t=31607&p=270548#p270548
6. cameras: is it be possible to exclude some cameras from the carousel previews?


Versions: Domoticz 2020.2 and Dashticz beta 3.7.5
See my config.js in attached file, and custom.js below (the forum refuses to attach it...)
Spoiler: show
//add custom javascript in here
// https://dashticz.readthedocs.io/en/mast ... -idx-block
// https://dashticz.readthedocs.io/en/mast ... ther-block

function afterGetDevices(){


}

function getExtendedBlockTypes(blocktypes){
//blocktypes.Type['Lighting 2'] = { icon: 'fa fa-lightbulb-o', title: '<Name>', value: 'ds' }
return blocktypes;
}

/* Porte_garage avec la Lumiere_Garage_Ouvert: working with Closed/Open and Off/On */
function getStatus_PorteGarage(block){
var idx = block.idx;
var device = block.device;
if(device['Data']!="Off") { /* Porte garage ouverte = red */
$(block.mountPoint + ' > div').css('color', '#f74d4a'); /* red */
} else {
$(block.mountPoint + ' > div').css('color', 'white') /* white */
}
}
function getStatus_PorteGarageBis(block){
var idx = block.idx;
var device = block.device;
if(device['Data']!="Off") { /* Porte garage ouverte = red */
$(block.mountPoint + ' > div').css('color', '#f74d4a'); /* red */
} else {
$(block.mountPoint + ' > div').css('color', 'white'); /* white */
}
}

/* Cams_RDC et Auto_Cameras : working */
function getStatus_Cams_RDC(block){
var idx = block.idx;
var device = block.device;
if(device['Data']=="Off") { /* caméras retournées = red */
$(block.mountPoint + ' > div').css('color', '#f74d4a'); /* red */
} else {
$(block.mountPoint + ' > div').css('color', 'white'); /* white */
}
}
function getStatus_Auto_Cameras(block){
var idx = block.idx;
var device = block.device;
if(device['Data']=="Off") { /* mode manuel = red */
$(block.mountPoint + ' > div').css('color', '#f74d4a'); /* red */
} else {
$(block.mountPoint + ' > div').css('color', '#7bf542'); /* green */
}
}

/* Auto ouverture/fermeture des volets : working */
function getStatus_Auto_Volets(block){
var idx = block.idx;
var device = block.device;
if(device['Data']=="On") { /* mode auto = green */
$(block.mountPoint + ' > div').css('color', '#7bf542'); /* green */
} else {
$(block.mountPoint + ' > div').css('color', 'white'); /* white */
}
}


/* Volet Room1 : working */
/* */
function getStatus_VoletRoom1Int(block){
/*var idx = block.idx;*/
var device = block.device;
/*console.log(device.Data);*/
if(parseFloat(device['Value'])==0) { /* ouvert */
Dashticz.setBlock('VoletRoom1', { textOn: 'ouvert', imageOn: 'perso/velux_ouvert.png' });
} else if( parseFloat(device['Value'])>=99 ) { /* fermé */
Dashticz.setBlock('VoletRoom1', { textOff: 'fermé', imageOff: 'perso/velux_ferme.png' });
} else if( parseFloat(device['Value'])==90 ) { /* position sieste: fermé à 90%*/
Dashticz.setBlock('VoletRoom1', { textOff: 'sieste', imageOff: 'perso/velux_p_sieste.png' });
} else if( parseFloat(device['Value'])>=50 ) { /* partiellement fermé */
Dashticz.setBlock('VoletRoom1', { textOff: 'p.fermé ' + device['Value'] + '%', imageOff: 'perso/velux_p_ferme.png' });
} else if( parseFloat(device['Value'])<50 ) { /* partiellement ouvert */
Dashticz.setBlock('VoletRoom1', { textOn: 'p.ouvert ' + device['Value'] + '%', imageOn: 'perso/velux_p_ouvert.png' });
}
}


/*
Code working:
Dashticz.setBlock('VoletRoom1', {title: 'Room1'});

To test:
$('div[data-id="mytitle"] .dt_title').html('level 0')
*/
Thank you for those who will be able to help me for one or several points ;-)

BR
Attachments
CONFIG.js
CONFIG.js
(18.74 KiB) Downloaded 267 times
Last edited by TroisSix on Friday 19 March 2021 19:19, edited 5 times in total.
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by Lokonli »

Thanks for the questions! Useful for others as well. I'll try to answer them.
TroisSix wrote: Thursday 18 March 2021 13:50 But I still have a few questions that I summarized here: :)
1. auto exit of browser: after a while Kiosk Browser exits alone (same behaviour with safari as a shortcut on the home page): what could be the reason?
Maybe it's related to the Dashticz refresh. Can you set the config parameter 'dashticz_refresh' to a high value (100000) and retest?
2. sleep screen: to get out of the sleep screen, if I clic anywhere on the screen, it activates the button where I clicked... How can we protect this? see my thread viewtopic.php?f=77&t=35776&p=270740#p270740
There were some issues in the past with this as well. I'll check.
3. secure dashticz: how could I secure my connexion to Domoticz + Dashticz? each time I try to use the https for Domoticz (in basic-auth), it works with my firefox on my pc (thanks to cookies I presume?) but it's never working with Safari with my iPad, what is the best way to do it?
Outside your LAN you should use VPN.
Inside your LAN it's not really an issue.


4. long loading of device temp: I don't know why, but I have a device temperature (only temp) which takes a lot more time than the others (temp+hum): what could be the reason?
Is it a normal block, a dial or a graph?

How is the block defined?


5. cameras: is it be possible to specify the dimensions width+height only in the configuration of the screen? instead of each device? see a more complete explanation viewtopic.php?f=67&t=31607&p=270548#p270548
6. cameras: is it be possible to exclude some cameras from the carousel previews?
I started to collect the camera related remarks. They probably will be addressed in the next update.

7. hide a device? for some actions in my custom.js, I need a device to be displayed on the dashboard to be able to change another device, can we hide a device in the page?
With the new device hook function you probably don't have to add unused devices anymore. See:
https://dashticz.readthedocs.io/en/beta ... devicehook

Please start a new topic if you need some help on this.

You can hide a block by adding the following to custom.css:

Code: Select all

div[data-id='myblock'] {
  display: none
}

8. calendar: my google agenda is quite big (1.7MB) and takes a long time to be displayed (10secs), I created a script to get it every 10 minutes, and I call it with 'http://127.0.0.1/dashticz/ical/agenda_personal.ics' really faster, can i use something like 'dashticz/ical/agenda_personal.ics' instead of an url? I dont' find the good path
You can load a local ics file as well. (there was a bug that a fixed today, I think).

Probably most easy to use an absolute path.
If you used manual install (no docker) then that probably is something like:

/home/pi/dashticz/ical/agenda_personal.ics

If you use the automatic install, it's a bit different. You are working inside a docker container. The dashticz folder is mounted on /var/www/html
So, in case of automatic install the path probably is:

/var/www/html/dashticz/ical/agenda_personal.ics
9. slow on iPad 2? are there some users using an iPad 2, is it also slow? or quite fast? perhaps something in my config is bad?
10. garbage: what is the role of the garbage, sorry I couldn't find what it is used for :p
Mainly Dutch, Belgium, and one German city.
Trash collection dates.
If you also have a trash collection calendar for your town, I can try to add it as well
11. domoticz logs: when my dashticz is connected, it displays a lot of lines like "Incoming connection from 192.168.x.x" where x.x is my tablet (or my pc) How could I remove this kind of line "Incoming connection from"? see my thread viewtopic.php?f=67&t=35734&p=270385#p270385
12. logs: are there some logs for Dashticz somewhere?
In DevTools :)

I started to add some debug functionality (preliminary). Click on the Dashticz title for an example.

If you used autoinstall you can display the Dashticz server logs with the following command:

Code: Select all

make logs

errors: I have a few errors with the dev tool, see the screenshot, what is wrong in my config?
Few errors.png
Not really an issue. Your system tries to interprete the .tpl files as .xml files, but that doesn't work. You have this on firefox?

Versions: Domoticz 2020.2 and Dashticz beta 3.7.5
See my config.js in attached file, and custom.js below (the forum refuses to attach it...)


Thank you for those who will be able to help me for one or several points ;-)

BR
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by TroisSix »

@Lokonli So great, thanks a lot for having taken all my points, I really appreciate your work and the time to help / improve 8-)

I will have to make a few modifications now lol
Answer to your questions:
3. https: yes I have an issue in my LAN, only with Safari
4. long loading of a device temp: yes it is a simple block:

Code: Select all

blocks['Temp_Mezza'] = { idx: XXX, title: 'Mezza', image : 'perso/billard-icon.png', last_update: false, width: 4 }
7. hide: I already did that, but the custom.js cannot consider my block if it is hidden :roll:
9. ipad 2 slow? perhaps you missed this one? :P
10. garbage I will try to read some documentation about trash collection calendar cause I'm not sure what this is about: some local news of a town?
11. domoticz logs: perhaps you missed that one too :P

Thank you so much ;)
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by HansieNL »

10. garbage This shows icon and date for trash pickup dates.
4. For your temp device, have you tried to create a minimal Dashticz config.js with only that block to see if loading is faster?
Blah blah blah
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by TroisSix »

@HansieNL,
I get it now with your explanation, it's simple: garbage is garbage... I was thinking about a garbage collector a bit more complicated :lol:
Ok, I'll try for the 4.
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by TroisSix »

@HansieNL @Lokonli

I updated to the 3.7.6 beta, and it resolved some points ;-)

Points resolved:
4. long loading of device temp: I tried a new config with only 2 devices temp, and it was still slow. I recreated this buggy temp device, then it was as fast as the others, weird it was buggy between domoticz and dashticz?
7. hide a device: with the 1.3.6 beta, a css class to hide the button is now working with the functions in custom.js
8. calendar: I confirm the path /home/pi/dashticz/ical/agenda_personal.ics is now working with the 1.3.6 beta. But on my side it still takes a few sec to be displayed :(

Points to test again on my side:
1. auto exit of browser: i put it to 100000
3. secure dashticz

Points waiting for advice:
8. calendar: I confirm the path /home/pi/dashticz/ical/agenda_personal.ics is now working with the 1.3.6 beta. But on my side it still takes a few sec to be displayed :(
9. slow on iPad 2?
11. domoticz logs: how can I filter the displayed logs?

Points waiting for some checks on your side / points waiting for some improvments:
2. sleep screen
5. 6. cameras: if you want more details, either see my thread about it, or I can explain again

PS: first post updated.
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by Lokonli »

TroisSix wrote: Friday 19 March 2021 11:40 @HansieNL @Lokonli

I updated to the 3.7.6 beta, and it resolved some points ;-)

Points resolved:
4. long loading of device temp: I tried a new config with only 2 devices temp, and it was still slow. I recreated this buggy temp device, then it was as fast as the others, weird it was buggy between domoticz and dashticz?
7. hide a device: with the 1.3.6 beta, a css class to hide the button is now working with the functions in custom.js
8. calendar: I confirm the path /home/pi/dashticz/ical/agenda_personal.ics is now working with the 1.3.6 beta. But on my side it still takes a few sec to be displayed :(

Points to test again on my side:
1. auto exit of browser: i put it to 100000
3. secure dashticz

Points waiting for advice:
8. calendar: I confirm the path /home/pi/dashticz/ical/agenda_personal.ics is now working with the 1.3.6 beta. But on my side it still takes a few sec to be displayed :(
9. slow on iPad 2?
11. domoticz logs: how can I filter the displayed logs?

Points waiting for some checks on your side / points waiting for some improvments:
2. sleep screen
5. 6. cameras: if you want more details, either see my thread about it, or I can explain again

PS: first post updated.
4:
Probably your temp device was not used in Domoticz, or no favorite, then Dashticz doesn't receive the device info at startup, but only after a first update.

8. Dashticz has to filter all you calendar items. That may take some time for big ics files, especially when you have a lot of recurring events.
11. Not yet.
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by TroisSix »

Ok.
Just tested this one:
1. auto exit of browser: i put it to 100000, but it still exit either from "afari as an app" or via "Kiosk Browser for iPad" :shock:

Other point:
11. For the logs: could it be possible to be able to select the log file we want? as an improvement? :P
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by TroisSix »

Hi Sander, or the team of devs,

Would you have some time to help me for the last points waiting for an help plz ? :-)

- touch on sleep screen activates the button behind
- auto exit of browser (ipad 2)
- secure my domoticz (https not working on my ipad)
- could be useful to filter the logs displayed

Dashticz is really powerful, I like it :)
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by Lokonli »

TroisSix wrote: Saturday 10 April 2021 14:40 Hi Sander, or the team of devs,

Would you have some time to help me for the last points waiting for an help plz ? :-)

- touch on sleep screen activates the button behind
- auto exit of browser (ipad 2)
- secure my domoticz (https not working on my ipad)
- could be useful to filter the logs displayed

Dashticz is really powerful, I like it :)
1) For the first point there were some fixes in the past. I'll double check what happened with those. You see this only on iPad?

2) I can't reproduce the auto exit on iPad 2. My iPad 2 is stable. I'll try to add more logging.

3) Security
Advice: Outside your LAN use VPN

What do you try to secure? Can you describe your system setup?

4) You mean this log?:
https://dashticz.readthedocs.io/en/mast ... czlog.html

You would like to filter on any text in the message, like you can do in the Domoticz log?
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by Lokonli »

I can reproduce the first issue. Indeed, click events in the standby screen also land in the main screen. Only in full screen mode, only on iOs,

I'll look for a fix.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by Lokonli »

TroisSix wrote: Saturday 10 April 2021 14:40 Hi Sander, or the team of devs,

Would you have some time to help me for the last points waiting for an help plz ? :-)

- touch on sleep screen activates the button behind
This has been fixed in latest beta. Can you test?
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by TroisSix »

Hi,
Great, I will update to the latest beta 3.8.1 and keep you informed ;)

For the other points:
2. which app are you using for a fullscreen on your ipad 2?
3. just wanted to secure my access :)
4. yes, I would like to have some filter to include or exclude (example of exlusion: if a line contains a term like "user triggered", I don't want it to be displayed), do you think it could be possible? Could be useful to display different logs in different blocks: block with errors, block for specific devies, ... :)
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by Lokonli »

2.
In Safari I just send the link to the start screen (via the 'upload' button, then '+' to add to start screen)

4)
It is possible, but for me not very important. Feel free to clone the Dashticz repository, make the changes, and create a PR. If needed. I can help with that. It's fun :)
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: A few advice needed to improve my dash plz ;-)

Post by TroisSix »

2. I get it, but I don't want to view the bar with the battery on the top, so the shortcut as an app, isn't using the whole screen. But I remember I also got the bugs with your method. Which version of IOS do you have?
4. Let's get a try, you can pm me or send an email, and I'll look for it ;-)
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest