Hey I have some problems with edit dash skin, I try to change color on the clock and the size of the font, but after I save the file and restart appdaemon, there nothing happens with the skin, it wont load the css. What do I wrong ?
Best regards Stig
My code looks like:
Main arguments, all optional
title: Main Panel
widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 8
global_parameters:
use_comma: 0
precision: 1
use_hass_icon: 1
clock:
widget_type: clock
widget_style: “font-size: 200%;”
date_style: “color: yellow;”
time_style: “color: black;”
layout:
- clock.clock (2x1), sensor.yr_symbol
- light.hjrne_lampe_, light.hjrne_skab_, light.stander_lampe_
- media_player.badevrelse(2x2)
first off: when you present code (and for sure YAML the present it as code as asked on the top of the forum with this link
the reason why is that others then can read your file too, presented like this we cant see a lot of problems.
then to what i can know about your actual problem:
your css seems right and given to the right variables.
so the problem has probably to do with cashing.
here is the checklist to rule out any cash problems:
- close all dashboards
- clear the cash from the browsers that you use the dashboards in
- close appdaemon
- clear your logfiles
- clear the subdirectories that are in conf/compiled but leave the structure
- close the device that is running appdaemon
- restart the device that is running appdaemon
- restart appdaemon
- open 1 dashboard in google chrome
- if you still have problems then look at the java console (CTRL Shift I) in chrome for errors and look in your logfiles for errors.
it could be that 1 or more steps are not necesary, but only when you have done all these steps correctly you can rule out cash.
in most cases its the browser you use, and just switching browser can already solve the problem.
Thank for the tip, I have tried it all on that list and also tried to open it on another computer, but it still wont work. I have also tried to reinstall appdaemon and delete the whole appdaemon Library. CSS wont work it.
this is in 1 off my dashboards,
clockje:
widget_type: clock
time_format: 24hr
time_style: "font-size: 30px; color: $black;text-shadow: 1px 1px 2px black, 0 0 25px green, 0 0 5px white"
date_style: "font-size: 30px; color: $black;text-shadow: 1px 1px 2px black, 0 0 25px green, 0 0 5px white"
widget_style: "border-top-left-radius: 30px;border-top-right-radius: 30px;border-bottom-left-radius: 30px;border-bottom-right-radius: 30px"
so the code works.
do you have 1 of the following settings in your appdaemon.yaml?
dash_compile_on_start:
dash_force_compile:
1 is for on and 0 is for off.
compile on start recompiles the dashboards at restart from appdaemon
force compile recompiles the dashboards every time a dashboard is opened (only to use when you are developing)
also it is wise to set your logfiles like:
log:
accessfile: /full_path_to/appdaemon_dashboard.log
errorfile: /full_path_to/appdaemon_error.log
logfile: /full_path_to/appdaemon_normal.log
and after reloading your dashboard check error log and access log.
did you check for errors in the javalog?