Dashticz - Show your dashboard and how-to's!
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
@HansieNL: So did strugle arround some more.
I added the Dummy devices as stated in the script file, and added the lua script to my domoticz (found some info that it should be place here: /volume1/@appstore/domoticz/var/scripts/lua), named the script buienradar.lua and set owner to 'domoticz'.
In the logging of domoticz I cannot see any activity of this script.
In dashticz the block is created, added, and shows the umbrella icon with the text Buienradar 'Hello World' on the dashboard.
I added the Dummy devices as stated in the script file, and added the lua script to my domoticz (found some info that it should be place here: /volume1/@appstore/domoticz/var/scripts/lua), named the script buienradar.lua and set owner to 'domoticz'.
In the logging of domoticz I cannot see any activity of this script.
In dashticz the block is created, added, and shows the umbrella icon with the text Buienradar 'Hello World' on the dashboard.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
- madpatrick
- Posts: 636
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
You can add the script in the Domoticz dashboard
Go to Setting/Events
add a LUA script and paste the script into the dashboard
Go to Setting/Events
add a LUA script and paste the script into the dashboard
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Ok, I added the script via Setup -> More Options -> Events. Added and saved there as buienradar.lua script (time-based LUA script).madpatrick wrote: ↑Saturday 29 August 2020 16:29 You can add the script in the Domoticz dashboard
Go to Setting/Events
add a LUA script and paste the script into the dashboard
But still nothing visable in the log, and dashticz shows the same 'Hello World' message.
edit: in de logfile staat nu wel
2020-08-29 16:40:00.166 Status: LUA: (Buienradar) Get data from Buienradar
2020-08-29 16:40:03.579 Status: LUA: (Buienradar) os.capture needed more than 1 call: 2
2020-08-29 16:40:03.579 Error: EventSystem: in buienradar.lua: [string "-- script_time_buienradar.lua ..."]:125: attempt to index a nil value (field '?')
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
- madpatrick
- Posts: 636
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Did you made the dummy switched and used the correct names (check for typo's) ?
-- create dummy text device from dummy hardware 'Buien Radar'
-- create dummy rain sensor from dummy hardware 'BuienRadarMeter'
-- create dummy text device from dummy hardware 'Buien Radar'
-- create dummy rain sensor from dummy hardware 'BuienRadarMeter'
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Hi,
I checked the names they're all OK. I even deleted and re-create the Dummy Devices and Virtual sensors.
but still this output in the domoticz logfile:
2020-08-29 18:55:00.148 Status: LUA: (Buienradar) Get data from Buienradar
2020-08-29 18:55:00.303 Error: EventSystem: in buienradar.lua: [string "-- script_time_buienradar.lua ..."]:125: attempt to index a nil value (field '?')
I checked the names they're all OK. I even deleted and re-create the Dummy Devices and Virtual sensors.
but still this output in the domoticz logfile:
2020-08-29 18:55:00.148 Status: LUA: (Buienradar) Get data from Buienradar
2020-08-29 18:55:00.303 Error: EventSystem: in buienradar.lua: [string "-- script_time_buienradar.lua ..."]:125: attempt to index a nil value (field '?')
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Good news, it works!
I took the script out of this post: https://www.domoticz.com/forum/viewtopi ... 25#p176925 ( I first used the one of HansieNL, some post above here), change the lon/lat values to match my location.
Now I can see in the logfile no error anymore, and the 'Hello World' is now replaced with 'No Rain'
2020-08-29 19:15:00.364 Status: LUA: BuienRadar module
2020-08-29 19:15:00.517 Status: EventSystem: Script event triggered: buienradar.lua
No idea whats the difference between the scripts, I can see that the number of lines are different.
I took the script out of this post: https://www.domoticz.com/forum/viewtopi ... 25#p176925 ( I first used the one of HansieNL, some post above here), change the lon/lat values to match my location.
Now I can see in the logfile no error anymore, and the 'Hello World' is now replaced with 'No Rain'
2020-08-29 19:15:00.364 Status: LUA: BuienRadar module
2020-08-29 19:15:00.517 Status: EventSystem: Script event triggered: buienradar.lua
No idea whats the difference between the scripts, I can see that the number of lines are different.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Now the 'buienradar' part is working fine, I've got one other thing I would like to change for my dashboard.
How can I make the font smaller of the 'currentweather_big_owm' which shows the actual Temperature + City.
I tried to figure it out myself by using the developers tools in Chrome and came up with this css config part, but that does not work.
Is there a how-to for searching the correct ellements for within the css ?
How can I make the font smaller of the 'currentweather_big_owm' which shows the actual Temperature + City.
I tried to figure it out myself by using the developers tools in Chrome and came up with this css config part, but that does not work.
Code: Select all
.dt_block[data-id='currentweather_big'] .dt_title {
font-size: 15px;
color: yellow;
}
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
- Spoiler: show
Code: Select all
local myBuienRadarDevice = 'Buienradar'
local myBuienRadarMeter = 'RegenData'
local myBuienRadarFlg = 'Paraplu'
Blah blah blah
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
- Spoiler: show
Code: Select all
.title.weatherdegrees,
.weatherloc {
font-size: 15px !important;
color: yellow !important;
}
Blah blah blah
- madpatrick
- Posts: 636
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Hi
I've set an img for the LMS icon, but i like to get it bigger
I've set in custom.css
.block_lms .icon {width: 200% !important; height: 200% !important;}
But still it is not getting bigger if i incerease the width value
How do i get the image bigger ?
I've set an img for the LMS icon, but i like to get it bigger
I've set in custom.css
.block_lms .icon {width: 200% !important; height: 200% !important;}
But still it is not getting bigger if i incerease the width value
How do i get the image bigger ?
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
I don’t use a Squeezebox, but the icon looks an image to me. Can you try to replace .icon with img (no dot in front).
Blah blah blah
- madpatrick
- Posts: 636
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Correct. I'm using a .png image.
I've tried :
.block_lms img {width: 800% !important; height: 800% !important;}
but does not change the size
------- update --------
i've tried with another block and there i can adjust the size of the image
Looks something in the block is limiting the size of the image
I've tried :
.block_lms img {width: 800% !important; height: 800% !important;}
but does not change the size
------- update --------
i've tried with another block and there i can adjust the size of the image
Looks something in the block is limiting the size of the image
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
No I did create the devices with the names stated in the script file. This is surely the issue it was not working in the first place! Thanks for clarifying this.HansieNL wrote: ↑Saturday 29 August 2020 20:50Did you create the dummy devices like in the script?:
- Spoiler: show
Code: Select all
local myBuienRadarDevice = 'Buienradar' local myBuienRadarMeter = 'RegenData' local myBuienRadarFlg = 'Paraplu'
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
No this does unfortunatelly not do a thing/change for the actual weather.HansieNL wrote: ↑Saturday 29 August 2020 21:32Can you try with:
- Spoiler: show
Code: Select all
.title.weatherdegrees, .weatherloc { font-size: 15px !important; color: yellow !important; }
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Re: Dashticz - Show your dashboard and how-to's!
Must do with the right block class:Chris12 wrote: ↑Monday 31 August 2020 7:42No this does unfortunatelly not do a thing/change for the actual weather.HansieNL wrote: ↑Saturday 29 August 2020 21:32Can you try with:
- Spoiler: show
Code: Select all
.title.weatherdegrees, .weatherloc { font-size: 15px !important; color: yellow !important; }
Code: Select all
.big .weatherloc,
.big .weatherdegrees {
font-size: 15px; /*default font you see is 24px, decrease that number at will if you want a smaller font or increase otherwise*/
}
Code: Select all
[data-id="currentweather_big"].big .weatherloc,
[data-id="currentweather_big"].big .weatherdegrees {
font-size: 15px; /*default font you see is 24px, decrease that number at will if you want a smaller font or increase otherwise*/
}
".block_currentweather_big_owm" class, or ".containsweather" class instead of ".big".
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
@lzwfkv: Thanks this works!
How do you determine such CSS config? Is there a step-by-step how to?
Because now the font is smaller, how can I align the font and the weather icon to both center.
How do you determine such CSS config? Is there a step-by-step how to?
Because now the font is smaller, how can I align the font and the weather icon to both center.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Re: Dashticz - Show your dashboard and how-to's!
Sorry for answering with some delay, i have been busy.
Well, it is difficult to explain all of that in a step-by step guide here and, by the way, i am not that skilled with it to be able to explain, however i will try below.
You should at leat have some very basics of html/javascript/CSS and you can learn some basic syntax on all of them on a site like https://www.w3schools.com/ or serching with google when needed (e.g. syntax or CSS attributes meaning).
Also read/refer to the Dashticz doc at this sections which will explain how the Dashticz blocks are usually composed graphically: https://dashticz.readthedocs.io/en/beta ... icz-blocks (Domoticz Blocks and Special Blocks sections).
Basically every block in Dashticz is made of hierarchical subblocks/sections where all the various elements (title, value/data, icon/image) are placed:
- Spoiler: show
As to the icon position, it is not possible by default, as you can see it is placed in the col-icon subsection which is always the leftmost subblock under the block box; if you really want to change it, you should redefine the width of the col-icon and col-data subsections under the block in custom.css and it might be a bit complex.
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Thansk for explaining, I will have to do some reading/homework! (not my 2 most favorite topics )
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
-
- Posts: 45
- Joined: Saturday 13 June 2020 12:51
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Here is my one, still under development
( 24" touch screen )
( 24" touch screen )
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Show your dashboard and how-to's!
Looks nice
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Who is online
Users browsing this forum: Bing [Bot] and 1 guest