How to login to Dashticz

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

How to login to Dashticz

Post by peterbos »

Hi,

I installed Dashticz with via the installation script. Now I want to start it at http://192.168.1.162:8082 but all I get is a message that it won't start:

Error while requesting Domoticz version. Possible causes:
1. Domoticz offline
2. Domoticz IP incorrect in CONFIG.js
3. User credentials incorrect in CONFIG.js
4. Browser IP not whitelisted in Domoticz.

For more help visit I'm supposed to look at the Dashticz documentation but that doesn't help me.

1. Domoticz is not offline.
2. I tried config['domoticz_ip'] = 'http://192.168.1.162:8080'; and config['domoticz_ip'] = 'https://192.168.1.162:443';
3. I tried config['user_name'] = 'admin'; and config['pass_word'] = 'xxxxxxxx'; I also tried without the username and password.
4. 192.168.1.* is in my trusted networks

What am I missing?

Peter
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to login to Dashticz

Post by Lokonli »

If you have a recent Domoticz version you have to use Dashticz v3.10.1 Beta (or higher), because of the new authentication mechanism in Domoticz.

To switch to the beta branch type:

Code: Select all

git checkout beta
git pull
Further, in Domoticz you have to switch on 'Allow Basic Auth on plain HTTP' in the Domoticz settings->security tab
security tab.jpg
security tab.jpg (18.33 KiB) Viewed 597 times
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: How to login to Dashticz

Post by peterbos »

Hi,

I went to my Dashticz directory and executed "git checkout beta" and "git pull". I also switched on the API Protection. It still doesn't work, either with or without the user credentials. I also changed loginEnabled and the Domoticz IP to https://192.168.1.162:443. Nothing works. What's going wrong?

This is my actual CONFIG.js:

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://192.168.1.162:8080';      // also tried 'https://192.168.1.162:443'
config['user_name'] = 'admin';                            // also tried without user credentials
config['pass_word'] = 'XXXXX';                            // idem
config['loginEnabled'] = 'false';                         // also tried 'true'
config['language'] = 'nl_NL';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
Dashticz was downloaded according to the manual.

Peter
Renber
Posts: 41
Joined: Thursday 04 February 2021 8:10
Target OS: Linux
Domoticz version: Beta
Location: Belgium
Contact:

Re: How to login to Dashticz

Post by Renber »

I updated Domoticz yesterday and since "Domoticz authorization error". I tried the above steps but it still doesn't work.
Linux Debian 12 Server: Domoticz beta + Dashticz beta + Node-Red + Homebridge
Renber
Posts: 41
Joined: Thursday 04 February 2021 8:10
Target OS: Linux
Domoticz version: Beta
Location: Belgium
Contact:

Re: How to login to Dashticz

Post by Renber »

I found my problem...
I had duplicate parameter "user_name" and "pass_word" in my config.
Now it works with login. The trusted site (without login) no longer seems to work in domoticz.
I also couldn't make an HTTPS connection.
Linux Debian 12 Server: Domoticz beta + Dashticz beta + Node-Red + Homebridge
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest