{"id":13625823,"url":"https://github.com/andreheuer/grocy-create-product","last_synced_at":"2025-04-16T10:33:19.054Z","repository":{"id":189298624,"uuid":"450960873","full_name":"andreheuer/grocy-create-product","owner":"andreheuer","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-29T15:11:40.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-08T15:45:07.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreheuer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-01-22T23:33:09.000Z","updated_at":"2024-06-08T19:11:43.000Z","dependencies_parsed_at":"2023-08-20T17:30:52.790Z","dependency_job_id":null,"html_url":"https://github.com/andreheuer/grocy-create-product","commit_stats":null,"previous_names":["andreheuer/grocy-create-product"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreheuer%2Fgrocy-create-product","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreheuer%2Fgrocy-create-product/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreheuer%2Fgrocy-create-product/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreheuer%2Fgrocy-create-product/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreheuer","download_url":"https://codeload.github.com/andreheuer/grocy-create-product/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249228273,"owners_count":21233852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:02:02.852Z","updated_at":"2025-04-16T10:33:18.827Z","avatar_url":"https://github.com/andreheuer.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# grocy-create-product\nThis script supports the batch creation of new products in [Grocy](https://grocy.info). Based on the scanned (or entered) barcode, \nthe [https://de.openfoodfacts.org](openfoodfacts) and [https://world.openbeautyfacts.org](openbeautyfacts) databases are queried. If all data has been\nprovided, the new product is created in Grocy, the calories are entered (taken from Openfoodfact for g/kg and ml/L articles) and a picture (also from openfoodfacts)\nis uploaded to Grocy.\n\n## How to use\n1. Install Python 3\n2. Clone repository\n3. Change `GROCY_URL` to your URL and set default group and location IDs.\n4. Set `GROCY_API_KEY` to your API key\n5. Set a default group id with `DEFAULT_GROUP` (so you just to have press ENTER to confirm)\n6. Set a default location id with `DEFAULT_LOCATION` (so you just to have press ENTER to confirm)\n7. Set `CONTINUOUS_MODE` mode to `True` or `False`. If `True`, the script will run in a loop.\n8. Run the script either with a barcode as parameter (`CONTINUOUS_MODE` should be `False` then) or without a parameter\n\nThe script can be aborted either by an empty string and pressing enter in the barcode prompt or pressing CTRL+C in any prompt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreheuer%2Fgrocy-create-product","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreheuer%2Fgrocy-create-product","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreheuer%2Fgrocy-create-product/lists"}