Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No domoticz connection and no settings save #263

Open
antipiot opened this issue Feb 4, 2018 · 9 comments
Open

No domoticz connection and no settings save #263

antipiot opened this issue Feb 4, 2018 · 9 comments

Comments

@antipiot
Copy link

antipiot commented Feb 4, 2018

Hello!

I tried to install Dashticz v2 following the guides on domoticz, forum and on the on on the git page and none of them where working:

I have been able to get Dashticz connected after many time following:

https://www.domoticz.com/forum/viewtopic.php?f=8&t=5166&start=140

[quote=robgeertspost_id=144024 time=1501697654 user_id=3874]
Do you use the regular (master) version or the beta?
If you use the original version, try the CONFIG.JS I've added as an attachment first..

BUT: it doesent use this config.js: if i do any modifications: They are stored in local storage: config.js dont get any modifications.
I can edit the settings correcty and they're applied correctly:
I'm not able to add tiles and save.

I was able to get my Dashticz connected using the original config. JS BUT i had to modify it folowing:

[url]https://www.domoticz.com/forum/viewtopic.php?f=8&t=5166&start=140 [/url]

[quote=miesjel post_id=149469 time=1504722085 user_id=15780]
[quote=miesjel post_id=149426 time=1504705825 user_id=15780]
I have a problem getting Dashticz to work after the latest update, before that it worked like you would >expect (showing my favourits from Domoticz).

Since i've updated Dashticz i'm having problems getting information, it is stuck at saying Domoticz >offline. I even removed Dashticz and reinstalled it but that didnt help either 😢 .

After the reinstalled i didnt configure the CONFIG.js so i could see the default page (like before) with >example data. This wasnt showing up, after that i entered the IP and port number, saved the config and >rebooted the Domoticz server, problem still not solved.

I've tested it on two different devices, and with 3 different browsers. Firefox says Domoticz Offline, >Edge and Chrome say connection refused. I dont use authentication.

any ideas?

Solved the problem! After a few reboots I got the Dashticz example page, i used the gear to make a >config and copied the data to a blanc config.js file. After that, it worked! After some troubleshooting it >became clear that the problem was with the columns part in the example config file. After removing >those lines, the problem was solved.

So my config file looked like:

var config = {} config['domoticz_ip'] = 'https://10.0.0.13:8900';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];

var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}

var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Example';`
Instead of:
[code]
var config = {}
config['domoticz_ip'] = 'http://192.168.1.3:8084';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];

var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}

var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Example';

var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['sunrise','streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;

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

[/code]

For this method: no changes can be made and the config.js got no changes.

@antipiot antipiot changed the title No domotict connection and no saves No domoticz connection and no settings save Feb 4, 2018
@DewGew
Copy link
Contributor

DewGew commented Feb 9, 2018

Use the wiki to get started http://www.domoticz.com/wiki/Dashticz_V2

@antipiot
Copy link
Author

antipiot commented Feb 9, 2018

So did I. Then I came here.

@DewGew
Copy link
Contributor

DewGew commented Apr 5, 2018

Is this still an issue?

@batlol
Copy link

batlol commented Apr 11, 2018

I'd like to add that I too have this issue, I can change the config in my CONFIG.js file and it is visible within the dashticz_v2 webinterface, however trying to change something within the webinterface (top right corner) it does not save it, after refreshing and opening the settings again (webinterface top right) its changed back to what it was before changing.

And I am also not able to see my Domoticz switches within the dashboard.

@batlol
Copy link

batlol commented Apr 11, 2018

Changing the CONFIG.js to a empty one with only:

var config = {}
config['domoticz_ip'] = 'http://192.168.178.248:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Test!';

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

It seems to loadin the Domoticz switches.

EDIT:
Changing the settings within the dashboard still does NOT work.

@FrankVteZ
Copy link

FrankVteZ commented Jun 19, 2018

Same here! I followed the tips with replacing the config file.
Started from scratch - never used Dashticz before (downloaded the ZIP file from https://github.com/Dashticz/dashticz_v2
Using Dashticz on my syno DS218. Installed it at the /web/DashticzV2 folder and the webstation with DSM6.1 (Apache HTTP server 2.2 and PHP 7.0)

With the renamed CONFIG.js file I only get the icons for news, train etc,
With the "emptied" config file the icons from the dashboard of Domotica, but no changes can be made.

I managed to get some config.js but adding icons manually was not possible. And automatically I have the same temperature 10 times, gas 6 times or so :( So went back to the original config.js, looking to a screen with only nu.nl news, some bus-travelings near Eindhoven and sunrise/sunset times. Thats about it :O
I hope this can be solved: the screendumps look promising so far!

@FrankVteZ
Copy link

Finally I think what the problem is - the CONFIG.js file has only write permissions by default for "owner".

After login in with WinSCP, go to the web-folder of your installation, /custom, right click (properties) for the CONFIG.js file and enable also the Writing permissions for owner, group, other.

After changing this the settings are finally saved.

hth

@Hoeby
Copy link

Hoeby commented Jun 30, 2018

i am have the same problem.

Domoticz : Version 4.9700
Dashticz is version 2.

I run SHH to install it and follow the wiki page
After that tried it in EDGE, but get the info that there is no connection whit domoticz.
When running in CHROME, i have no error. But also missing the favorite buttons.

Tried all the things you guys wrote here.
A empty CONFIG.js and only the basis items.
Give the config.js file all the permissions, but nothing helped.

When running the F12 function
It says 16 SCRIPT7016: SCRIPT7016: Gebruik van XMLHttpRequest waarvoor de synchrone vlag is ingesteld op waar, is afgewezen vanwege de impact ervan op de door de gebruiker ervaren site-prestaties.

Don't know how the fix this.
Somebody has an idea?

@nilsaw11
Copy link

Finally I think what the problem is - the CONFIG.js file has only write permissions by default for "owner".

After login in with WinSCP, go to the web-folder of your installation, /custom, right click (properties) for the CONFIG.js file and enable also the Writing permissions for owner, group, other.

After changing this the settings are finally saved.

hth

THANX! This works for me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants