"Connection" issue between Dashticz and Domoticz

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

bozidar
Posts: 19
Joined: Saturday 09 September 2017 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

"Connection" issue between Dashticz and Domoticz

Post 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 ?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post by EdwinK »

Do you have a username/password set?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
bozidar
Posts: 19
Joined: Saturday 09 September 2017 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post by bozidar »

No
bozidar
Posts: 19
Joined: Saturday 09 September 2017 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post 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.
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: "Connection" issue between Dashticz and Domoticz

Post 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.
Anyone can build a fast processor. The trick is to build a fast system.
bozidar
Posts: 19
Joined: Saturday 09 September 2017 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post 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
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post by HansieNL »

Can you try if the following settings solve your problem:
config['auto_positioning'] = 1;
config['use_favorites'] = 1;
Blah blah blah
bozidar
Posts: 19
Joined: Saturday 09 September 2017 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post 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.
karlzre
Posts: 26
Joined: Sunday 06 August 2017 18:48
Target OS: -
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post by karlzre »

Hi did you fix it ?
I have the same issue .
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post 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.
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:

Post 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.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post 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 4329 times
What is the solution to this problem? I also think is slows down response when I change the status of the light.
joostnl
Posts: 68
Joined: Wednesday 03 February 2016 19:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post 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.
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post by rgroothuis »

Anybody a solution for this problem? Or how to debug what the actual problem is?
joostnl
Posts: 68
Joined: Wednesday 03 February 2016 19:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

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

Re: "Connection" issue between Dashticz and Domoticz

Post 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...
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post by Minglarn »

I've got this...
Attachments
Skärmklipp5.PNG
Skärmklipp5.PNG (11.87 KiB) Viewed 4144 times
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

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

Re: "Connection" issue between Dashticz and Domoticz

Post 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)
Last edited by Lokonli on Wednesday 28 November 2018 11:19, edited 1 time in total.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Connection" issue between Dashticz and Domoticz

Post 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.
Last edited by Lokonli on Wednesday 28 November 2018 11:15, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest