Page 1 of 1

Double check the path to domoticz

Posted: Sunday 29 September 2019 20:26
by Solderbro
Domoticz and Dashticz_V2 are running on the same raspberry, i like to provide a kiosk browser page for an old android tablet. So i followed the instructions in the wiki, installed the prerequisites and the package with git.

Domoticz is configured to accept localhost connects at 127.0.0.1 without login. So i configured dashticz to use http://127.0.0.1:8080 and tried the same http://192.168.1.245:8080 for the connection. But both fails, dashticz starts with a red alert in lower right corner: "Domoticz Error! Double check the path to domoticz".

Short form: Domoticz is available on the pi at http://127.0.0.1:8080 and https://127.0.0.1:443, dashticz cannot handle both.

What to use else?

Re: Double check the path to domoticz

Posted: Sunday 29 September 2019 20:35
by HansieNL
V2 is an old version and the wiki is outdated.
Latest manual: https://dashticz.readthedocs.io/en/beta/
If you wanna have a full functional Dashticz you have to install web server and php.

Re: Double check the path to domoticz

Posted: Thursday 03 October 2019 9:42
by Solderbro
So there is a V3 and V3 beta and there is a V2 beta out in the fields. Hope someone will clean this up, so we have one reliable version that give proper results. In my version.file is this

version": "2.5.11",
"branch": "beta",
"last_changes": "Improved forcerefresh",

This one is unable to connect to domoticz with this CONFIG.js

var config = {}
config['domoticz_ip'] = 'http://127.0.0.1:8080';
config['app_title'] = 'Dashticz';

As 127.0.0.* is set to be open in domoticz, i have no clue why the dashticz package with apache2 is unable to connect. Is there some kind of logfile i can peek into?

Solderbro

Re: Double check the path to domoticz

Posted: Thursday 03 October 2019 13:47
by Lokonli
Solderbro wrote: Thursday 03 October 2019 9:42 So there is a V3 and V3 beta and there is a V2 beta out in the fields. Hope someone will clean this up, so we have one reliable version that give proper results. In my version.file is this

version": "2.5.11",
"branch": "beta",
"last_changes": "Improved forcerefresh",

This one is unable to connect to domoticz with this CONFIG.js

var config = {}
config['domoticz_ip'] = 'http://127.0.0.1:8080';
config['app_title'] = 'Dashticz';

As 127.0.0.* is set to be open in domoticz, i have no clue why the dashticz package with apache2 is unable to connect. Is there some kind of logfile i can peek into?

Solderbro
Pull a v3 version from here:
https://github.com/Dashticz/dashticz

You can choose the master branch or beta branch. The beta branch is stable as well at the moment.

For instructions (master version) see:
https://dashticz.readthedocs.io/en/master/

There is also a beta branch of the documentation.

In your CONFIG.js set use_favorites and auto_positioning to false.

If you've followed the installation instructions it should work. For debugging: open the developer window in Chrome (press F12), and refresh the Dashticz page. You might see errors on the console tab. The network tab will show the network requests that failed.

Re: Double check the path to domoticz

Posted: Friday 04 October 2019 12:02
by Solderbro
Okay, it get a bit better. Now i got a solid black screen and the developer window complains about all command with "webkit inside (invalid property window). Is there some raspbian package that must be installed first?

var config = {}
config['domoticz_ip'] = 'http://127.0.0.1:8080';
config['app_title'] = 'Dashticz V3';
config['language'] = 'de_DE';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['use_favorites'] = false;
config['auto_positioning'] = false;

Solderbro

Re: Double check the path to domoticz

Posted: Friday 04 October 2019 15:50
by HansieNL
Can you try with removing:

Code: Select all

config['use_favorites'] = false;
config['auto_positioning'] = false;
And use your local Domoticz IP address instead of your localhost IP address.

Re: Double check the path to domoticz

Posted: Friday 04 October 2019 16:02
by Lokonli
Solderbro wrote: Friday 04 October 2019 12:02 Okay, it get a bit better. Now i got a solid black screen and the developer window complains about all command with "webkit inside (invalid property window). Is there some raspbian package that must be installed first?

var config = {}
config['domoticz_ip'] = 'http://127.0.0.1:8080';
config['app_title'] = 'Dashticz V3';
config['language'] = 'de_DE';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['use_favorites'] = false;
config['auto_positioning'] = false;

Solderbro
Which browser are you using on what kind of system? What is the version? Your browser should be not too old.
Can you try with Chrome on Windows? (or another PC/laptop)

Re: Double check the path to domoticz

Posted: Saturday 05 October 2019 21:21
by Solderbro
Hello,

have tested it with Waterfox 56.2.14 on Fedora Linux, because it's urgent to get it running with a kiosk browser on android. So i tested it with a Chromium 76 on Fedora Linux, here is problem clear at sight. Incredible, is the setting for non password login at Domoticz Stable a problem?

jquery.min.js:4 GET http://127.0.0.1:8080/json.htm?username ... getversion net::ERR_CONNECTION_REFUSED

In Domoticz the config says.

Networks: 127.0.0.*

Tried with login and password at 127.0.0.1 - Same error

Tried with login and password via raspi IP - Here it works, phew.......

Maybe there is some kind of firewall blocking the 127.0.0.1 connection. Okay thanks i can go on now

Solderbro