Page 1 of 1

htmlfile (HTML custom block)

Posted: Monday 11 January 2021 15:28
by hkhk
Hi,

I followed the manual to create an HTML custom block (want to view my camera's as hls streams since multiple concurrent mjpeg streams crash the browser on android).

so I create the block as follows:

Code: Select all

blocks['hkhk'] = {
    htmlfile: 'webcam.html'
}
and the html file contains to <video> elements.

But when I load it I get 'unknown string block' on console in chrome.

Code: Select all

unknown string block
{type: "hkhk", htmlfile: "webcam.html", c: 1, key: "hkhk", $mountPoint: jQuery.fn.init(1), …}
$mountPoint: jQuery.fn.init(1)
0: div#block_31
length: 1
__proto__: Object(0)
c: 1
entry: "block_31"
htmlfile: "webcam.html"
key: "hkhk"
mountPoint: "#block_31"
type: "hkhk"
width: 12
Any idea what I'm doing wrong.
Could not find any mention of this functionality in the forum so probably isn't used that much?

Re: htmlfile (HTML custom block)

Posted: Monday 11 January 2021 17:09
by Lokonli
What is your Dashticz version?

Re: htmlfile (HTML custom block)

Posted: Monday 11 January 2021 20:37
by hkhk
V 3.6 master

Re: htmlfile (HTML custom block)

Posted: Monday 11 January 2021 20:40
by hkhk
Just upgraded to 3.7 and now it does work.