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
Custom written text in blocks
Moderators: leecollings, htilburgs, robgeerts
Custom written text in blocks
Last edited by Jimkooper on Monday 04 November 2019 3:54, edited 1 time in total.
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Custom written text in blocks
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.
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.
- HansieNL
- Posts: 964
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Custom written text in blocks
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>:
Create variable block:
Because of the height you have to add some code to custom.css:
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
Code: Select all
blocks['v1'] = {
//title: '4300',
switch: true,
width: 12
}
Code: Select all
.block_v1 {
height: 100% !important;
}
Blah blah blah
Who is online
Users browsing this forum: No registered users and 1 guest