mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 19:21:24 +00:00
🔨Add mealplan and calendar first day of week (#72)
* 🔨Add mealplan first day of week * 🔨Rename variable to mealday * 📚Update documentation * 🔨Add Calendar Day of week option
This commit is contained in:
parent
c7c0bb5b21
commit
21e3c324c6
3 changed files with 20 additions and 0 deletions
|
@ -194,6 +194,12 @@ The following sub features can be enabled or disabled:
|
|||
|
||||
Set it `true` to enable it, `false` otherwise.
|
||||
|
||||
The following sub features can be set to specify a day (0-6), where 0 would
|
||||
equal Sunday:
|
||||
|
||||
- `calendar_first_day_of_week`
|
||||
- `meal_plan_first_day_of_week`
|
||||
|
||||
## Known issues and limitations
|
||||
|
||||
- Grocy support to provide custom lookup resources to lookup information
|
||||
|
|
|
@ -63,7 +63,9 @@
|
|||
"tasks": "bool"
|
||||
},
|
||||
"tweaks": {
|
||||
"calendar_first_day_of_week": "int(0,6)?",
|
||||
"chores_assignment": "bool",
|
||||
"meal_plan_first_day_of_week": "int(0,6)?",
|
||||
"multiple_shopping_lists": "bool",
|
||||
"stock_best_before_date_tracking": "bool",
|
||||
"stock_location_tracking": "bool",
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
# Home Assistant Community Add-on: Grocy
|
||||
# Runs the PHP-FPM daemon
|
||||
# ==============================================================================
|
||||
declare caldayweek
|
||||
declare mealday
|
||||
export GROCY_CULTURE
|
||||
export GROCY_CURRENCY
|
||||
export GROCY_ENTRY_PAGE
|
||||
|
@ -41,10 +43,20 @@ if bashio::config.false 'features.tasks'; then
|
|||
export GROCY_FEATURE_FLAG_TASKS=0
|
||||
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
|
||||
export GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS=0
|
||||
fi
|
||||
|
||||
if bashio::config.has_value 'tweaks.meal_plan_first_day_of_week'; then
|
||||
mealday=$(bashio::config 'tweaks.meal_plan_first_day_of_week')
|
||||
export GROCY_MEAL_PLAN_FIRST_DAY_OF_WEEK=${mealday}
|
||||
fi
|
||||
|
||||
if bashio::config.false 'tweaks.multiple_shopping_lists'; then
|
||||
export GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS=0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue