Page 1 of 1

dashtic won't show switches after reinstall

Posted: Thursday 27 June 2019 22:54
by dagger38
Hi,
After installing solorpanels last week i had to switch of all power.
Result was that my PI was dead (at least the SD card)
I order a new one , installd it yesterday and managed to get all the switches and so back.

Then i installed dashticz new version today.
I changed the CONFIG.js file with my saved version .
Al i get are the correct blocktitles on screen , but the switches and blinds are not on the screen??

Anybody a idea why this is?

I know that the IDX numbers changed with the new installation , but after changing a few (the 'rolluik') to the new IDX numbers , nothing shows...

The CONFIG,js file:
Spoiler: show
var config = {}
//var _EDIT_MODE = false;
//var _USE_AUTO_POSITIONING = true;
config['auto_positioning'] = 0;
config['domoticz_ip'] = 'http://192.***.*.***:8080';
config['app_title'] = 'Dagger-Ticz';
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'] = 'hours';
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'] = 0;
config['gm_zoomlevel'] = 0;
config['gm_latitude'] = 0;
config['gm_longitude'] = 0;
config['wu_api'] = '***********';
config['wu_city'] = '******';
config['wu_name'] = 0;
config['wu_country'] = 'BE';
config['idx_moonpicture'] = 2;
config['switch_horizon'] = 0;
config['host_nzbget'] = 0;
config['spot_clientid'] = 0;
config['garbage_company'] = 'ical';
config['garbage_icalurl'] = 'www.limburg.net/ics/afvalkalender/72037/9938/31/0';
config['garbage_zipcode'] = '3930';
config['garbage_street'] = '******';
config['garbage_housenumber'] = '****';
config['garbage_maxitems'] = '6';
config['garbage_width'] = '12';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 1;
config['use_favorites'] = 1;
config['last_update'] = 0;
config['hide_topbar'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 0;
config['garbage_hideicon'] = 0;

var _LANGUAGE = 'nl_NL';
var _WEATHER_CITY = '*****';
var _WEATHER_COUNTRY = 'BE';
var _USE_AUTO_POSITIONING = true;
var _USE_FAVORITES = true;
var _HIDE_SECONDS_IN_CLOCK = false;
var _HIDE_MEDIAPLAYER_WHEN_OFF = false;
var _STANDBY_AFTER_MINUTES = 1;
var _USE_BEAUFORT = true;
var _TRANSLATE_SPEED = false;
var _SHOW_LASTUPDATE = false;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _IDXmoonpicture = 13; //index of the uservariabele MoonPicture
var _SCREENSLIDER_EFFECT = 'slide';
var _CLOCK_BOSS = 'RedBoss';

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:12, channels: [4,31,36,460,46,34,24,411,39,107], maxitems: 5 }

var calendars = {}
calendars.business = { icon: 'fa-calendar', maxitems: 6, url: 'https://calendar.google.com/calendar/', icalurl: 'https://calendar.google.com/calendar/ic ... /basic.ics' }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Arrow Classic Rock","file":"http://91.221.151.155:80/;?.mp3"},
{"track":2,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/ ... ive_96.mp3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"192","file":"http://188.213.230.36:8030/stream"},
{"track":5,"name":"538 Hitzone","file":"http://playerservices.streamtheworld.co ... PSTR11.mp3 "},
];

var buttons = {}
buttons.buienradar = {width:12, isimage:true, image: 'https://api.buienradar.nl/image/1.0/Rad ... =350&h=220', url: 'https://www.weeronline.nl/Europa/Belgie/Achel/4055780'}
buttons.calendar = {width:6, icon: 'fa-calendar', title: 'Agenda', url: 'https://calendar.google.com/calendar/em ... e/Brussels" style="border: 2" width="1300" height="800" frameborder="0" scrolling="no">'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:6, icon: 'fa-newspaper-o', title: 'Hbvl', url: 'http://www.hbvl.be'}
buttons.moon = {width:12, isimage:true, refreshimage:60000, image: 'moon'}
buttons.cam_voor = { width:6, isimage:true, refresh:2000, url: 'http://***********/videostream.asf?user=admin&pwd=d6g6a4a2&resolution=64&rate=0' }

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

blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Schakelaars';

blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Het Weer';

blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'RPI CPU';
blocks['blocktitle_4']['icon'] = 'rpi.png';

blocks['blocktitle_5'] = {}
blocks['blocktitle_5']['type'] = 'blocktitle';
blocks['blocktitle_5']['title'] = 'Maan';

blocks['blocktitle_6'] = {}
blocks['blocktitle_6']['type'] = 'blocktitle';
blocks['blocktitle_6']['title'] = 'Kwh Verbruik';

blocks['70'] = {} //rolluik 1
blocks['70']['width'] = 12;

blocks['71'] = {} //rolluik 2
blocks['71']['width'] = 12;

blocks['72'] = {} //rolluik 3
blocks['72']['width'] = 12;

blocks['73'] = {} //rolluik 4
blocks['73']['width'] = 12;

blocks['75'] = {} //rolluik 1-2-3-4
blocks['75']['width'] = 12;

blocks['s1'] = {} // rolluik 1-2
blocks['s1']['width'] = 12;
blocks['s1']['hide_lastupdate'] = true;
blocks['s1']['image'] = 'Blinds48_Off.png';

blocks['s2'] = {}
blocks['s2']['width'] = 12;
blocks['s2']['hide_lastupdate'] = true;
blocks['s2']['image'] = 'Blinds48_Off.png';

blocks['s3'] = {} //Woonkamer Led + Wand
blocks['s3']['width'] = 4;
blocks['s3']['hide_lastupdate'] = true;
blocks['s3']['image'] = 'Switch48_On.png';

blocks['s4'] = {} //Woonkamer Plafond Voor + Achter
blocks['s4']['width'] = 4;
blocks['s4']['hide_lastupdate'] = true;
blocks['s4']['image'] = 'Switch48_On.png';

blocks['7'] = {}
blocks['7']['width'] = 8;

blocks['8'] = {}
blocks['8']['width'] = 8;

blocks['9'] = {}
blocks['9']['width'] = 8;

blocks['10'] = {}
blocks['10']['width'] = 8;

blocks['11'] = {}
blocks['11']['width'] = 8;

blocks['12'] = {}
blocks['12']['width'] = 8;

blocks['16'] = {}
blocks['16']['width'] = 8;

blocks['22'] = {} //*RPI Temp
blocks['22']['width'] = 4;
blocks['22']['switch'] = true;
blocks['22']['image'] = 'rpi1.png';

blocks['21'] = {}
blocks['21']['width'] = 4;
blocks['21']['switch'] = true;
blocks['21']['image'] = 'rpi1.png';

blocks['23'] = {}
blocks['23']['width'] = 4;
blocks['23']['switch'] = true;
blocks['23']['image'] = 'rpi1.png';

blocks[57] = {} // MAAN OP
blocks[57]['title'] = 'Under';
blocks[57]['width'] = 8;

blocks[58] = {} // MAAN ONDER
blocks[58]['title'] = 'Up';
blocks[58]['width'] = 8;

blocks[59] = {} // MAAN PERS
blocks[59]['title'] = 'Moon %';
blocks[59]['width'] = 8;

blocks[60] = {} // MAAN LEEFTIJD
blocks[60]['title'] = 'Phase';
blocks[60]['width'] = 8;

blocks[61] = {} // MAAN PHASE
blocks[61]['title'] = 'Phase';
blocks[61]['width'] = 8;

blocks[63] = {} // alecto weerstation
blocks[63]['width'] = 12;
blocks[63]['hide_lastupdate'] = true;

blocks[68] = {} // Kwh meter Keuken
blocks[68]['width'] = 3;
blocks[68]['hide_lastupdate'] = true;

blocks[17] = {} //Aanrecht
blocks[17]['width'] = 4;
blocks[17]['image'] = 'Switch48_On.png';

blocks[74] = {} //Keuken
blocks[74]['width'] = 4;
blocks[74]['image'] = 'Switch48_On.png';

blocks[77] = {} //Alle lampen aan of uit KEUKEN
blocks[77]['width'] = 4;
blocks[77]['image'] = 'Switch48_On.png';

blocks[127] = {} //Gang Achter
blocks[127]['width'] = 4;
blocks[127]['image'] = 'Switch48_On.png';

blocks[128] = {} //Vestiere Achter
blocks[128]['width'] = 4;
blocks[128]['image'] = 'Switch48_On.png';

blocks[126] = {} //Gang + Vestiere Achter
blocks[126]['width'] = 4;
blocks[126]['image'] = 'Switch48_On.png';

blocks[130] = {} //Kwh Achter
blocks[130]['width'] = 3;
blocks[130]['hide_lastupdate'] = true;

blocks[136] = {} //slk1
blocks[136]['width'] = 4;
blocks[136]['image'] = 'Switch48_On.png';

blocks[137] = {} //Gang Boven
blocks[137]['width'] = 4;
blocks[137]['image'] = 'Switch48_On.png';

blocks[135] = {} //Alle lampen aan of uit gang Boven + onder
blocks[135]['width'] = 4;
blocks[135]['image'] = 'Switch48_On.png';

blocks[138] = {} //Kwh Gang Onder + Boven
blocks[138]['width'] = 3;
blocks[138]['hide_lastupdate'] = true;

//blocks[90] = {} //MiLight Zone ALL
//blocks[90]['width'] = 12;
//blocks[90]['image'] = 'Switch48_On.png';

//blocks[91] = {} //MiLight woonkamer plafond
//blocks[91]['width'] = 6;
//blocks[91]['image'] = 'Switch48_On.png';

