Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Locked
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: New Dashboard Design

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

Re: New Dashboard Design

Post 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 
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
gjaa
Posts: 38
Joined: Thursday 12 February 2015 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: New Dashboard Design

Post by gjaa »

I did a clean install,

FiIled the both CONFIG files and this is wat I see
screen.png
screen.png (101.94 KiB) Viewed 2163 times
What is going wrong????
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design

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

Re: New Dashboard Design

Post 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.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design

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

Re: New Dashboard Design

Post 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);
	}
}
Blah blah blah
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post 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
Bob123bob
Posts: 31
Joined: Monday 09 March 2015 7:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design

Post 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
User avatar
Dynamic
Posts: 109
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: New Dashboard Design

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

Code: Select all

var _LANGUAGE='nl_NL';
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

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

Code: Select all

var _LANGUAGE='nl_NL';
Fixed this, I think, I dont get any errors anymore...
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

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

Re: New Dashboard Design

Post 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.
Blah blah blah
User avatar
gjaa
Posts: 38
Joined: Thursday 12 February 2015 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: New Dashboard Design

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

Great! Now I can go to sleep without any worries! :)

Verstuurd vanaf mijn SM-G930F met Tapatalk
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

A whole day without updates for the dashboard. Now what...

:)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Baal
Posts: 1
Joined: Monday 03 April 2017 8:51
Target OS: -
Domoticz version:
Contact:

Re: New Dashboard Design

Post 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 ? :)
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

If you have the latest version, you can add the following on top of CONFIG.js:

Code: Select all

var _LANGUAGE = 'en_US';

EdKo66 wrote: A whole day without updates for the dashboard. Now what...
Haha, spent some time with the kids ;)
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post 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
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Dashboard Design

Post by HansieNL »

Small cosmetic change:
- Removed the hover class
- Removed text "Set "

Image Image

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 />';
Blah blah blah
Locked

Who is online

Users browsing this forum: No registered users and 1 guest