Page 1 of 1

How to login to Dashticz

Posted: Friday 10 March 2023 18:16
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

Re: How to login to Dashticz

Posted: Friday 10 March 2023 19:16
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 630 times

Re: How to login to Dashticz

Posted: Saturday 11 March 2023 14:00
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

Re: How to login to Dashticz

Posted: Monday 20 March 2023 7:56
by Renber
I updated Domoticz yesterday and since "Domoticz authorization error". I tried the above steps but it still doesn't work.

Re: How to login to Dashticz

Posted: Tuesday 21 March 2023 8:14
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.