Page 1 of 1

Custom written text in blocks

Posted: Wednesday 30 October 2019 19:47
by Jimkooper
Hello everyone,,
Is it possible to create blocks that contains own written text?

I want create a screen with some blocks like this
showbox.bio/ tutuapp.uno/ https://vidmate.vet/
4300 (title)
09:00 admin
10:00 coffee
12:00 lunch
15:00 coffee
18:00 done

4330 (title)
12:00 admin
15:00 coffee
18:00 lunch
19:00 coffee
20:00 done

Re: Custom written text in blocks

Posted: Wednesday 30 October 2019 20:41
by Lokonli
Is it static text?

You could create a html file, and show it in a Dashticz frame ...
or create a dummy device in domoticz, and add a custom handler in custom.js.

Re: Custom written text in blocks

Posted: Wednesday 30 October 2019 20:42
by HansieNL
You can create text variables in Domoticz and then create a block for it in Dashticz.
Variable name will be the Dashticz block title.
For linebreaks in the variable text you have to use <br>:

Code: Select all

09:00 admin<br>10:00 coffee<br>12:00 lunch<br>15:00 coffee<br>18:00 done
Create variable block:

Code: Select all

blocks['v1'] = {
	//title: '4300',
	switch: true,
	width: 12
}
Because of the height you have to add some code to custom.css:

Code: Select all

.block_v1 {
    height: 100% !important; 
}