Better handling of screensaver-theme.

This commit is contained in:
illuzn
2022-05-26 00:30:19 +09:30
parent 1cfaa7877e
commit 4fb3204f73
5 changed files with 53 additions and 38 deletions

View File

@@ -10,3 +10,6 @@ Example config for appademon itself
"Simple" Example Config with all possible entity types
## screensaver-theme.yaml
Example screensaver theme configuration. All entries are commented out but you can uncomment as appropriate to enable.

View File

@@ -5,6 +5,7 @@ appdaemon:
longitude: 4.0
elevation: 2
time_zone: Europe/Berlin
# invalid_yaml_warnings: 1
plugins:
HASS:
type: hass

View File

@@ -21,44 +21,7 @@ nspanel-1:
name: name
icon: lightbulb
alternativeLayout: True
theme:
background: [0, 0, 0]
time: [220, 0, 255]
timeAMPM: [220, 0, 255]
date: [220, 0, 255]
tMainIcon: [220, 0, 255]
tMainText: [220, 0, 255]
tForecast1: [220, 0, 255]
tForecast2: [220, 0, 255]
tForecast3: [220, 0, 255]
tForecast4: [220, 0, 255]
tF1Icon: [220, 0, 255]
tF2Icon: [220, 0, 255]
tF3Icon: [220, 0, 255]
tF4Icon: [220, 0, 255]
tForecast1Val: [220, 0, 255]
tForecast2Val: [220, 0, 255]
tForecast3Val: [220, 0, 255]
tForecast4Val: [220, 0, 255]
bar: [220, 0, 255]
tMRIcon: [220, 0, 255]
tMR: [220, 0, 255]
autoWeather: true
clear-night: [220, 0, 255]
cloudy: [220, 0, 255]
exceptional: [220, 0, 255]
fog: [220, 0, 255]
hail: [220, 0, 255]
lightning: [220, 0, 255]
lightning-rainy: [220, 0, 255]
partlycloudy: [220, 0, 255]
pouring: [220, 0, 255]
rainy: [50, 50, 255]
snowy: [220, 0, 255]
snowy-rainy: [100, 100, 255]
sunny: [220, 0, 255]
windy: [220, 0, 255]
windy-variant: [220, 0, 255]
# theme: !include /config/appdaemon/apps/screensaver-theme.yaml
cards:
- type: cardEntities
entities:

View File

@@ -0,0 +1,46 @@
#Uncomment by deleting the '#' and configure as you see fit.
#Colors are in the format [Red, Green, Blue] and can be numbers from 0-255
#The items shoud be self-explanatory but tMRIcon affects the humidity icon and tMR affects the humidity text.
#background: [220, 0, 0]
#time: [220, 0, 255]
#timeAMPM: [220, 0, 255]
#date: [220, 0, 255]
#tMainIcon: [220, 0, 255]
#tMainText: [220, 0, 255]
#tForecast1: [220, 0, 255]
#tForecast2: [220, 0, 255]
#tForecast3: [220, 0, 255]
#tForecast4: [220, 0, 255]
#tF1Icon: [220, 0, 255]
#tF2Icon: [220, 0, 255]
#tF3Icon: [220, 0, 255]
#tF4Icon: [220, 0, 255]
#tForecast1Val: [220, 0, 255]
#tForecast2Val: [220, 0, 255]
#tForecast3Val: [220, 0, 255]
#tForecast4Val: [220, 0, 255]
#bar: [220, 0, 255]
#tMRIcon: [220, 0, 255]
#tMR: [220, 0, 255]
#autoWeather automatically colors the screensaver weather icons based upon weather. Uncomment the following line to enable.
#autoWeather: true
#If you have enabled autoWeather, the following options allow you to customise the colors used for autoWeather.
#clear-night: [150, 150, 100]
#cloudy: [75, 75, 75]
#exceptional: [255, 50, 50]
#fog: [150, 150, 150]
#hail: [200, 200, 200]
#lightning: [200, 200, 0]
#lightning-rainy: [200, 200, 150]
#partlycloudy: [150, 150, 150]
#pouring: [50, 50, 255]
#rainy: [100, 100, 255]
#snowy: [150, 150, 150]
#snowy-rainy: [150, 150, 255]
#sunny: [255, 255, 0]
#windy: [150, 150, 150]
#windy-variant: [255, 125, 125]