Page 1 of 2

"Connection" issue between Dashticz and Domoticz

Posted: Saturday 19 May 2018 16:01
by bozidar
Hi All
Just playing with Dashticz and have a NOOB question.

var config = {}
config['domoticz_ip'] = 'http://192.168.0.134:8080';
config['app_title'] = 'Sprøjtehusstræde';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

This is my config ,and there is no communication between dashticz and domoticz.
Dashtica is asking me to check connection.

And i can see that no Domoticz info is in Dashticz,so i must have an connection error.

I am pretty sure ip and port is correct.

What have i forgot ?

and btw i can not acces setting on ipad either . "Wheel button" is "dead".is that normal ?

Re: "Connection" issue between Dashticz and Domoticz

Posted: Saturday 19 May 2018 20:20
by EdwinK
Do you have a username/password set?

Re: "Connection" issue between Dashticz and Domoticz

Posted: Saturday 19 May 2018 23:11
by bozidar
No

Re: "Connection" issue between Dashticz and Domoticz

Posted: Sunday 20 May 2018 0:30
by bozidar
I have now set a Login and password.

I realise that i have not set which Domoticz IDX needs to be shown.

And cannot seem to find the correct syntax for intering Domoticz IDX.

Re: "Connection" issue between Dashticz and Domoticz

Posted: Sunday 20 May 2018 9:43
by mAiden88
Several questions for you, to make it clear to myself.

1): What url do you call, when you try go to dashticz?


I do not see any crazy things in your config. Can also be located elsewhere in the config.. Post your complete config is without passwords.

Re: "Connection" issue between Dashticz and Domoticz

Posted: Sunday 20 May 2018 11:31
by bozidar
Hi guys

thx you for trying to help out a NOOB.

1): What url do you call, when you try go to dashticz?

http://192.168.0.134:8080/dashticz_v2/

Just to expand info as much as possible ,to make my babling make some sence.

I can acces dashticz ,and it "works" showing local weather and stuf ,but do not get any info from Domoticz.

i was wondering how it knows what to "import. Maybe answer is it just everything ,but i have 170 ative ,swithes ,scenes to imports, Can it handle that without specifying more pages or anything.

I have played with dashticz earlier where i got it to import.at that point i needed to specify more specifically w9hat to import to get it in.I cant do so now ,beacuse the websettings button on my tablet isnt working.(last time i did it on a laptop.)

My "complete" config

var config = {}
config['language'] = 'en_US';
config['domoticz_ip'] = 'http://192.168.0.134:8080';
config['user_name'] = 'xxxxxxx';
config['pass_word'] = 'xxxxxxx';
config['app_title'] = 'Sprøjtehusstræde';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['wu_api'] = '23bd54af184b932c';
config['wu_city'] = 'Albertslund';
config['wu_country'] = 'DK';

not sure if any of this makes sence. But any help is highly appriciated.

regards
Bozidar

Re: "Connection" issue between Dashticz and Domoticz

Posted: Sunday 20 May 2018 12:36
by HansieNL
Can you try if the following settings solve your problem:
config['auto_positioning'] = 1;
config['use_favorites'] = 1;

Re: "Connection" issue between Dashticz and Domoticz

Posted: Sunday 20 May 2018 12:53
by bozidar
thx for your suggestion.

I entered it ,but didn't change anything

var config = {}
config['language'] = 'en_US';
config['domoticz_ip'] = 'http://192.168.0.134:8080';
config['user_name'] = 'xxxxxxxx';
config['pass_word'] = 'xxxxxx';
config['app_title'] = 'Sprøjtehusstræde';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['wu_api'] = '23bd54af184b932c';
config['wu_city'] = 'Albertslund';
config['wu_country'] = 'DK';
config['auto_positioning'] = 1;
config['use_favorites'] = 1;

Is states that i need to double check path to domoticz.

Re: "Connection" issue between Dashticz and Domoticz

Posted: Friday 15 June 2018 18:43
by karlzre
Hi did you fix it ?
I have the same issue .

Re: "Connection" issue between Dashticz and Domoticz

Posted: Friday 15 June 2018 23:07
by jake
My Dashticz works fine for the longest time, I can access the Domoticz buttons all the time. However, I also quite regularly have the same error message in a red font in the lower right corner "double check path to domoticz"

So, a nice working system with a small disturbing text in alarming red font, that's all. I ignore it, but only wonder wat triggers this text.

Re:

Posted: Monday 18 June 2018 14:06
by DewGew
jake wrote: Friday 15 June 2018 23:07 My Dashticz works fine for the longest time, I can access the Domoticz buttons all the time. However, I also quite regularly have the same error message in a red font in the lower right corner "double check path to domoticz"

So, a nice working system with a small disturbing text in alarming red font, that's all. I ignore it, but only wonder wat triggers this text.
Its when dashticz is getting the devices in background and sometimes it gets an error when retriving devices. There is an update in the latests beta handling the refresh and retrive devices in background maybe it's fixed now.

Re: "Connection" issue between Dashticz and Domoticz

Posted: Saturday 17 November 2018 23:26
by rgroothuis
In the latest version I'm still having this problem! And the path is set correctly with http://

I get this error message when I want to switch a light from Off to On or visa versa.

Code: Select all

var config = {}
config['language']                          = 'nl_NL';
config['domoticz_ip']                       = 'http://192.168.0.165:8080';
config['app_title']                         = 'Home Automation';
config['domoticz_refresh']                  = '3';
config['dashticz_refresh']                  = '30';
config['default_news_url']                  = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after']                 = '7';
config['hide_topbar']                       = 0;
Screen Shot 2018-11-17 at 23.21.25.png
Screen Shot 2018-11-17 at 23.21.25.png (35.48 KiB) Viewed 4426 times
What is the solution to this problem? I also think is slows down response when I change the status of the light.

Re: "Connection" issue between Dashticz and Domoticz

Posted: Sunday 18 November 2018 9:44
by joostnl
Sadly me too
rgroothuis wrote: Saturday 17 November 2018 23:26 In the latest version I'm still having this problem! And the path is set correctly with http://

I get this error message when I want to switch a light from Off to On or visa versa.

Code: Select all

var config = {}
config['language']                          = 'nl_NL';
config['domoticz_ip']                       = 'http://192.168.0.165:8080';
config['app_title']                         = 'Home Automation';
config['domoticz_refresh']                  = '3';
config['dashticz_refresh']                  = '30';
config['default_news_url']                  = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after']                 = '7';
config['hide_topbar']                       = 0;
Screen Shot 2018-11-17 at 23.21.25.png

What is the solution to this problem? I also think is slows down response when I change the status of the light.

Re: "Connection" issue between Dashticz and Domoticz

Posted: Sunday 25 November 2018 21:55
by rgroothuis
Anybody a solution for this problem? Or how to debug what the actual problem is?

Re: "Connection" issue between Dashticz and Domoticz

Posted: Tuesday 27 November 2018 21:11
by joostnl
Any way to debug?

My config simimular issues, on refresh loading menu i also get message 'there is something wrong with your config'
Everything is working fine and displaying fine, only at some moments lots of lag and i get this connection domoticz issue

I'm not code specialist so if someone has any hints, thanks in advance

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://192.168.1.13:2449';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['hide_topbar'] = 1;
config['last_update'] = 0;
config['wu_api'] = 'secrettt';
config['wu_city'] = 'pws:INOORDHO146';
config['wu_name'] = 'Haarlem';
config['no_rgb'] = 1;
config['spot_clientid'] = 'secrett';
config['longfonds_zipcode'] = 'secrett;
config['longfonds_housenumber'] = 'secrett';

var _HOST_DOMOTICZ = 'http://192.168.1.13:2449';

var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}

var coins = {}
coins.bitcoin = { key:'bitcoin', currency: 'EUR', layout:'vertical',width:4 }

var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg_morning.jpg';
screens[1]['columns'] = [1,2,3]

blocks[4] = {single_block: true};
blocks[3] = {single_block: true};
blocks[1046] = {single_block: true};
blocks[460] = {single_block: true};
blocks['longfonds'] = {};
blocks['longfonds']['width'] = 4;

columns[1] = {}
columns[1]['blocks'] = [418,909,446,870,137,1108,'8_1','8_2','8_3',9,832,'961_1',792,794,793,'spotify'] 
columns[1]['width'] = 4;
columns[2] = {}
columns[2]['blocks'] = [6,4,3,1046,460,103,102,coins.bitcoin,'longfonds',159,163,173,12,16,1065,'graph_8']
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','weather',buttons.buienradar,'traffic']
columns[3]['width'] = 3;

Re: "Connection" issue between Dashticz and Domoticz

Posted: Tuesday 27 November 2018 22:34
by Lokonli
joostnl wrote: Tuesday 27 November 2018 21:11 Any way to debug?
If you press F12 in Chrome then developer mode starts. If you click on the tab 'console' you should be able to see the errors that have been reported.
One of the errors is 'Please, double check the path to Domoticz in settings'. What is the error just before this Domoticz error?

I assume you are already running the latest beta version of Dashticz...

Re: "Connection" issue between Dashticz and Domoticz

Posted: Wednesday 28 November 2018 10:07
by Minglarn
I've got this...

Re: "Connection" issue between Dashticz and Domoticz

Posted: Wednesday 28 November 2018 10:26
by rgroothuis
Same problem on my side.
Screen Shot 2018-11-28 at 10.26.15.png
Screen Shot 2018-11-28 at 10.26.15.png (252.79 KiB) Viewed 4239 times

Re: "Connection" issue between Dashticz and Domoticz

Posted: Wednesday 28 November 2018 10:56
by Lokonli
Several steps to debug.

Step 0: Use the beta version of Dashticz
I can't help with the master version.

Step 1: Starting Dashtics
Expected outcome: Dashtics starts. You see the dashboard.
Possible errors:
If you see an error message like 'time out. Check CONFIG.js'. then there is indeed an error in your CONFIG.js. (forget a comma, no closing brackets, etc.)

Step 2: Connection to Domoticz
If CONFIG.js is correct, then your devices should appear in dashticz.

Possible errors:
If you always get the red error text in the lower right corner then probably there is something not configured correctly for the Domoticz connection:
* check IP/port
* Check username/password (or disable access control for the subnet in Domoticz, and don't use username/password)
* In case of using "config['use_favorites']=1": Some devices have been labeled as Favorite in Domoticz
* In case of using "config['room_plan']" The devices have been added to a room_plan in Domoticz

Step 3: Switches work (in most cases)
If switches are visible in Dashticz, then you should be able to toggle a switch (without getting the red error text in most cases).

Possible errors:
I'm not sure, but if I remember correctly then in Domoticz you can configure that certain users only have 'read only' access. That could explain you can not operate the switches at all.

Step 4: the red error text, sometimes visible.
If step 0-3 are working, then let's look into this.
I see several reasons for the red error text to appear.
A) Timeout to Domoticz.
Debug:
Open chrome developer mode (F12), go to the network tab, press 'Time' so that all network requests are sorted on executing time top-down.
Check which calls give errors, what the reported error is, and what the execution time is.

It doens't always mean that the connection to Domoticz is the problem. If you switch back to the waterfall view, try to find network requests that take a long time.

B) Error text appears after pressing a switch in Dashticz. (in some cases)
This is a small bug in Dashticz. Might be fixed in the future.
(reason: the domoticz refresh request which is still running in the background gets cancelled. This creates the error. No real error: you can ignore it)

Re: "Connection" issue between Dashticz and Domoticz

Posted: Wednesday 28 November 2018 11:09
by Lokonli
rgroothuis wrote: Wednesday 28 November 2018 10:26 Same problem on my side.

Screen Shot 2018-11-28 at 10.26.15.png
You are using the master version of Dashticz. The beta version is more robust, but probably requires you to make some changes in your CONFIG.js and/or custom.js. Especially with the font-awesome fonts.