Dashticz fresh install
Moderators: leecollings, htilburgs, robgeerts
Dashticz fresh install
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
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
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: Dashticz fresh install
Post your config.js.
This makes it easier to troubleshoot
This makes it easier to troubleshoot
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
Re: Dashticz fresh install
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 ...
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 ...
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: Dashticz fresh install
Your config.js should like this
I see at you config
instead of
Looks like your are changing custom_2/config.js instead of custom/config.js
Maybe that is the problem
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';
Code: Select all
config['domoticz_ip'] = 'http://192.168.100.5:8081';
Maybe that is the problem
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
Re: Dashticz fresh install
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
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
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
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
- erem
- Posts: 230
- Joined: Tuesday 27 March 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Amsterdam/netherlands
- Contact:
Re: Dashticz fresh install
did you put the correct setting in
setup-settings-local networks
should be something like 192.168.100.*;127.0.0.*
setup-settings-local networks
should be something like 192.168.100.*;127.0.0.*
Regards,
Rob
Rob
Re: Dashticz fresh install
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.
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.
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz fresh install
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)
Who is online
Users browsing this forum: No registered users and 1 guest