//blocks[92] = {} //MiLight Zone 2
//blocks[92]['width'] = 12;
//blocks[92]['image'] = 'Switch48_On.png';

//blocks[93] = {} //MiLight Zone 3
//blocks[93]['width'] = 12;
//blocks[93]['image'] = 'Switch48_On.png';

//blocks[94] = {} //MiLight Zone 4
//blocks[94]['width'] = 12;
//blocks[94]['image'] = 'Switch48_On.png';

blocks[243] = {} //Stoomkoker
blocks[243]['width'] = 4;
blocks[243]['image'] = 'air.png';

blocks[123] = {} //Kerstverlichting
blocks[123]['width'] = 4;
blocks[123]['image'] = 'Switch48_On.png';

blocks[220] = {} //Computertafel
blocks[220]['width'] = 4;
blocks[220]['image'] = 'Switch48_On.png';

blocks[169] = {} //Woon-Led
blocks[169]['width'] = 4;
blocks[169]['image'] = 'Switch48_On.png';

blocks[176] = {} //Kwh Fibaro_1
blocks[176]['width'] = 3;
blocks[176]['hide_lastupdate'] = true;

blocks[172] = {} //Woon-Wand
blocks[172]['width'] = 4;
blocks[172]['image'] = 'Switch48_On.png';

blocks[178] = {} //Kwh Fibaro_2
blocks[178]['width'] = 3;
blocks[178]['hide_lastupdate'] = true;

blocks[211] = {} //Woon Plafond Computer
blocks[211]['width'] = 4;
blocks[211]['image'] = 'Switch48_On.png';

blocks[217] = {} //Kwh Fibaro_WK CPU
blocks[217]['width'] = 3;
blocks[178]['hide_lastupdate'] = true;

blocks[208] = {} //Woon Plafond TV
blocks[208]['width'] = 4;
blocks[208]['image'] = 'Switch48_On.png';

blocks[215] = {} //Kwh Fibaro_WK TV
blocks[215]['width'] = 3;
blocks[178]['hide_lastupdate'] = true;

var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',70,71,72,73,74,'s1','s2']
columns[1]['width'] = 2;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_2',89,74,77,127,128,126,136,137,135,169,172,'s3',211,208,'s4',243,123,220,'blocktitle_6',68,130,138,176,178,217,215]
columns[2]['width'] = 7;

columns[3] = {}
columns[3]['blocks'] = [buttons.calendar,buttons.nunl,'blocktitle_4',22,21,23,'blocktitle_3','currentweather_big','weather',buttons.buienradar];
columns[3]['width'] = 3;

columns[4] = {}
columns[4]['blocks'] = ['clock','sunrise',tvguide.dutch,'garbage',calendars.business,'streamplayer']
columns[4]['width'] = 3;

columns[5] = {}
columns[5]['width'] = 3;
columns[5]['blocks'] = []

columns[6] = {}
columns[6]['blocks'] = ['blocktitle_5',buttons.moon,57,58,59]
columns[6]['width'] = 2;

columns[7] = {}
columns[7]['blocks'] = ['blocktitle_3',63,7,8,10,11]
columns[7]['width'] = 2;

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

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

screens[2] = {}
screens[2]['background'] = 'bg3.jpg';
screens[2]['columns'] = [4,6,7,8]

screens[3] = {}
screens[3]['background'] = 'bg4.jpg';
screens[3]['columns'] = [11]

Re: dashtic won't show switches after reinstall

Posted: Thursday 27 June 2019 23:22
by HansieNL
Try changing:
config['auto_positioning'] = 0;
config['use_favorites'] = 0;

And you have old variabels in your config.js.. I think it’s beter to remove them.

Re: dashtic won't show switches after reinstall

Posted: Thursday 27 June 2019 23:48
by Lokonli
And add far or fas in front of your icon names.

Re: dashtic won't show switches after reinstall

Posted: Friday 28 June 2019 7:54
by dagger38
Nothing worked , so i switched to the older version , and bingo
After changing all the idx numbers to the new one's , it's getting there! not 100% but close

Re: dashtic won't show switches after reinstall

Posted: Friday 28 June 2019 8:58
by Lokonli
dagger38 wrote: Friday 28 June 2019 7:54 Nothing worked , so i switched to the older version , and bingo
After changing all the idx numbers to the new one's , it's getting there! not 100% but close
Did you change the 'use_favorites' on line 44 from the CONFIG.js you posted?
(The one on line 66 is old style config, and isn't used)

After I changed line 44 your CONFIG.js is working on my system.

Can you check whether the Domoticz connection is working?
In Dashticz click on the settings icon (top right), and then on the info tab the Domoticz version should be reported.

Re: dashtic won't show switches after reinstall

Posted: Friday 05 July 2019 21:08
by dagger38
Solved after i put the old custom.css in the dashticz_V2 directory :-)