Hi guys,
I’m playing with some custom skins on hadashboard.
Unfortunately whenever I use custom skin I don’t have weather_summary widget styles working.
It looks like this:
no skin (looks OK)
my skin (missing style and icons)
for built-in skins it working fine
for any other custom skins I have same problem
I’ve checked files permissions (looks good)
I’ve added: force_compile and compile_on_start options
I’ve restarted appdaemon many times, checked different OS/broswers - same results
What can cause this problem?
Thank you!
a custom skin has 2 files, a css file and a yaml file with variables.
in your logfiles you can find warnings that some variables are missing when you use the skins that dont work.
they were probably written when the weather summary wasnt created yet so those vars are missing in the skins.
look at your log, find out which vars are missing and add them to your skin.
Thank you, I’ve chekced logs and saw warnings like:
2018-05-04 20:22:27.906988 WARNING Variable definition not found in CSS Skin variables: $weather_summary_title_style
then added to variables.yaml records like:
weather_summary_title_style: $style_title
I’ve compaared also style used with default skin and my skin for icon element, and found that I had to add special font-family for weather icons, and that line looks like that:
weather_summary_container_style: "font-family: Climacons-Font; font-size: 250%"
Thanks again, you saved few hours for me
1 Like
your welcome.
remember: when something doesnt go as expected, look at the logs! they are there for a reason
if you dont know what a warning or an error means, then try looking it up (lots of warnings/errors explain themselve or are found easy in google)
still no answer? then come here with the error and the situation.
in those cases it is for most people much more easy to provide an answer then when you just state your problem. (so there will be a faster response in such a case )
but i am glad you got it working and now know what to look for.
Yep, you are abolutelty right!, on my explanation is that by default (installed by pip) appdaemon.yaml logs to:
> logfile: STDOUT
> errorfile: STDERR
which I totally missed, so I had to point directly to log files (after your advise).
Anyway that was my first time with css styles, and I felt like a baby (and didn’t expect that error can be in logs)
there is 1 other logfile that you can/need to set to see all problems on the place where you want it.
accessfile:
that will normally give everything that has to do with dashboard.