htmlfile (HTML custom block)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
hkhk
Posts: 21
Joined: Wednesday 15 November 2017 16:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

htmlfile (HTML custom block)

Post 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?
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: htmlfile (HTML custom block)

Post by Lokonli »

What is your Dashticz version?
hkhk
Posts: 21
Joined: Wednesday 15 November 2017 16:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: htmlfile (HTML custom block)

Post by hkhk »

V 3.6 master
hkhk
Posts: 21
Joined: Wednesday 15 November 2017 16:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: htmlfile (HTML custom block)

Post by hkhk »

Just upgraded to 3.7 and now it does work.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest