Page 1 of 2

Dashticz - Beta 2.5.1

Posted: Monday 10 December 2018 22:25
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 :)

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 9:45
by EdwinK
Mm... I now have this after updating to latest beta.
Image

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 10:08
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?

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 10:11
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

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 10:49
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.

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 11:09
by EdwinK
Removed chromecast, but still the same problem.

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 11:44
by Lokonli
Can you post the errorlog again? (without Chromecast)

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 18:36
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

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 20:49
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

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 21:09
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 :)

Re: Dashticz - Beta 2.5.1

Posted: Tuesday 11 December 2018 21:39
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?

Re: Dashticz - Beta 2.5.1

Posted: Wednesday 12 December 2018 1:43
by HansieNL
@Lokonli : I got my variable block working. I'm using your GitHub version.

Re: Dashticz - Beta 2.5.1

Posted: Wednesday 12 December 2018 7:54
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.

Re: Dashticz - Beta 2.5.1

Posted: Wednesday 12 December 2018 10:31
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

Re: Dashticz - Beta 2.5.1

Posted: Wednesday 12 December 2018 13:06
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;

Re: Dashticz - Beta 2.5.1

Posted: Thursday 13 December 2018 9:28
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

Re: Dashticz - Beta 2.5.1

Posted: Thursday 13 December 2018 12:58
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?

Re: Dashticz - Beta 2.5.1

Posted: Thursday 13 December 2018 16:34
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

Re: Dashticz - Beta 2.5.1

Posted: Friday 14 December 2018 11:26
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...

Re: Dashticz - Beta 2.5.1

Posted: Friday 14 December 2018 11:35
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?