Dashticz - Beta 2.5.1

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dashticz - Beta 2.5.1

Post by Lokonli »

The new beta 2.5.1 has been released today. This beta release contains quite some fixes as well as new functionality:

Overview
  • Fix for broken TV Guide.
  • Fix for unnecessary 'Domoticz connection'-error.
    The annoying red text 'Domoticz connection'-error should be gone.
  • Add Katwijk garbage provider
  • Custom size of popup windows
    See below for how to use this feature.
  • Some backgrounds and images
    Three new background images and a microphone image (on/off)
  • Add support of variables as block type.
    See below
  • Correct detection of CM180 and CM180i as energy devices.
  • Slider improvements (used by Dimmers)
    Less frequent calls to Domoticz while sliding to improve performance.
  • Addition of PHP based CORS proxy
    See below
  • Fix for Forecast.io refresh in a frame
    There was an issue that colors were incorrect after a refresh. This has been fixed.
Custom size of popup windows
To change the default size of the graph popup windows add the following style blocks to your custom.css:

Code: Select all

.graphheight {
height: 400px;
}

.graphwidth {
width: 400px;
}
To set a specific width of the frame of a button add 'framewidth' and/or 'frameheight' setting to the block definition in CONFIG.js like:

Code: Select all

buttons.buienradar	= { key: 'buienradar', width:12, isimage:true, refresh:6000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=256&h=256', url:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.06022&lng=4.39288&overname=2&zoom=13&naam=2496hx&size=5&voor=1', framewidth:580, frameheight: 520};
You can do the same for a popup window, like:

Code: Select all

blocks[107]['openpopup'] = { url: 'http://www.nos.nl', auto_close : 500, frameheight:200};
To remove the close button of the graph popup add the following text to custom.js:

Code: Select all

.graphclose { display: none; }
To remove the close button of the block-popup or button-popup add the following text to custom.js:

Code: Select all

.frameclose { display: none; }
Variables as block type
To select a Domoticz variable add 'v' before the variable idx. Example for variable idx 1:

Code: Select all

blocks['v1'] = {}
After that you can use 'v1' in your column definitions in CONFIG.js as usual.

A list of all Domoticz variables can be obtained via:

Code: Select all

http://[DomoticzIP:Port]/json.htm?type=command&param=getuservariables
PHP based CORS proxy
To be able to load resources from other domains, like tvguide data and news updates, we need a CORS proxy (Cross Origin Resouce Sharing). Public CORS proxies exist on the internet, like cors-anywhere.herokuapp.com. These public CORS proxies might be slow or not available at all.

A basic PHP based CORS proxy has been integrated into Dashticz.

For normal use just remove the config['default_cors_url'] from your CONFIG.js and the internal CORS proxy will be used.

If you prefer to use a different CORS proxy you can define it in CONFIG.js as usual:

Code: Select all

config['default_cors_url'] = 'http://cors-anywhere.herokuapp.com'
In case PHP is not installed it falls back to the defined CORS proxy in config['default_cors_url']. In case config['default_cors_url'] is not set, it will use cors-anywhere.herokuapp.com by default.

Enjoy :)
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 - Beta 2.5.1

Post by EdwinK »

Mm... I now have this after updating to latest beta.
Image
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

Hmm, that's strange. Do you already have an idea what the issue is?
Garbage seems to work. No Domoticz info.
Do you see any error in the developer window in Chrome?
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 - Beta 2.5.1

Post by EdwinK »

