mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-05 11:41:32 +00:00
🔨Add Calendar Day of week option
This commit is contained in:
parent
047669da37
commit
9d3222f4ef
2 changed files with 7 additions and 0 deletions
|
@ -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",
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Runs the PHP-FPM daemon
|
# Runs the PHP-FPM daemon
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
declare caldayweek
|
||||||
declare mealday
|
declare mealday
|
||||||
export GROCY_CULTURE
|
export GROCY_CULTURE
|
||||||
export GROCY_CURRENCY
|
export GROCY_CURRENCY
|
||||||
|
@ -42,6 +43,11 @@ 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
|
||||||
|
caldayweek=$(bashio::config 'tweaks.calendar_first_day_of_week')
|
||||||
|
export GROCY_CALENDAR_FIRST_DAY_OF_WEEK=${caldayweek}
|
||||||
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue