Page 1 of 1
Dashticz fresh install
Posted: Sunday 20 December 2020 12:45
by DomoVince
I try to install Dashticz from docker hub with the dock provided by mrmadalex :
https://registry.hub.docker.com/r/mrmad ... shticz_v3/
I have followed the standard installation steps by copy CONFIG_DEFAULT.js to CONFIG.js and change _HOST_DOMOTICZ by adress:port of my domoticz installation.
The application still display a page with a
Error in custom/CONFIG.js message.
javascript console specify an error generated after an test
typeof config == 'undefined'.
The journal of the dock that display web server logs only specifies web transaction are preformed without errors (code http 200).
Where in can find error about the problem in my configuration file ?
Another question, I don't see any variable to configure password of the domoticz instance, does Dashticz ask it at the first configuration ?
Could you help me ?
Regards,
Vincent
Re: Dashticz fresh install
Posted: Sunday 20 December 2020 13:03
by madpatrick
Post your config.js.
This makes it easier to troubleshoot
Re: Dashticz fresh install
Posted: Sunday 20 December 2020 13:55
by DomoVince
var _LANGUAGE = 'fr_FR'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ = '
http://192.168.100.5:8081';
var _USE_AUTO_POSITIONING = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = true; //only used when using auto positioning
Nothing very special ...
Re: Dashticz fresh install
Posted: Sunday 20 December 2020 14:03
by madpatrick
Your config.js should like this
Code: Select all
var config = {}
config['domoticz_ip'] = 'http://192.168.1.3:8084';
config['app_title'] = 'Dashticz V3';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
I see at you config
Code: Select all
var _HOST_DOMOTICZ = 'http://192.168.100.5:8081';
instead of
Code: Select all
config['domoticz_ip'] = 'http://192.168.100.5:8081';
Looks like your are changing
custom_2/config.js instead of
custom/config.js
Maybe that is the problem
Re: Dashticz fresh install
Posted: Sunday 20 December 2020 16:13
by DomoVince
Hi,
My config file seem to be well reconize now.
I've found the right configuration help page :
https://dashticz.readthedocs.io/en/mast ... parameters
I will looking for the parameter that still missing in the configuation file.
Thank you for the help.
regards,
Vincent
Re: Dashticz fresh install
Posted: Sunday 20 December 2020 18:28
by DomoVince
Hi all,
I made a lot of progress, I can load all of my devices in the dashboard, but I have still a problem of refresh of the widgets.
The issue seem to come from the websocket that dashticz cannot open with domoticz, I found this issue in the console :
js/domoticz-api.js:169 WebSocket connection to 'ws://192.168.100.5:8081/json' failed: HTTP Authentication failed; no valid credentials available
The websocket seem to working well on my version of domoticz 2020.2.
Do you have a idea about what couldn't work ?
Vincent
Re: Dashticz fresh install
Posted: Monday 21 December 2020 15:23
by erem
did you put the correct setting in
setup-settings-local networks
should be something like 192.168.100.*;127.0.0.*
Re: Dashticz fresh install
Posted: Wednesday 23 December 2020 3:09
by DomoVince
Hello,
Like my installation is based on docks, I think it will not works if I need to specify a local network to avoid authentification on domoticz.
I have compared the usage of websocket done by Dashticz compare to the one use by Dasticz :
- Dasticz resend authentification (login + Password) for every call to domoticz.
- Domoticz open the websocket with a DMZSID cookie obtains from a previous sucessfull authentification.
I think the second one is a more clean way of manage the authentification.
I not a specialist of javascript to visualize what have to be changed in the code to integrate this feature, I will add a request to the git hub repository.
Re: Dashticz fresh install
Posted: Wednesday 23 December 2020 9:55
by Lokonli
DomoVince wrote: ↑Wednesday 23 December 2020 3:09
Hello,
Like my installation is based on docks, I think it will not works if I need to specify a local network to avoid authentification on domoticz.
With docks you mean docker? Dashticz then indeed uses a webserver running in the docker container. That mechanism is also used in the automatic installation script.
For the connection to Domoticz that doesn't matter: Dashticz runs in the browser, meaning a connection will be created from the Dashticz browser to the Domoticz server.
I think your setup should work as well. Did you activate 'basic auth' in Domoticz? (Domoticz -> Settings -> Website protection)
And did you add the IP adres of your browser to the whitelist setting in Domoticz? (Domoticz -> Settings -> Local Network)