-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unnecessary output configuration
- Loading branch information
1 parent
9e13e9c
commit 99c4e92
Showing
6 changed files
with
109 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
from dynaconf import Validator | ||
from pathlib import Path | ||
|
||
VALIDATORS = [ | ||
# General | ||
Validator("GENERAL__DEBUG", default=False, cast=bool), | ||
Validator("GENERAL__LOG_LEVEL", default="info"), # error, warning, info, debug | ||
Validator("GENERAL__DEMO_MODE", default=False, cast=bool), | ||
# Web | ||
Validator("WEB__HOST", default="0.0.0.0"), | ||
Validator("WEB__PORT", default=5665, cast=int), | ||
# Locale | ||
Validator("LOCALE__DATE_FORMAT", default="%d %B %Y"), | ||
Validator("LOCALE__TIME_FORMAT", default="%H:%M"), | ||
# Defaults | ||
Validator("DEFAULT__IMAGE_WIDTH", default=800, cast=int), | ||
Validator("DEFAULT__IMAGE_HEIGHT", default=480, cast=int), | ||
# Outputs | ||
Validator( | ||
"OUTPUTS__0__IMAGE_PATH", | ||
default="images/samples", | ||
cast=Path, | ||
), | ||
Validator( | ||
"OUTPUTS__0__SHOW_DATE", | ||
default=False, | ||
cast=bool, | ||
), | ||
Validator( | ||
"OUTPUTS__0__SHOW_TIME", | ||
default=False, | ||
cast=bool, | ||
), | ||
# MQTT | ||
Validator( | ||
"MQTT__HOST", | ||
default="homeassistant.local", | ||
cast=str, | ||
), | ||
Validator( | ||
"MQTT__PORT", | ||
default=1883, | ||
cast=int, | ||
), | ||
Validator( | ||
"MQTT__TOPIC_PREFIX__APP", | ||
default="inkyframeweb", | ||
cast=str, | ||
), | ||
Validator( | ||
"MQTT__TOPIC_PREFIX__HOMEASSISTANT__DEFAULT", | ||
default="homeassistant", | ||
cast=str, | ||
), | ||
Validator( | ||
"MQTT__TOPIC_PREFIX__HOMEASSISTANT__STATESTREAM", | ||
default="homeassistant/statestream", | ||
cast=str, | ||
), | ||
Validator( | ||
"MQTT__USER", | ||
default=None, | ||
cast=str, | ||
), | ||
Validator( | ||
"MQTT__PASSWORD", | ||
default=None, | ||
cast=str, | ||
), | ||
Validator( | ||
"MQTT__KEEPALIVE", | ||
default=60, | ||
cast=int, | ||
), | ||
Validator( | ||
"MQTT__LOG_MESSAGES", | ||
default=False, | ||
cast=bool, | ||
), | ||
# PATHS | ||
Validator( | ||
"PATHS__IMAGES", | ||
default="images", | ||
cast=Path, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SSID = "PT-Admin" | ||
PSK = "AmusementUnmasking1Managing" | ||
COUNTRY = "GB" | ||
|
||
ENDPOINT_URL = "http://10.1.1.61:5665" | ||
DISPLAY_ID = 0 | ||
SLEEP_MINS = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters