🔨Add Calendar day of week option

This commit is contained in:
Paul Sinclair 2020-03-01 12:54:39 -05:00
parent 33129b3787
commit aaaf583980
No known key found for this signature in database
GPG key ID: 779C7A23E1AA845D
2 changed files with 8 additions and 2 deletions

View file

@ -63,6 +63,7 @@
"tasks": "bool" "tasks": "bool"
}, },
"tweaks": { "tweaks": {
"calendar_first_day_of_week": "int(0,6)?",
"chores_assignment": "bool", "chores_assignment": "bool",
"meal_plan_first_day_of_week": "int(0,6)?", "meal_plan_first_day_of_week": "int(0,6)?",
"multiple_shopping_lists": "bool", "multiple_shopping_lists": "bool",

View file

@ -42,13 +42,18 @@ if bashio::config.false 'features.tasks'; then
export GROCY_FEATURE_FLAG_TASKS=0 export GROCY_FEATURE_FLAG_TASKS=0
fi fi
if bashio::config.has_value 'tweaks.calendar_first_day_of_week'; then
GROCY_DAYWEEK=$(bashio::config 'tweaks.calendar_first_day_of_week')
export GROCY_CALENDAR_FIRST_DAY_OF_WEEK=${GROCY_DAYWEEK}
fi
if bashio::config.false 'tweaks.chores_assignment'; then if bashio::config.false 'tweaks.chores_assignment'; then
export GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS=0 export GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS=0
fi fi
if bashio::config.has_value 'tweaks.meal_plan_first_day_of_week'; then if bashio::config.has_value 'tweaks.meal_plan_first_day_of_week'; then
GROCY_DAYWEEK=$(bashio::config 'tweaks.meal_plan_first_day_of_week') GROCY_MEALDAY=$(bashio::config 'tweaks.meal_plan_first_day_of_week')
export GROCY_MEAL_PLAN_FIRST_DAY_OF_WEEK=${GROCY_DAYWEEK} export GROCY_MEAL_PLAN_FIRST_DAY_OF_WEEK=${GROCY_MEALDAY}
fi fi
if bashio::config.false 'tweaks.multiple_shopping_lists'; then if bashio::config.false 'tweaks.multiple_shopping_lists'; then