Timeout! Something is wrong, please check your config.js

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
RTJC
Posts: 28
Joined: Sunday 01 July 2018 1:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Timeout! Something is wrong, please check your config.js

Post by RTJC »

Hi all,

I have downloaded the config.js from Robgeerts and changed all data (ip & credentials to mine). Unfortunately I cannot log in and the message:

Timeout, please check your config.js. Please find below mine, do you have any idea?

Code: Select all

var _EDIT_MODE = false;

var config = {}
config['domoticz_ip'] = 'http://external_ip:port';
config['user_name'] = 'user_name';
config['pass_word'] = 'pass_word';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = '7';
config['standby_after'] = 0;
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'month';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = 0;
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 'key';
config['gm_zoomlevel'] = 0;
config['gm_latitude'] = 0;
config['gm_longitude'] = 0;
config['idx_moonpicture'] = 0;
config['switch_horizon'] = 0;
config['spot_clientid'] = 'key';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 1;
config['use_favorites'] = 1;
config['last_update'] = 1;
config['hide_topbar'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 1;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 1;
config['hide_mediaplayer'] = 0;
config['garbage_company'] = 'deafvalapp';
config['garbage_zipcode'] = '5692VG';
config['garbage_street'] = 'Hoogstraat';
config['garbage_housenumber'] = '3';
config['garbage_maxitems'] = '5';
config['garbage_width'] = '5';
config['garbage_hideicon'] = 0;

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';

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 calendars = {}
calendars.private = { key:'private', width:6, maxitems: 4, icalurl: 'https://calendar.google.com/calendar/ical/bladiebla/basic.ics' }

var maps = {}
maps.sonenbreugel = { key:'sonenbreugel', height: 300, link:'http://www.ovzoeker.nl', width:12, latitude: 51.5322056, longitude: 5.4870054, zoom:10 }

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.buienradar = { key: 'buienradar', width:12, isimage:true, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Son/4058667'}
buttons.tweakers = {key: 'tweakers',  width:12, icon: 'fa-newspaper-o', title: 'Tweakers', url: 'https://www.tweakers.net'}
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'}
buttons.domoticz = {key:'log', width:12, icon:'fa-microchip', title: 'Domoticz Log', log:true, level: 2}

var blocks = {}

blocks['news_1'] = {}
blocks['news_1']['feed'] = 'https://cors-anywhere.herokuapp.com/http://www.nu.nl/rss/Algemeen';
blocks['news_1']['maxheight'] = 113;

blocks['news_2'] = {}
blocks['news_2']['feed'] = 'https://cors-anywhere.herokuapp.com/http://feeds.feedburner.com/tweakers/nieuws';
blocks['news_2']['maxheight'] = 113;

var columns = {}

columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']
					
columns[1] = {}
columns[1]['blocks'] = ['nzbget',233,62,117,110,'s1','s2','144_2',295,204]
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',174,145,284,286,287,'150_1','150_2','151_1',5,97,301,302,324,calendars.private,publictransport.ovinfobus,tvguide.dutch,'garbage']
columns[2]['width'] = 5; 

columns[4] = {}
columns[4]['blocks'] = [buttons.buienradar,'sunrise','spotify','streamplayer',buttons.nos,buttons.tweakers,buttons.nunl]
columns[4]['width'] = 2; 

columns[5] = {}
columns[5]['blocks'] = [buttons.domoticz,'sunrise']
columns[5]['width'] = 2; 

columns[6] = {}
columns[6]['blocks'] = ['traffic','train',maps.sonenbreugel]
columns[6]['width'] = 5; 

columns[7] = {}
columns[7]['blocks'] = ['log','news_1','news_2']
columns[7]['width'] = 5; 

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

var screens = {}
screens['default'] = {}
screens['default']['maxwidth'] = 1920;
screens['default']['maxheight'] = 1080;

screens['default'][1] = {}
screens['default'][1]['background'] = 'bg9.jpg';
screens['default'][1]['columns'] = [1,2,4]

screens['default'][2] = {}
screens['default'][2]['background'] = 'bg9.jpg';
screens['default'][2]['columns'] = [5,6,7]

screens['default'][3] = {}
screens['default'][3]['background'] = 'bg9.jpg';
screens['default'][3]['columns'] = [5,6,7]

screens['default'][4] = {}
screens['default'][4]['background'] = 'bg9.jpg';
screens['default'][4]['columns'] = [5,6,7]

screens['tablet'] = {}
screens['tablet']['maxwidth'] = 1024;
screens['tablet']['maxheight'] = 768;
screens['tablet'][1] = {}
screens['tablet'][1]['background'] = 'bg9.jpg';
screens['tablet'][1]['columns'] = [1]

screens['tablet'][2] = {}
screens['tablet'][2]['background'] = 'bg9.jpg';
screens['tablet'][2]['columns'] = [2]
Last edited by RTJC on Monday 02 July 2018 14:16, edited 1 time in total.
hoeby
Posts: 528
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by hoeby »

Does it give timeout?
Or "Domiticz error, check your config.js settings".

When it is "Domoticz error".
Maybe take a look in an other thread http://www.domoticz.com/forum/viewtopic ... 67&t=23849

I also have troubles connecting to domoticz.
Maybe together, we can find a solution.

Ps which version domoticz are you running?
And are you using the stable or beta version of dashticz?
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
RTJC
Posts: 28
Joined: Sunday 01 July 2018 1:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by RTJC »

Hi, I get this screen:

Image

I use the 9700 version Stable of Domoticz.

As soon as I use a blank config.js file with only this:

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://external_ip:port';
config['user_name'] = 'user_name';
config['pass_word'] = 'pass_word;
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
It works. So I think all the extra options cause conflicts.
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by DewGew »

Its missing a ' in this line:

Code: Select all

config['pass_word'] = 'pass_word;
change it to:

Code: Select all

config['pass_word'] = 'pass_word';
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
RTJC
Posts: 28
Joined: Sunday 01 July 2018 1:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by RTJC »

Hi Dewgew,

thanks for you reply. But I have made a small mistake when anonimizing the password for this forum. I accidentally deleted the ' when copying the config.js to this topic.

I just checked my config.js file and all is okay in the password line, the (') is not missing.
RTJC
Posts: 28
Joined: Sunday 01 July 2018 1:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by RTJC »

I was checking Dashticz on another laptop (windows with chrome browser) and I get this error:

INVALID_CLIENT: Invalid client

It's trying to redirect me to Spotify. Since I haven't configured it yet, I will remove the spotify part from the config.js file and will come back to you with the result.
RTJC
Posts: 28
Joined: Sunday 01 July 2018 1:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by RTJC »

Hi,

this helps me a bit further but new errors occur. My favorites are not showing up and the RSS feeds are not configured well.

I will start with a new config.js file and build up from scratch.
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by DewGew »

This works on my dashticz:

Code: Select all

var config = {}

config['domoticz_ip'] = 'http://ipno:8080';
config['user_name'] = 'User';
config['pass_word'] = 'Pass';
config['loginEnabled'] = 1;
config['app_title'] = 'Dashticz';
config['room_plan'] = 0;
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '30';
config['auto_positioning'] = 1;
config['use_favorites'] = 1;
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
RTJC
Posts: 28
Joined: Sunday 01 July 2018 1:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by RTJC »

Yes, that one works but is very basic.

I only see:

- Groups/scene (I have created only 1)
- The time and date
- Sunrise and sunset

The problems occur with extra addins etc. I need to build it up from scratch and add features one by one.
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by Lokonli »

RTJC wrote: Monday 02 July 2018 21:33 Yes, that one works but is very basic.

I only see:

- Groups/scene (I have created only 1)
- The time and date
- Sunrise and sunset

The problems occur with extra addins etc. I need to build it up from scratch and add features one by one.
Spotify was not working for me in Dashticz master; try the latest beta.
RTJC
Posts: 28
Joined: Sunday 01 July 2018 1:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timeout! Something is wrong, please check your config.js

Post by RTJC »

Hi,

I have build it up from scratch to debug any errors. Problems are partially solved ;-).

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests