From 7bef380271ef4dd3e8f59f8e01e0b11b41cd9bb9 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 4 Nov 2021 21:06:32 +0100 Subject: [PATCH] Migrate JSON config to YAML (#246) --- grocy/build.json | 9 ------ grocy/build.yaml | 7 +++++ grocy/config.json | 77 ----------------------------------------------- grocy/config.yaml | 74 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+), 86 deletions(-) delete mode 100755 grocy/build.json create mode 100644 grocy/build.yaml delete mode 100755 grocy/config.json create mode 100644 grocy/config.yaml diff --git a/grocy/build.json b/grocy/build.json deleted file mode 100755 index e55dc95..0000000 --- a/grocy/build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "build_from": { - "aarch64": "ghcr.io/hassio-addons/base/aarch64:10.1.0", - "amd64": "ghcr.io/hassio-addons/base/amd64:10.1.0", - "armhf": "ghcr.io/hassio-addons/base/armhf:10.1.0", - "armv7": "ghcr.io/hassio-addons/base/armv7:10.1.0", - "i386": "ghcr.io/hassio-addons/base/i386:10.1.0" - } -} diff --git a/grocy/build.yaml b/grocy/build.yaml new file mode 100644 index 0000000..4fe7c07 --- /dev/null +++ b/grocy/build.yaml @@ -0,0 +1,7 @@ +--- +build_from: + aarch64: ghcr.io/hassio-addons/base/aarch64:10.1.0 + amd64: ghcr.io/hassio-addons/base/amd64:10.1.0 + armhf: ghcr.io/hassio-addons/base/armhf:10.1.0 + armv7: ghcr.io/hassio-addons/base/armv7:10.1.0 + i386: ghcr.io/hassio-addons/base/i386:10.1.0 diff --git a/grocy/config.json b/grocy/config.json deleted file mode 100755 index 73968d6..0000000 --- a/grocy/config.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "Grocy", - "version": "dev", - "slug": "grocy", - "description": "ERP beyond your fridge! A groceries & household management solution for your home", - "url": "https://github.com/hassio-addons/addon-grocy", - "ingress": true, - "ingress_stream": true, - "panel_icon": "mdi:cart", - "arch": ["aarch64", "amd64", "armhf", "armv7", "i386"], - "map": ["ssl"], - "ports": { - "80/tcp": null - }, - "ports_description": { - "80/tcp": "Web interface (Not required for Ingress)" - }, - "options": { - "culture": "en", - "currency": "USD", - "entry_page": "stock", - "features": { - "batteries": true, - "calendar": true, - "chores": true, - "equipment": true, - "recipes": true, - "shoppinglist": true, - "stock": true, - "tasks": true - }, - "tweaks": { - "chores_assignment": true, - "multiple_shopping_lists": true, - "stock_best_before_date_tracking": true, - "stock_location_tracking": true, - "stock_price_tracking": true, - "stock_product_freezing": true, - "stock_product_opened_tracking": true, - "stock_count_opened_products_against_minimum_stock_amount": true - }, - "ssl": true, - "certfile": "fullchain.pem", - "keyfile": "privkey.pem" - }, - "schema": { - "log_level": "list(trace|debug|info|notice|warning|error|fatal)?", - "culture": "list(cs|da|de|el_GR|en|en_GB|es|fi|fr|he_IL|hu|it|ja|ko_KR|nl|no|pl|pt_BR|pt_PT|ru|sk_SK|sv_SE|ta|tr|zh_CN|zh_TW)", - "currency": "match(^[A-Z]{3}$)", - "entry_page": "list(stock|shoppinglist|recipes|chores|tasks|batteries|equipment|calendar|mealplan)", - "features": { - "batteries": "bool", - "calendar": "bool", - "chores": "bool", - "equipment": "bool", - "recipes": "bool", - "shoppinglist": "bool", - "stock": "bool", - "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", - "stock_price_tracking": "bool", - "stock_product_freezing": "bool", - "stock_product_opened_tracking": "bool", - "stock_count_opened_products_against_minimum_stock_amount": "bool" - }, - "ssl": "bool", - "certfile": "str", - "keyfile": "str" - } -} diff --git a/grocy/config.yaml b/grocy/config.yaml new file mode 100644 index 0000000..ad2a5c4 --- /dev/null +++ b/grocy/config.yaml @@ -0,0 +1,74 @@ +--- +name: Grocy +version: dev +slug: grocy +description: ERP beyond your fridge! A groceries & household management solution for your home +url: https://github.com/hassio-addons/addon-grocy +ingress: true +ingress_stream: true +panel_icon: mdi:cart +arch: + - aarch64 + - amd64 + - armhf + - armv7 + - i386 +map: + - ssl +ports: + 80/tcp: null +ports_description: + 80/tcp: Web interface (Not required for Ingress) +options: + culture: en + currency: USD + entry_page: stock + features: + batteries: true + calendar: true + chores: true + equipment: true + recipes: true + shoppinglist: true + stock: true + tasks: true + tweaks: + chores_assignment: true + multiple_shopping_lists: true + stock_best_before_date_tracking: true + stock_location_tracking: true + stock_price_tracking: true + stock_product_freezing: true + stock_product_opened_tracking: true + stock_count_opened_products_against_minimum_stock_amount: true + ssl: true + certfile: fullchain.pem + keyfile: privkey.pem +schema: + log_level: list(trace|debug|info|notice|warning|error|fatal)? + culture: list(cs|da|de|el_GR|en|en_GB|es|fi|fr|he_IL|hu|it|ja|ko_KR|nl|no|pl|pt_BR|pt_PT|ru|sk_SK|sv_SE|ta|tr|zh_CN|zh_TW) + currency: match(^[A-Z]{3}$) + entry_page: list(stock|shoppinglist|recipes|chores|tasks|batteries|equipment|calendar|mealplan) + features: + batteries: bool + calendar: bool + chores: bool + equipment: bool + recipes: bool + shoppinglist: bool + stock: bool + 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 + stock_price_tracking: bool + stock_product_freezing: bool + stock_product_opened_tracking: bool + stock_count_opened_products_against_minimum_stock_amount: bool + ssl: bool + certfile: str + keyfile: str