Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by AndreFR »

hi All,
I'm experiencing a weird problem, Dashticz was running fine till yesterday afternoon. Steps I did so far:
1) copied the CONFIG.js from Rob, started with only changing the IP address from Domoticz => no result, started to commend out almost everything, still no result
2) removed the Dashticz folder and re-installed it, still no working Dashticz :(
in the browser console I'm getting the following:
jquery.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js:4
ajax @ jquery.min.js:4
loadFiles @ main.js?v=1514968064669:34
(anonymous) @ index.html:66
f @ head.js:6
(anonymous) @ head.js:6
(anonymous) @ head.js:6
o @ head.js:6
jquery.min.js:4 XMLHttpRequest cannot load file:///home/pi/domoticz/www/dashboard/custom/CONFIG.js?_=1514968065255. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

Any idea how to solve this?
kottick
Posts: 4
Joined: Tuesday 19 December 2017 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by kottick »

aiolos wrote: Wednesday 03 January 2018 0:49 That's because of the security settings in your browser. I'm not sure if you can disable that (and actually I hope not). This message is to prevent websites to post usernames and password to other sites than the one you think (imagine the site of your bank, where malicious code is injected, which sends your username and password to some people with wrong intentions).

In this case annoying and I'm not sure you can easily get round it.
I don't think thats the problem. In the browser its visible without any problem. In dashticz i get constant the question for password and username, but no webcam stream. Only in popup screen.

Greetz,
Kottick
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by AndreFR »

@Kottick, I've got this on various browsers... Strange, as it worked before without a problem... will try to dig further in the CONFIG.js file
kottick
Posts: 4
Joined: Tuesday 19 December 2017 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by kottick »

AndreFR wrote: Wednesday 03 January 2018 14:58 @Kottick, I've got this on various browsers... Strange, as it worked before without a problem... will try to dig further in the CONFIG.js file
I think in the javascript ;-)
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by AndreFR »

EdwinK wrote: Thursday 13 April 2017 23:02 Just this

Code: Select all

jquery.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send	@	jquery.min.js:4
ajax	@	jquery.min.js:4
(anonymous)	@	main.js?v=108:16
then
@EdwinK; how did you solve this error?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - General Discussions

Post by robgeerts »

@Andre, how are you calling your dashticz?
It seems like you are not opening it from a webserver because it tries to get the CONFIG.js from an address starting with: file://
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by AndreFR »

robgeerts wrote: Wednesday 03 January 2018 21:45 @Andre, how are you calling your dashticz?
It seems like you are not opening it from a webserver because it tries to get the CONFIG.js from an address starting with: file://
@Rob, i use : http://192.168.178.178/dashboard/ Port 80
The thing is that it worked before and since yesterday I get the ‘white ‘ page :|
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by EdwinK »

AndreFR wrote: Wednesday 03 January 2018 19:15
EdwinK wrote: Thursday 13 April 2017 23:02 Just this

Code: Select all

jquery.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send	@	jquery.min.js:4
ajax	@	jquery.min.js:4
(anonymous)	@	main.js?v=108:16
then
@EdwinK; how did you solve this error?
Cnt remember, it's almost a year old. I think Rob did a update then.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by AndreFR »

EdwinK wrote: Thursday 04 January 2018 9:39
AndreFR wrote: Wednesday 03 January 2018 19:15
EdwinK wrote: Thursday 13 April 2017 23:02 Just this

Code: Select all

jquery.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send	@	jquery.min.js:4
ajax	@	jquery.min.js:4
(anonymous)	@	main.js?v=108:16
then
@EdwinK; how did you solve this error?
Cnt remember, it's almost a year old. I think Rob did a update then.
All, it's working again, I've restarted from scratch with the CONFIG_DEFAULT.js from custom2 folder. I've to recreate it, but at least the defaults are working again...

Thanks
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz - General Discussions

Post by jake »


jake wrote:With the beta's of 2 days before,I had the electricity, solar panel yield and gas blocks showing default titles instead of custom. Today, with a fresh git pull, it solved itself for electricity, but the PVoutput.org splitted block (power and energy) both show the default title 'Solar Panel Yield'.

It was solved before, after mentioning it in this topic

The gas blocks is a different story:
It used to display today's values only.
With the latest beta:
- It creates 2 blocks, both for today and for total (when I use the _1 or _2 I can solve that)
- It gives the totals the custom title
- It gives the today's values the default title 'gas vandaag'
I was able to solve the 'gas vandaag' default title: since the _1 and _2 had to be added to the column definition to make the right choice between today and total usage, I did not add the _1 to the block definition. In the block definition, you also define the custom title. Now it is working fine:

Code: Select all

blocks['186_1'] = {}
blocks['186_1']['width'] = 4;
blocks['186_1']['title'] = 'Verwarming' //gasverbruik

blocks['181_1'] = {}
blocks['181_1']['width'] = 4;
blocks['181_1']['title'] = 'Tapwater' //gasverbruik
blocks['181_1']['icon'] = 'fa-shower';
The solar system definition blocks are done correctly:

Code: Select all

blocks['39_1'] = {}
blocks['39_1']['width'] = 4;
blocks['39_1']['title'] = 'Opbrengst' // energie vandaag in kWh

blocks['39_2'] = {}
blocks['39_2']['width'] = 4;
blocks['39_2']['title'] = 'Opbrengst' //vermogen in Watt 
blocks['39_2']['unit'] = 'Watt;W';
However the dashboard still displays these 2 blocks with identical title 'Solar Panel Yield'
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - General Discussions

Post by Derik »

how do you set them in the columns?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - General Discussions

Post by Derik »

dear all..
Please some help..
Is there perhaps a simple how to to set the css options.
I was thinking my dash was very good.

I changed 1 ting and mor things are going crazy..
I hope there is some on that can help me with this css.

Code: Select all

/*////////////////  Tekst in de buttons en er onder \\\\\\\\\\\\\\\\\\\\\*/
.col-data .title 	{ font-size: 45px; margin-left: 25px; font-weight: 600; color: deepskyblue; font-variant: small-caps;}
//.col-data span 		{ font-size: 25px; margin-right: 25px; font-weight:220; color: dodgerblue;font-variant: small-caps;}
.col-xs-3     { font-size: 15px; margin-right: 25px; font-weight:20; color: dodgerblue;font-variant: small-caps;} // tekst onder button
Example of my problems....
I was thinking the mid rule works fine..
Only when i use the last rule, my text was better.

When i do a xs-4 there are more things to change ..
Like sunrise or the sunset etc etc

Please.
Thanks
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by renerene »

Does the dialogue between Dashticz and Domoticz only run through devices? Or is It also possible to display/adjust domoticz user variables?
If not, I have to re-programm variables to dummy's.....
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by AndreFR »

I’v Managed the setup to my satisfaction. I’m facing only a strange thing: when I’m accessing my Dashticz from my phone (4g), then I can only see the ‘non-IDX’ part. Everything else is working, except I can’t see my devices. Any idea to solve this? Btw I see them if I access Domoticz....
sailmich
Posts: 232
Joined: Wednesday 17 February 2016 22:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

Re: Dashticz - General Discussions

Post by sailmich »

@all happy new year,
I still need help. I can't move my blinds with arrow up/down. I'm using latest beta. Am I the only one with that issue or am I the only one using blinds?
I have an older beta version that is working with blinds, but can't use it because of other issues.
I investigated some changes in main.js but I don't know if that is the root. When that main.js is the reason, somebody might have a look into it and give me information which part I have to delete and/or change.
working_main.js
(74.93 KiB) Downloaded 58 times
not_working_main.js
(79.33 KiB) Downloaded 52 times
Any help appreciate
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by renerene »

Can someone please help this beginner?

Problem: domoticz devices do not show in dashticz. No communication between them?
See screenshots below: device 68 is missing.

Domoticz version is V3.8798, Dashticz is downloaded and installed last week, V2
In Domoticz a password and username is set;
changing the second line below into "config['domoticz_ip'] = 'http://name:[email protected]:8080';" does not help

UPDATE: the sunrise time in upper right corner only shows up with correct IP address in dashticz confi. So I guess it reads the values from Domoticz, ;there is communication between the two.
But why is device 68 not whowing? (offcourse I have tried with other IDX nummers, same result)

CONFIG.js

Code: Select all

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

var buttons = {}
buttons.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'}

var blocks = {}
blocks[68] = {}
blocks[68]['title'] = 'example';

var columns = {}				
columns[1] = {}
columns[1]['blocks'] = [buttons.buienradar]
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = [68]
columns[2]['width'] = 5; 

columns[3] = {}
columns[3]['blocks'] = ['sunrise']
columns[3]['width'] = 2; 
Image
Image
Last edited by renerene on Saturday 06 January 2018 13:10, edited 2 times in total.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - General Discussions

Post by Derik »

mmm
You mis behind [buttons.buienradar] a ; even al so behind ['sunrise'] you mis a ;
Then your block is not complete.
a block of my:

Code: Select all

blocks[697] = {}
blocks[697]['width'] 			= 2; 
blocks[697]['title'] 			= 'Laad'; // Kamer laders
blocks[697]['icon'] 			= 'fa-battery-three-quarters'; 
blocks[697]['switch'] 			= true; 
blocks[697]['hide_data'] 		= true; 
blocks[697]['show_lastupdate']	= false; 
blocks[697]['protected'] 		= false; 
And your with in buttons is different with the with of your colomn

So try a blank config.
Then step 1 wokr? then step 2 works step3 etc etc.....
You make more then 1 error..
Make sure you have a clean code or check the code online with w3...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by renerene »

You mis behind [buttons.buienradar] a ; even al so behind ['sunrise'] you mis a ;
Yes, i have struggled with the semicolums. There is no explanation on the wiki page.
Then your block is not complete.
from the wiki I understand only the first line is mandatory

Code: Select all

var blocks = {}
And your with in buttons is different with the with of your colomn
The width of the block is relative to the column width it end up in.
So try a blank config.
good idea. Can not make it more blank than the current one ;-)

SOLVED: this line HAS TO BE in the config section

Code: Select all

config['auto_positioning'] = 0;
nldforce
Posts: 14
Joined: Wednesday 27 December 2017 22:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by nldforce »

hello,

i want to view my camera (d-link dcs5009L) on dashticz but i get just a white screen when i click on it. https://ibb.co/gOCgUw
can sombody help me?

the link i rule i got:
buttons.webcam1 = { width:6, isimage:true, refresh:5000, image: 'http://guest:[email protected]/video.c ... lution=VGA', url: 'http://guest:[email protected]/video.c ... lution=VGA'}

when i go to my browser to http://guest:[email protected]/video.c ... lution=VGA the page loads without any problem.
rathmannm
Posts: 15
Joined: Sunday 10 January 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Dashticz - General Discussions

Post by rathmannm »

Hi,

I've looked through the Wiki and searched the forum but couldn't find an answer on a seemingly simple question:

Is it possible to change the font size for the calendar and if so how?

Thanks,
Manuel
Locked

Who is online

Users browsing this forum: No registered users and 1 guest