Not a clue at the moment. Looking into the developer thing in a moment. :)
plugins.js:28 The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
(anonymous) @ plugins.js:28
(anonymous) @ plugins.js:49
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=1544519574440:38
(anonymous) @ (index):72
f @ head.js:6
(anonymous) @ head.js:6
(anonymous) @ head.js:6
o @ head.js:6
load (async)
rt @ head.js:6
b @ head.js:6
(anonymous) @ head.js:6
u @ head.js:6
lt @ head.js:6
(anonymous) @ (index):65
head.js:6 [Violation] 'load' handler took 1467ms
[Violation] Forced reflow while executing JavaScript took 40ms
10[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
[Violation] Forced reflow while executing JavaScript took 94ms
(index):274 GET https://ssl.google-analytics.com/ga.js net::ERR_CONNECTION_REFUSED
(anonymous) @ (index):274
(anonymous) @ (index):275
jquery.min.js:4 [Violation] 'load' handler took 332ms
[Violation] Forced reflow while executing JavaScript took 71ms
cast_sender.js?loadCastFramework=1:2 GET chrome-extension://invalid/ net::ERR_FAILED
l @ cast_sender.js?loadCastFramework=1:2
m @ cast_sender.js?loadCastFramework=1:1
(anonymous) @ cast_sender.js?loadCastFramework=1:2
(anonymous) @ cast_sender.js?loadCastFramework=1:2
cast_framework.js:57 [Deprecation] document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 for more details.
(anonymous) @ cast_framework.js:57
(anonymous) @ cast_framework.js:61
cast_framework.js:52 [Deprecation] Element.createShadowRoot is deprecated and will be removed in M73, around March 2019. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 for more details.
V @ cast_framework.js:52
X.createdCallback @ cast_framework.js:55
(anonymous) @ cast_framework.js:57
(anonymous) @ cast_framework.js:61
[Violation] Forced reflow while executing JavaScript took 36ms
cast_sender.js?loadCastFramework=1:2 GET chrome-extension://invalid/ net::ERR_FAILED
l @ cast_sender.js?loadCastFramework=1:2
m @ cast_sender.js?loadCastFramework=1:1
(anonymous) @ cast_sender.js?loadCastFramework=1:1
error (async)
l @ cast_sender.js?loadCastFramework=1:2
m @ cast_sender.js?loadCastFramework=1:1
(anonymous) @ cast_sender.js?loadCastFramework=1:2
(anonymous) @ cast_sender.js?loadCastFramework=1:2
VM815:34 Uncaught TypeError: Cannot read property 'media' of undefined
at window.__onGCastApiAvailable (eval at globalEval (jquery.min.js:2), <anonymous>:34:52)
at b (cast_sender.js?loadCastFramework=1:2)
at n (cast_sender.js?loadCastFramework=1:2)
at m (cast_sender.js?loadCastFramework=1:1)
at HTMLScriptElement.<anonymous> (cast_sender.js?loadCastFramework=1:1)
window.__onGCastApiAvailable @ VM815:34
b @ cast_sender.js?loadCastFramework=1:2
n @ cast_sender.js?loadCastFramework=1:2
m @ cast_sender.js?loadCastFramework=1:1
(anonymous) @ cast_sender.js?loadCastFramework=1:1
error (async)
l @ cast_sender.js?loadCastFramework=1:2
m @ cast_sender.js?loadCastFramework=1:1
(anonymous) @ cast_sender.js?loadCastFramework=1:1
error (async)
l @ cast_sender.js?loadCastFramework=1:2
m @ cast_sender.js?loadCastFramework=1:1
(anonymous) @ cast_sender.js?loadCastFramework=1:2
(anonymous) @ cast_sender.js?loadCastFramework=1:2
onloadwff.js:58 [Violation] 'setTimeout' handler took 58ms
jquery.min.js:3 [Violation] 'setInterval' handler took 168ms
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

I guess it's chromecast related. If you remove chromecast from your CONFIG.js do you still have issues?

I'll try to reproduce here.
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 - Beta 2.5.1

Post by EdwinK »

Removed chromecast, but still the same problem.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

Can you post the errorlog again? (without Chromecast)
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by renerene »

This linux noob has no idea how to upgrade from version 2.4
please add instructions to wiki: https://www.domoticz.com/wiki/Dashticz_ ... stallation
MatsL
Posts: 7
Joined: Monday 24 February 2014 19:11
Target OS: Linux
Domoticz version:

Re: Dashticz - Beta 2.5.1

Post by MatsL »

Not getting the new variables thing working, just shows up as a blank space in the dashboard
The other blocks are showing so the config is working

related parts from config, skipped out the blocks that are not variables:

Code: Select all

var blocks = {}

blocks['v20'] = {}
blocks['v20']['width'] = 4;
blocks['v20']['title'] = 'Heater Time'

blocks['v14'] = {}
blocks['v14']['width'] = 4;
blocks['v14']['title'] = 'Dishwasher Status'

blocks['v6'] = {}

blocks['v16'] = {}

var columns = {}

columns[1] = {};
columns[1]['blocks'] = ['v21', 'v6', 'v20', '1184_1', '1184_2', 'v16', 'v14', '1171_1', '1171_2'];
columns[1]['width'] = 4;
And this an example from the getuservariables json.htm

{
"LastUpdate": "2018-12-11 19:09:00",
"Name": "dishwasher_status",
"Type": "0",
"Value": "1",
"idx": "14"
},



And renerene: it is in the wiki
cd into the dashticz folder and do git pull or sudo git pull
but save your configs before updating
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

renerene wrote: Tuesday 11 December 2018 18:36 This linux noob has no idea how to upgrade from version 2.4
please add instructions to wiki: https://www.domoticz.com/wiki/Dashticz_ ... stallation
ok :)
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

MatsL wrote: Tuesday 11 December 2018 20:49 Not getting the new variables thing working, just shows up as a blank space in the dashboard
The other blocks are showing so the config is working

related parts from config, skipped out the blocks that are not variables:

Code: Select all

var blocks = {}

blocks['v20'] = {}
blocks['v20']['width'] = 4;
blocks['v20']['title'] = 'Heater Time'

blocks['v14'] = {}
blocks['v14']['width'] = 4;
blocks['v14']['title'] = 'Dishwasher Status'

blocks['v6'] = {}

blocks['v16'] = {}

var columns = {}

columns[1] = {};
columns[1]['blocks'] = ['v21', 'v6', 'v20', '1184_1', '1184_2', 'v16', 'v14', '1171_1', '1171_2'];
columns[1]['width'] = 4;
And this an example from the getuservariables json.htm

{
"LastUpdate": "2018-12-11 19:09:00",
"Name": "dishwasher_status",
"Type": "0",
"Value": "1",
"idx": "14"
},



And renerene: it is in the wiki
cd into the dashticz folder and do git pull or sudo git pull
but save your configs before updating
Your config seems to be ok. Do others have the variable block working?

Can you open developer mode in Chrome (F12) and look for errors in the console tab? (after reloading Dashticz)
Can you also search for the network request to Domoticz for the variables and check the result?
(on the network tab, type 'variables' in the filter box. The domoticz variable requests should appear. Select a network request. Click on the 'response'-tab of the request.)
Do you see all variables?
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by HansieNL »

@Lokonli : I got my variable block working. I'm using your GitHub version.
Blah blah blah
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by renerene »

And renerene: it is in the wiki
cd into the dashticz folder and do git pull or sudo git pull
but save your configs before updating
Thank you, it works.
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 - Beta 2.5.1

Post by EdwinK »

Lokonli wrote: Tuesday 11 December 2018 11:44 Can you post the errorlog again? (without Chromecast)
Nothing shows up now. At least, nothing that didn't already.
plugins.js:28 The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
(anonymous) @ plugins.js:28
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
ssl.google-analytics.com/ga.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
So, must be in config.js or one of the other files
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

EdwinK wrote: Wednesday 12 December 2018 10:31
Lokonli wrote: Tuesday 11 December 2018 11:44 Can you post the errorlog again? (without Chromecast)
Nothing shows up now. At least, nothing that didn't already.
plugins.js:28 The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
(anonymous) @ plugins.js:28
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
ssl.google-analytics.com/ga.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
So, must be in config.js or one of the other files
Can you add the following to your CONFIG.js and try again:

Code: Select all

config['disable_googleanalytics'] = true;
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 - Beta 2.5.1

Post by EdwinK »

Now I get this:
plugins.js:28 The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
(anonymous) @ plugins.js:28
(anonymous) @ plugins.js:49
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=1544689644864:38
(anonymous) @ (index):73
f @ head.js:6
(anonymous) @ head.js:6
(anonymous) @ head.js:6
o @ head.js:6
load (async)
rt @ head.js:6
b @ head.js:6
(anonymous) @ head.js:6
u @ head.js:6
lt @ head.js:6
(anonymous) @ (index):65
head.js:6 [Violation] 'load' handler took 1494ms
[Violation] Forced reflow while executing JavaScript took 31ms
[Violation] Forced reflow while executing JavaScript took 65ms
(index):274 GET https://ssl.google-analytics.com/ga.js net::ERR_CONNECTION_REFUSED
(anonymous) @ (index):274
(anonymous) @ (index):275
[Violation] Forced reflow while executing JavaScript took 43ms
10[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
jquery.min.js:4 [Violation] 'load' handler took 260ms
[Violation] Forced reflow while executing JavaScript took 63ms
onloadwff.js:58 [Violation] 'setTimeout' handler took 70ms
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

There is still an error in your log:
(index):274 GET https://ssl.google-analytics.com/ga.js net::ERR_CONNECTION_REFUSED

I'm not sure what the consequences are of this error, and I don't know who is making the request, since you already disabled google-analytics via the disable_googleanalytics parameter in your CONFIG.js.
Are you using some kind of privacy blocker? To find out whether the call to google-analytics is causing the problems you have could you (temporarily) enable network access to google-analytics?
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 - Beta 2.5.1

Post by EdwinK »

Disabled Pi-hole server:
Active resource loading counts reached to a per-frame limit while the tab is in background. Network requests will be delayed until a previous loading finishes, or the tab is foregrounded. See <URL> for more details
plugins.js:28 The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
(anonymous) @ plugins.js:28
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
jquery.min.js:4 [Violation] 'load' handler took 177ms
[Violation] Forced reflow while executing JavaScript took 40ms
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - Beta 2.5.1

Post by poudenes »

Hi All,

try this beta. Calendar is working on running version 2.4.6.
But with this beta it say i need a working running php webserver...
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Beta 2.5.1

Post by Lokonli »

EdwinK wrote: Thursday 13 December 2018 16:34 Disabled Pi-hole server:
Active resource loading counts reached to a per-frame limit while the tab is in background. Network requests will be delayed until a previous loading finishes, or the tab is foregrounded. See <URL> for more details
plugins.js:28 The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
(anonymous) @ plugins.js:28
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
jquery.min.js:4 [Violation] 'load' handler took 177ms
[Violation] Forced reflow while executing JavaScript took 40ms
Does the screen still looks the same as in one of your previous posts?
Can you post your CONFIG.js?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest