Dashticz not showing

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
RobD
Posts: 17
Joined: Friday 21 April 2017 15:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Leiden
Contact:

Dashticz not showing

Post by RobD »

I run Domoticz (2010-1) and Dashticz together on a Pi4B with Buster.
this ran without problems and I could connect to the Dashticz webpage from all kind of devices in my network.

Recently I upgraded to Dashticz v 3.3.3.1
it took me some time to get it running but finally it worked (I thought).
Yes it works on my Pi. When Ik connect to the Pi with VNC and start the browser on my Pi (localhost:8083 or x.y.116.101:8083) it works fine.
but
from any other device in my network it is different.
when I connect to x.y.116.101:8083 I get a black page saying "dashticz is loading"
and then after a few seconds
"Error
for more help visit Dashticz V3 documentation"
I tried this on the IPv4 address als well on the IPv6 address.
Because Dashticz is running in a Docker container (at lease the Apache processes run in the container) where the Docker container has its own IPaddresses (in an other range than the pi itself) it is hard to analyse the origin of this problem.

all ideas are welcome
Plans without action are a daydream.
Action without plans are a nightmare
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz not showing

Post by Lokonli »

Dashticz runs in your browser and makes a connection from the browser to Domoticz.That means the Domoticz IP setting in CONFIG.js must be accessible from your browser's system.

If you open DevTools (F12) then on the network tab you can see the network requests. Check the result of the request to the Domoticz server.
User avatar
RobD
Posts: 17
Joined: Friday 21 April 2017 15:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Leiden
Contact:

Re: Dashticz not showing

Post by RobD »

F12 gives an interesting view on this issue.
first I get a bunch of GET request to the PI, ending with status 200 (ok)
then a GET to raw.githubusercontent.com with a file version.txt ending with status 304
and then a GET to

Code: Select all

localhost:8080 trying to get a json file: json.htm?username=xxxxx&password=xxxxx&type=command&parameter=getversion
and then it stops.
I did not install Dashticz with security settings like username and password. password is a 12 letter/digit construct as generated by a PWmanager like lastpass.

I see a couple of things:
  • localhost:8080 refers (when executed on my PI) to my Domoticz instance, which is afaik not username/pw procected
  • the request executed in a browser on my PI returns status 200
  • when I edit the command on my lapopt and replace localhost with the IP of my PI it also returns with status 200
  • but the fact that the GET command in the browser on my laptop refers to localhost:8080 is never going to work I think
does this help to solve the problem?
Plans without action are a daydream.
Action without plans are a nightmare
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz not showing

Post by Lokonli »

This last one is the first request from Dashticz to Domoticz. Somehow this connection is not working.

First try the following:
In Domoticz-Settings:
set authentication to 'basic auth'
allow login without password for local network (add x.y.z.*; 127.0.0.* to the field)


I think it will work after this.

If not, try the following:
* switch to beta branch

Code: Select all

git checkout beta
git pull
in CONFIG.js remove

Code: Select all

config['user_name'] = '';
config['pass_word'] = '';
User avatar
RobD
Posts: 17
Joined: Friday 21 April 2017 15:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Leiden
Contact:

Re: Dashticz not showing

Post by RobD »

Thanks, I am going to try this asap.

I am not a web programmer so I am puzzled by this:
The request you mention from Dashticz to Domoticz is in both cases (Pi and laptop) the same: localhost:8080
On my PI that is fine, Domoticz is running on localhost, but if this request is executed IN a browser on any other machine than the Pi this request must point to a IPaddress in stead of to localhost.

so we can start doing things on the Domoticz side but I fear that the problem is on the Dashticz side. Most likely the Dashticz configuration contains the address for Domoticz als localhost:8080 in stead of IPaddress:8080

so it might be a good idea to also look in the Dashticz config files to see what is written there.
Any clue in which configfile the Domoticz host is registered?
Plans without action are a daydream.
Action without plans are a nightmare
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz not showing

Post by Jimster »

Did you set your domoticz ip in the CONFIG.js file?
like this:

Code: Select all

config['domoticz_ip'] = 'http://192.168.0.151:8080';
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz not showing

Post by Lokonli »

RobD wrote: Thursday 16 April 2020 9:32 Thanks, I am going to try this asap.

I am not a web programmer so I am puzzled by this:
The request you mention from Dashticz to Domoticz is in both cases (Pi and laptop) the same: localhost:8080
On my PI that is fine, Domoticz is running on localhost, but if this request is executed IN a browser on any other machine than the Pi this request must point to a IPaddress in stead of to localhost.

so we can start doing things on the Domoticz side but I fear that the problem is on the Dashticz side. Most likely the Dashticz configuration contains the address for Domoticz als localhost:8080 in stead of IPaddress:8080

so it might be a good idea to also look in the Dashticz config files to see what is written there.
Any clue in which configfile the Domoticz host is registered?
It's in 'custom/CONFIG.js'
User avatar
RobD
Posts: 17
Joined: Friday 21 April 2017 15:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Leiden
Contact:

Re: Dashticz not showing

Post by RobD »

yep there it was.

Code: Select all

config['domoticz_ip'] = 'http://localhost:8080';
not so very smart of me. But I never realised that this information was executed in the browser.

Code: Select all

config['domoticz_ip'] = 'http://xxx.yy.116.101:8080';
and the problem was solved. thanks for you help.
Plans without action are a daydream.
Action without plans are a nightmare
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest