Dashticz fresh install

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
DomoVince
Posts: 7
Joined: Sunday 20 December 2020 12:29
Target OS: -
Domoticz version:
Contact:

Dashticz fresh install

Post 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
User avatar
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 by madpatrick »

Post your config.js.
This makes it easier to troubleshoot
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
DomoVince
Posts: 7
Joined: Sunday 20 December 2020 12:29
Target OS: -
Domoticz version:
Contact:

Re: Dashticz fresh install

Post 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 ...
User avatar
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 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
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
DomoVince
Posts: 7
Joined: Sunday 20 December 2020 12:29
Target OS: -
Domoticz version:
Contact:

Re: Dashticz fresh install

Post 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
DomoVince
Posts: 7
Joined: Sunday 20 December 2020 12:29
Target OS: -
Domoticz version:
Contact:

Re: Dashticz fresh install

Post 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
User avatar
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

Post by erem »

did you put the correct setting in
setup-settings-local networks
should be something like 192.168.100.*;127.0.0.*
Regards,

Rob
DomoVince
Posts: 7
Joined: Sunday 20 December 2020 12:29
Target OS: -
Domoticz version:
Contact:

Re: Dashticz fresh install

Post 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.
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz fresh install

Post 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)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest