Dashticz login

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Dashticz login

Post 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?
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

Post by Dave47 »

Nobody?
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz login

Post by DewGew »

Try to clear cache and remove cookies in your browser
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: Dashticz login

Post 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
Anyone can build a fast processor. The trick is to build a fast system.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

Post 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
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: Dashticz login

Post 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.
Attachments
dash2.png
dash2.png (6.73 KiB) Viewed 3975 times
dash.png
dash.png (35.14 KiB) Viewed 3975 times
Anyone can build a fast processor. The trick is to build a fast system.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

Post 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
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

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

Re: Dashticz login

Post 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.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

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

Re: Dashticz login

Post 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
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

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

Re: Dashticz login

Post 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.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

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

Re: Dashticz login

Post 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)
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

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

Re: Dashticz login

Post 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.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

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

Re: Dashticz login

Post 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
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz login

Post by Dave47 »

Isn,t better to create it in /home/pi/
with symbolic link?

For update later?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest