Custom written text in blocks

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Jimkooper
Posts: 2
Joined: Friday 18 October 2019 13:22
Target OS: Linux
Domoticz version:
Contact:

Custom written text in blocks

Post 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
Last edited by Jimkooper on Monday 04 November 2019 3:54, edited 1 time in total.
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Custom written text in blocks

Post 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.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Custom written text in blocks

Post 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; 
}
Blah blah blah
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest