Page 1 of 2
Dashticz login
Posted: Thursday 19 July 2018 14:48
by Dave47
We try to make a login page to Dashticz.
In Domoticz i setup username and password for webpage protection.
I use the above " and password in Dasticz in the following way:
config['user_name'] = 'username Domoticz';
config['pass_word'] = 'password Domoticz';
config['loginEnabled'] = 1;
There is no login page when I open the Dashticz page?
what am I doing wrong?
More explanation:
We have done port forwarding so that we can reach domoticz externally.
Website protection set for domoticz, that works.
You can still open all subfolders even dashticz
The solution for the daschticz folder
config['user_name'] = 'username Domoticz';
config['pass_word'] = 'password Domoticz';
config['loginEnabled'] = 1;
does not work.
You can still open all subfolders
Is there a way to secure dashticz?
Re: Dashticz login
Posted: Tuesday 24 July 2018 12:43
by Dave47
Nobody?
Re: Dashticz login
Posted: Tuesday 24 July 2018 18:03
by DewGew
Try to clear cache and remove cookies in your browser
Re: Dashticz login
Posted: Tuesday 24 July 2018 18:48
by mAiden88
Try this?
Code: Select all
config['user_name'] = 'domoticz username';
config['pass_word'] = 'domoticz password';
config['loginEnabled'] = 1;
Pay attention. Domoticz should be at the forefront than username or password
Re: Dashticz login
Posted: Wednesday 25 July 2018 13:33
by Dave47
Code: Select all
config['user_name'] = 'domoticz Myusername';
config['pass_word'] = 'domoticz Mypassword';
config['loginEnabled'] = 1;
this does not work
Try to clear cache and remove cookies in your browser
Re: Dashticz login
Posted: Wednesday 25 July 2018 13:50
by mAiden88
Dave47 wrote: ↑Wednesday 25 July 2018 13:33
Code: Select all
config['user_name'] = 'domoticz Myusername';
config['pass_word'] = 'domoticz Mypassword';
config['loginEnabled'] = 1;
this does not work
Try to clear cache and remove cookies in your browser
What i post, i try it by myself. Its working here.
Look @ attchments.
Re: Dashticz login
Posted: Wednesday 25 July 2018 14:59
by Dave47
Dashticz link looks like
http://xx.xxx.xx.xx:8080/dashticz/ that is not protected here
Domoticz link: i have
http://xx.xxx.xx.xx:8080
I dont understand.
Myusername is that the username from website protection?
Example:
Website protection:
Username = user
Password = pass
than the code is:
Code: Select all
config['user_name'] = 'domoticz user';
config['pass_word'] = 'domoticz pass';
config['loginEnabled'] = 1;
I have settings for local netwerk no username/password only for local ip
Re: Dashticz login
Posted: Saturday 26 January 2019 17:18
by Dave47
In Domoticz i have set basic - auth. For example: Username = Admin and Password = Test
and also tried Login page
In Dashticz
config['user_name'] = 'Admin';
config['pass_word'] = 'Test';
config['loginEnabled'] = 1;
Everything on Dashticz page is visible except the switches
Nobody?
Re: Dashticz login
Posted: Sunday 27 January 2019 20:45
by Lokonli
Dave47 wrote: ↑Saturday 26 January 2019 17:18
In Domoticz i have set basic - auth. For example: Username = Admin and Password = Test
and also tried Login page
In Dashticz
config['user_name'] = 'Admin';
config['pass_word'] = 'Test';
config['loginEnabled'] = 1;
Everything on Dashticz page is visible except the switches
Nobody?
Then probably there is something wrong with your connection to Domoticz.
It can be the username/password for Domoticz. Or the switches are not readible by the user (Domoticz configuration). Or maybe the Domoticz IP address.
If you want to debug:
Open Dashticz in Chrome. Press F12 to open the Developer mode. In the network tab of the developer mode try to find the network request to Domoticz (type 'username' in the filterbox). The status and/or response will tell you what is wrong.
You can also look for errors in the console tab of the Developer window.
Re: Dashticz login
Posted: Monday 28 January 2019 15:28
by Dave47
What I'm trying to say....
if I choose basic - auth in domoticz then there is a popup in Dashticz.
Without password en username i can see everything on the page exept the switches
when I log in I also see the switches.
but I need a solution for a login forum for dashticz.
the settings in dashticz do not give me a login screen
not even when I change basic auth to login page of domoiticz
the code does nothing
Code: Select all
config['user_name'] = 'Admin';
config['pass_word'] = 'Test';
config['loginEnabled'] = 1;
If you want to debug:
Open Dashticz in Chrome. Press F12 to open the Developer mode. In the network tab of the developer mode try to find the network request to Domoticz (type 'username' in the filterbox). The status and/or response will tell you what is wrong.
No status, i see also no CONFIG.js file in sources?
Re: Dashticz login
Posted: Monday 28 January 2019 20:01
by Lokonli
Dave47 wrote: ↑Monday 28 January 2019 15:28
What I'm trying to say....
if I choose basic - auth in domoticz then there is a popup in Dashticz.
Without password en username i can see everything on the page exept the switches
when I log in I also see the switches.
but I need a solution for a login forum for dashticz.
the settings in dashticz do not give me a login screen
not even when I change basic auth to login page of domoiticz
the code does nothing
Code: Select all
config['user_name'] = 'Admin';
config['pass_word'] = 'Test';
config['loginEnabled'] = 1;
If you want to debug:
Open Dashticz in Chrome. Press F12 to open the Developer mode. In the network tab of the developer mode try to find the network request to Domoticz (type 'username' in the filterbox). The status and/or response will tell you what is wrong.
No status, i see also no CONFIG.js file in sources?
Most sources are loaded dynamically by Dashticz. That's the reason you don't see them in sources tab of the Developer Window (I guess). Normal behavior.
The user/password combination is used in two ways:
* Authentication towards Domoticz, which is needed to obtain all devices from Domoticz in case user authentication has been setup in Domoticz.
The user/password combination as defined in CONFIG.js will be used for this.
* Login into Dashticz itself, which will be enforced in case config['loginEnabled'] = 1
You must use the same user/password combination as defined in CONFIG.js as authentication for Domoticz.
In case login into Dashticz is successful a cookie will be stored which is valid for 1 hour. Within this hour Dashticz will not request to login again. You can logout by pressing the settings icon in the upper right of Dashticz, info tab, logout button.
I'm not sure whether I understand your question correctly, but you can only login via the Dashtics login window with the username as defined by settings['user_name'] in CONFIG.js. It's not possible to switch to another user, except by changing the user_name setting in CONFIG.js
Re: Dashticz login
Posted: Tuesday 29 January 2019 16:02
by Dave47
You must use the same user/password combination as defined in CONFIG.js as authentication for Domoticz.
I use the same user /password.
In case login into Dashticz is successful a cookie will be stored which is valid for 1 hour. Within this hour Dashticz will not request to login again. You can logout by pressing the settings icon in the upper right of Dashticz, info tab, logout button.
There is no login screen in Dashticz and no settings icon, also no logout buttun.
I have
config['user_name'] = 'Admin';
config['pass_word'] = 'Test';
config['loginEnabled'] = 1;
and basic auth in Domoticz with the same settings as Dashticz. When i logged in Domoticz then i can see the switches in Dashticz also
When i not logged in Domoticz there is no login screen in Dashticz, the only thing i can see is for example: Garbage calender and radio
Re: Dashticz login
Posted: Tuesday 29 January 2019 19:08
by Lokonli
Dave47 wrote: ↑Tuesday 29 January 2019 16:02
You must use the same user/password combination as defined in CONFIG.js as authentication for Domoticz.
I use the same user /password.
In case login into Dashticz is successful a cookie will be stored which is valid for 1 hour. Within this hour Dashticz will not request to login again. You can logout by pressing the settings icon in the upper right of Dashticz, info tab, logout button.
There is no login screen in Dashticz and no settings icon, also no logout buttun.
I have
config['user_name'] = 'Admin';
config['pass_word'] = 'Test';
config['loginEnabled'] = 1;
and basic auth in Domoticz with the same settings as Dashticz. When i logged in Domoticz then i can see the switches in Dashticz also
When i not logged in Domoticz there is no login screen in Dashticz, the only thing i can see is for example: Garbage calender and radio
Which Dashticz version are you using? I recommend to update to the latest beta version. You can make the topbar visible, including the settings icon, with the following setting in CONFIG.js:
config['hide_topbar'] = 0;
Let's try that first.
Re: Dashticz login
Posted: Tuesday 29 January 2019 22:58
by Dave47
Version: 4.10053
I have a topbar at the moment config['hide_topbar'] = 0
But it never Works before, never have a inlog screen for dashticz.
At the moment Philips hue is compatibel with Domoticz.
I dont know if it works after a update.
But it would be nice if the login screen works
Re: Dashticz login
Posted: Wednesday 30 January 2019 7:59
by Lokonli
Dave47 wrote: ↑Tuesday 29 January 2019 22:58
Version: 4.10053
I have a topbar at the moment config['hide_topbar'] = 0
But it never Works before, never have a inlog screen for dashticz.
At the moment Philips hue is compatibel with Domoticz.
I dont know if it works after a update.
But it would be nice if the login screen works
4.10053 is the Domoticz version I guess. Can you also report the Dashticz version? You can find it on the info-tab, after pressing the settings button in Dashticz (upper right)
Re: Dashticz login
Posted: Wednesday 30 January 2019 11:47
by Dave47
I use Dashticz V2.0 no version number?
when I installed dashticz for the first time, ik put all the files with Fillezilla in /home/pi/domoticz/www/dashticzv2/
is there something wrong?
I dont know how to update to a beta version Dashticz
Re: Dashticz login
Posted: Wednesday 30 January 2019 19:32
by Lokonli
Dave47 wrote: ↑Wednesday 30 January 2019 11:47
I use Dashticz V2.0 no version number?
when I installed dashticz for the first time, ik put all the files with Fillezilla in /home/pi/domoticz/www/dashticzv2/
is there something wrong?
I dont know how to update to a beta version Dashticz
If you want to install the beta version you can try the installation instructions:
https://www.domoticz.com/wiki/Dashticz_ ... stallation
It will install Dashticz into a new folder next to your current installation, so you can try whether the beta version works for you.
Re: Dashticz login
Posted: Wednesday 30 January 2019 20:21
by Dave47
Ok. But then no symbolic link i guess when i will try both.
Do i need Apache server also for a login screen?
How can i use the new url then stored beta in /home/pi/dashticz?
Current Dashticz /home/pi/domoticz/www/dashticz/
Open dashticz with http://domoticzip:port/dashticzv2/index.html
Re: Dashticz login
Posted: Wednesday 30 January 2019 21:54
by Lokonli
Dave47 wrote: ↑Wednesday 30 January 2019 20:21
Ok. But then no symbolic link i guess when i will try both.
Do i need Apache server also for a login screen?
How can i use the new url then stored beta in /home/pi/dashticz?
Current Dashticz /home/pi/domoticz/www/dashticz/
Open dashticz with http://domoticzip:port/dashticzv2/index.html
You need Apache for calendar, tvguide, garbage.
If you want to use the Domoticz webserver you have to create the dashticz folder in /home/pi/domoticz/www:
Code: Select all
cd /home/pi/domoticz/www
git clone https://github.com/robgeerts/dashticz_v2 --branch beta
Create a valid CONFIG.js in the folder dashticz_v2/custom.
The new beta-Dashticz then can be loaded via:
http://domoticzip:port/dashticz_v2/index.html
Your current dashticz still can be loaded via:
http://domoticzip:port/dashticzv2/index.html
Re: Dashticz login
Posted: Wednesday 30 January 2019 23:08
by Dave47
Isn,t better to create it in /home/pi/
with symbolic link?
For update later?