Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions grocy/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Example add-on configuration:
culture: en
currency: USD
entry_page: stock
grocycode_type: 2D
features:
batteries: true
calendar: true
Expand Down Expand Up @@ -157,6 +158,17 @@ You can use the one of the following values:

By default the homepage is set to the stock overview.

### Option: `grocycode_type`

Allows you to change the barcode type for GrocyCodes. Useful if your barcode scanner doesn't support the default.

You can use the one of the following values:

- `1D` (Code128)
- `2D` (DataMatrix)

Since v4.5.0 Grocy uses `2D` as the default.

### Option: `features`

Is used for enable or disable features in Grocy. Disabled features
Expand Down
2 changes: 2 additions & 0 deletions grocy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ options:
culture: en
currency: USD
entry_page: stock
grocycode_type: 2D
features:
batteries: true
calendar: true
Expand Down Expand Up @@ -49,6 +50,7 @@ schema:
culture: list(ca|cs|da|de|el_GR|en|en_GB|es|et|fi|fr|he_IL|hu|it|ja|ko_KR|lt|nl|no|pl|pt_BR|pt_PT|ro|ru|sk_SK|sl|sv_SE|ta|tr|uk|zh_CN|zh_TW)
currency: match(^[A-Z]{3}$)
entry_page: list(stock|shoppinglist|recipes|chores|tasks|batteries|equipment|calendar|mealplan)
grocycode_type: list(1D|2D)
features:
batteries: bool
calendar: bool
Expand Down
2 changes: 2 additions & 0 deletions grocy/rootfs/etc/s6-overlay/s6-rc.d/php-fpm/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# ==============================================================================
declare caldayweek
declare mealday
declare grocycode_type
export GROCY_CULTURE
export GROCY_CURRENCY
export GROCY_ENTRY_PAGE
Expand Down Expand Up @@ -89,5 +90,6 @@ fi
GROCY_CULTURE=$(bashio::config "culture")
GROCY_CURRENCY=$(bashio::config "currency")
GROCY_ENTRY_PAGE=$(bashio::config 'entry_page')
GROCY_GROCYCODE_TYPE=$(bashio::config 'grocycode_type')

exec php-fpm82 -R --nodaemonize
Loading