Copy missing items from grocy to bring

Related tags

Miscellaneous grocy
Overview

Copy Grocy "Missing Products" to BRING List

Build Container

First build the container:

docker build -t grocy-to-bring .

Run Container

Insert your Grocy URL, Grocy API Key and BRING Credentials to the .env file. Use the .env-example and copy it to .env

Get your BRING List UUID

First you need to get your BRING List UUID. Insert your BRING Credentials in your .env file and start the container with the following command to get your lists:

docker run --env-file .env --rm -t --name run-grocy-to-bring grocy-to-bring php ./bring.php

You will see an output of your lists:

Below are your bring lists with their UUID:
1st List // UUID: 9z567898-mnbv-2d67-qwer-9876543123
2nd List // UUID: e4567222-mnbv-2530-qwer-1234567890

Note the UUID of the list you want to use and add it to the .env file.

Add items to BRING

Now simply run the container:

docker run --env-file .env --rm --name run-grocy-to-bring grocy-to-bring

You can add it to your crontab e.g. and have it run every morning at 8:10:

10 8 * * * sudo docker run --env-file /home/admin/GrocyToBring/.env --rm --name run-grocy-to-bring grocy-to-bring 2>&1 | /usr/bin/logger -t GrocyToBring

Hide items from BRING list

If you want to hide items fron the BRING list, simply add a boolean user field to the products like "Hide from Bring?" and set the field name in .env (HIDEFROMBRING)

screenshot user field

Known Issues

Currently no special chars like "%" work in BRING. Therefore I implemented a helper function to replace "%" with "Prozent". You can change this in .env (PERCENTREPLACE) for another language.

Thank you

Thank you to helvete003 for reverse-engineering the Bring REST API: https://github.com/helvete003/bring-api

And of course a massive shout out to Bernd Bestel the founder of https://grocy.info/

You might also like...
PocketMine-MP Plugin for converting items & blocks name to your language.
PocketMine-MP Plugin for converting items & blocks name to your language.

ConvertName PocketMine-MP Plugin for converting items & blocks name to your language. Usage Due to license issue, I don't put the language files direc

This plugin adds 95% of 1.16 blocks & items and their functionality
This plugin adds 95% of 1.16 blocks & items and their functionality

INether This plugin adds 95% of 1.16 blocks & items and their functionality Implemented blocks Ancient Debris All types of Basalt Crimson & Warped Fun

Magento 2 Extension to cleanup admin menu and Store > Configuration area by arranging third party extension items.
Magento 2 Extension to cleanup admin menu and Store Configuration area by arranging third party extension items.

Clean Admin Menu - Magento 2 Extension It will merge all 3rd party extension's menu items in backend's primary menu to a common menu item named "Exten

DropItem3D - PocketMine-MP plugin to be able to see drop items realistic.
DropItem3D - PocketMine-MP plugin to be able to see drop items realistic.

DropItem3D - PocketMine-MP plugin to be able to see drop items realistic.

Save items in a bucket, retrieve them later.

Bucket Save items in a bucket, retrieve them later. use Laragear\Bucket\Facades\Buckets; use App\Models\Message; public function send(Message $messag

A plugin for PocketMine-MP improves items.
A plugin for PocketMine-MP improves items.

AdvancedItem ✨ A plugin for PocketMine-MP that improves items. Featured Change name of item Edit lore in line like MyItem Spigot Duplicate the item on

This package implements 0-1 Knapsack Problem algorithm i.e. allows to find the best way to fill a knapsack of a specified volume with items of a certain volume and value.

This package implements "0-1 Knapsack Problem" algorithm i.e. allows to find the best way to fill a knapsack of a specified volume with items of a certain volume and value.

This is a plugin for pocketmine-mp, when locking a player's items helps players not to lose items or throw things around causing server lag.

[] LockedItem| v1.0.0 Player's item lock Features Player's item lock Players aren't afraid of losing items For Devolopers You can access to LockedItem

StickWithIt is an online food ordering website created using PHP. You can view and purchase various items as well as remove items from the cart.

StickWithIt (App Name) StickWithIt is an online food ordering website created using PHP. The database used here is MYSQL database. The tool used here

Copy/Paste Detector (CPD) for PHP code.

PHP Copy/Paste Detector (PHPCPD) phpcpd is a Copy/Paste Detector (CPD) for PHP code. Installation This tool is distributed as a PHP Archive (PHAR): $

Bring Laravel 8's cursor pagination to Laravel 6, 7

Laravel Cursor Paginate for laravel 6,7 Installation You can install the package via composer: composer require vanthao03596/laravel-cursor-paginate U

Copy of hautelook/alice-bundle v2.9.0

AliceBundle A Symfony bundle to manage fixtures with nelmio/alice and fzaninotto/Faker. The database support is done in FidryAliceDataFixtures. Check

A bring-your-own-email-first newsletter service. ✨

Typewrite Typewrite a hosted bring-your-own-email newsletter service for people who need a simplistic and privacy-first newsletter service. The core a

Bring multi themes support to your Laravel application with a full-featured Themes Manager
Bring multi themes support to your Laravel application with a full-featured Themes Manager

Introduction hexadog/laravel-themes-manager is a Laravel package which was created to let you developing multi-themes Laravel application. Installatio

Yab copy to new - A Textpattern plugin. Copies the current article content to a new one.

yab_copy_to_new Displays a new button in article write tab to copy the current article to a new one. Version: 0.2 Table of contents Plugin requirement

Neo Integrator adalah alat bantu untuk import data ke Neo Feeder dengan cara copy paste saja. bersifat free dan opensource. Semoga Bermanfaat.

Neo-Integrator Penerus dari SimpleFeeder, yang berubah jadi Excel2Feeder dan bertransformasi menjadi Neo-integrator Last Update : 16-05-2022 Capture :

Mazer is a Admin Dashboard Template that can help you develop faster. We bring Mazer with Laravel starter project.
Mazer is a Admin Dashboard Template that can help you develop faster. We bring Mazer with Laravel starter project.

Mazer is a Admin Dashboard Template that can help you develop faster. We bring Mazer with Laravel starter project. It's completely free and you can use it in your projects.

The missing PHP 5.3+ calendar management library.

CalendR CalendR is an Object Oriented Calendar management library on top of PHP5.3+ Date objects. You can use it to deal with all your needs about cal

🍺 The missing package manager for macOS (or Linux)

Homebrew Features, usage and installation instructions are summarised on the homepage. Terminology (e.g. the difference between a Cellar, Tap, Cask an

Comments
  • Added support to use Grocy´s purchase unit

    Added support to use Grocy´s purchase unit

    Hi @heig, I have created a PR to add support for the purchase unit maintained in Grocy. With these extensions, the use of the UNIT env variable is not required anymore. The missing amount is converted based on the purchase unit conversion ratio in the product details and the name of this respective unit is used. BR André

    opened by andreheuer 0
Owner
null
StickWithIt is an online food ordering website created using PHP. You can view and purchase various items as well as remove items from the cart.

StickWithIt (App Name) StickWithIt is an online food ordering website created using PHP. The database used here is MYSQL database. The tool used here

Jenil Gajjar 1 May 11, 2022
Yab copy to new - A Textpattern plugin. Copies the current article content to a new one.

yab_copy_to_new Displays a new button in article write tab to copy the current article to a new one. Version: 0.2 Table of contents Plugin requirement

Tommy Schmucker 2 Dec 15, 2017
Neo Integrator adalah alat bantu untuk import data ke Neo Feeder dengan cara copy paste saja. bersifat free dan opensource. Semoga Bermanfaat.

Neo-Integrator Penerus dari SimpleFeeder, yang berubah jadi Excel2Feeder dan bertransformasi menjadi Neo-integrator Last Update : 16-05-2022 Capture :

null 9 Nov 26, 2022
⚡️ A WordPress plugin to quickly send a 404 for missing static files

Static 404 A WordPress plugin to quickly send a 404 for missing static files. Quickly output a 404 for static files that aren't found, rather than loa

Brad Parbs 26 Oct 6, 2022
The RSS feed for websites missing it

RSS-Bridge is a PHP project capable of generating RSS and Atom feeds for websites that don't have one. It can be used on webservers or as a stand-alon

RSS Bridge Community 5.5k Jan 8, 2023
A small CLI tool to check missing dependency declarations in the composer.json and module.xml

Integrity checker Package allows to run static analysis on Magento 2 Module Packages to provide an integrity check of package. Supported tools: Compos

run_as_root GmbH 13 Dec 19, 2022
Plugin to add items

CustomItem Plugin to add items No more item limit ?? Your imagnition the only barrier ?? New id new items ?? How to make texture for new item 1• Creat

Refaltor 15 Aug 16, 2022
Add custom armors, tools and many items!

CustomThings This plugin was created for the new version of Hiroshima and allows you to add tools, armors and items! Informations Here are the differe

null 13 Oct 16, 2021
PocketMine-MP plugin that inhibits players from dropping items.

PocketMine-MP plugin that inhibits players from dropping items. This plugin also comes with a variety of useful commands.

MCA7 3 Jul 25, 2022
Adds a compact "easy-sort" mode to Repeater and Repeater Matrix, making those fields easier to sort when there are a large number of items.

Repeater Easy Sort Adds a compact "easy-sort" mode to Repeater and Repeater Matrix, making those fields easier to sort when there are a large number o

Robin Sallis 3 Oct 10, 2021