Page 12 of 184
Re: New Dashboard Design
Posted: Saturday 01 April 2017 14:15
by SwordFish
Nice Dashboard, keep up the good work.
I downloaded the latest version and everything is working.
But the train and traffic information doesn't work, I get no information when i click on it ( in the config if filled in true)?
Is there something I do wrong?
Re: New Dashboard Design
Posted: Saturday 01 April 2017 15:11
by EdwinK
Indeed, when checking the console (F12 in Chrome) I see the following with a red warning:
Code: Select all
GET http://www.feedrapp.info/?callback=jQuery112408370309590369325_1491052023481&q=https%3A%2F%2Fwww.rijdendetreinen.nl%2Frss%2F&_=1491052023482
GET http://www.feedrapp.info/?callback=jQuery112408370309590369325_1491052023479&q=http%3A%2F%2Fwww.vid.nl%2FVI%2F_rss&_=1491052023483
Re: New Dashboard Design
Posted: Saturday 01 April 2017 15:18
by gjaa
I did a clean install,
FiIled the both CONFIG files and this is wat I see

- screen.png (101.94 KiB) Viewed 2497 times
What is going wrong????
Re: New Dashboard Design
Posted: Saturday 01 April 2017 15:26
by HansieNL
@gjaa
I hoped you could tell me... I got the same problem with 2 different browsers???
Dashboard also keeps trying to load long.
What virusscanner are you using? I use Kaspersky and after pause it works. I got also a message about fonts.net
Re: New Dashboard Design
Posted: Saturday 01 April 2017 15:47
by EdwinK
Maybe a stupid question, but did you check if the ip-address of your domoticz-server is correct. I mixed up a number and got the result you are showing.
Re: New Dashboard Design
Posted: Saturday 01 April 2017 15:58
by HansieNL
I think the virusscanner did stop loading the page because of an external file.
After pausing the scanner the page loaded correctly. I didn't change the ip address.
Re: New Dashboard Design
Posted: Saturday 01 April 2017 16:02
by HansieNL
@robgeerts
Can you add the P1 Smart Meter USB please? And thanks again.
Code: Select all
if(data.result[r]['HardwareType']=='P1 Smart Meter USB'){
if(data.result[r]['Type']=='P1 Smart Meter' && data.result[r]['SubType']=='Energy'){
var html = getStateBlock(data.result[r]['idx']+'sub1','fa fa-plug','Energieverbruik',data.result[r]['Usage']);
$('.states').append(html);
var html = getStateBlock(data.result[r]['idx']+'sub2','fa fa-plug','Energie vandaag',data.result[r]['CounterToday']);
$('.states').append(html);
}
if(data.result[r]['Type']=='P1 Smart Meter' && data.result[r]['SubType']=='Gas'){
var html = getStateBlock(data.result[r]['idx'],'fa fa-fire','Gas vandaag',number_format(data.result[r]['CounterToday'],2,',','.')+' m3');
$('.states').append(html);
}
}
Re: New Dashboard Design
Posted: Saturday 01 April 2017 16:15
by robgeerts
Hi guys, will check tonight, not at home right now. I noticed the problems about the train and traffic info too. The external site I'm using is not the best... I'll find another way
Verstuurd vanaf mijn SM-G930F met Tapatalk
Re: New Dashboard Design
Posted: Saturday 01 April 2017 16:30
by Bob123bob
gjaa wrote:I did a clean install,
FiIled the both CONFIG files and this is wat I see
screen.png
What is going wrong????
Same issue here using Safari on a mac
Did a clean install, changed domoticz IP on both conf.js and conf_default.js and have the same result
Looks like there is a issue with lang in console error log, default is language is en (english) not nl
Re: New Dashboard Design
Posted: Saturday 01 April 2017 16:46
by Dynamic
This is the error in the console:
Code: Select all
TypeError: _LANGUAGE is undefined main.js:26:20
<anoniem>
Workaround for the time being:
Put this on top of main.js:
Re: New Dashboard Design
Posted: Saturday 01 April 2017 22:03
by robgeerts
HansieNL wrote:@robgeerts
Can you add the P1 Smart Meter USB please? And thanks again.
Code: Select all
if(data.result[r]['HardwareType']=='P1 Smart Meter USB'){
if(data.result[r]['Type']=='P1 Smart Meter' && data.result[r]['SubType']=='Energy'){
var html = getStateBlock(data.result[r]['idx']+'sub1','fa fa-plug','Energieverbruik',data.result[r]['Usage']);
$('.states').append(html);
var html = getStateBlock(data.result[r]['idx']+'sub2','fa fa-plug','Energie vandaag',data.result[r]['CounterToday']);
$('.states').append(html);
}
if(data.result[r]['Type']=='P1 Smart Meter' && data.result[r]['SubType']=='Gas'){
var html = getStateBlock(data.result[r]['idx'],'fa fa-fire','Gas vandaag',number_format(data.result[r]['CounterToday'],2,',','.')+' m3');
$('.states').append(html);
}
}
Added, could you test this?
Dynamic wrote:This is the error in the console:
Code: Select all
TypeError: _LANGUAGE is undefined main.js:26:20
<anoniem>
Workaround for the time being:
Put this on top of main.js:
Fixed this, I think, I dont get any errors anymore...
Re: New Dashboard Design
Posted: Saturday 01 April 2017 22:03
by robgeerts
gjaa wrote:I did a clean install,
FiIled the both CONFIG files and this is wat I see
screen.png
What is going wrong????
What if you clear your cache?
Or press CTRL + F5 at the same time?
Re: New Dashboard Design
Posted: Saturday 01 April 2017 22:41
by HansieNL
@robgeerts
I'm using the P1 Smart Meter USB and the dashboard myself and works like a charm.

So code is tested already.
Re: New Dashboard Design
Posted: Saturday 01 April 2017 22:50
by gjaa
robgeerts wrote:gjaa wrote:I did a clean install,
FiIled the both CONFIG files and this is wat I see
screen.png
What is going wrong????
What if you clear your cache?
Or press CTRL + F5 at the same time?
Updatet main.js and wetaher.js and everyting is working
Re: New Dashboard Design
Posted: Saturday 01 April 2017 23:00
by robgeerts
Great! Now I can go to sleep without any worries!
Verstuurd vanaf mijn SM-G930F met Tapatalk
Re: New Dashboard Design
Posted: Monday 03 April 2017 8:50
by EdwinK
A whole day without updates for the dashboard. Now what...

Re: New Dashboard Design
Posted: Monday 03 April 2017 9:00
by Baal
irishv wrote:Thanks for creating this. I've been wanting to build a better dashboard to use with a mounted iPad for a while now but could never get started. I run Domoticz on Synology NAS with the Aeon Z-stick.
I downloaded the files and was able to connect to my server, adjust language to english and weather to fahrenheit. My favorites come in, but everything shows as light switches. I'm trying to get contact sensors (doors) and motion sensors to say open/closed and motion/no motion.
Can you tell me how to change the language to english ?

Re: New Dashboard Design
Posted: Monday 03 April 2017 9:37
by robgeerts
If you have the latest version, you can add the following on top of CONFIG.js:
EdKo66 wrote:
A whole day without updates for the dashboard. Now what...
Haha, spent some time with the kids

Re: New Dashboard Design
Posted: Monday 03 April 2017 9:59
by EdwinK
robgeerts wrote:
EdKo66 wrote:
A whole day without updates for the dashboard. Now what...
Haha, spent some time with the kids

Smart choice
Re: New Dashboard Design
Posted: Monday 03 April 2017 16:45
by HansieNL
Small cosmetic change:
- Removed the hover class
- Removed text "Set "
var switchHTML = '<div class="col-md-4
hover transbg block'+data.result[r]['idx']+'" data-light="'+data.result[r]['idx']+'"
switchHTML+='<strong class="title">
Set '+data.result[r]['SetPoint']+'°C</strong><br />';