Migrate JSON config to YAML (#246)

This commit is contained in:
Franck Nijhof 2021-11-04 21:06:32 +01:00 committed by Federico Ariel Castagnini
parent 0e17353068
commit 7bef380271
No known key found for this signature in database
GPG key ID: B8F54AA3DB400B54
4 changed files with 81 additions and 86 deletions

View file

@ -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"
}
}

7
grocy/build.yaml Normal file
View file

@ -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

View file

@ -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"
}
}

74
grocy/config.yaml Normal file
View file

@ -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