This software is unofficial and is not related in any way to Lidl or Grocy. It is using lidl-plus requests and can stop working at anytime!
Easily integrate your Lidl receipts into Grocy
This script will:
- Run through all your receipts and process the starred ones
- Check each item's barcode in Grocy:
- If the product exists in Grocy it will purchase the given quantity of the product
- If the product doesn't exist it will create the product in Grocy and add the barcode for it.
- Run periodically, the interval can be set in the settings.
-
Install requirements:
pip install -r requirements.txt
-
Fill the settings in
settings_example.py
and rename it tosettings.py
. More info on obtaining Lidl-Plus refresh token: https://github.com/Andre0512/lidl-plus#commandline-tool. To get the IDs from Grocy, you can go toSettings
->REST API browser
and query theGET /objects/{entity}
withlocations
orquantity_units
selected as entity. -
Open Lidl-Plus app, find the digital receipts that you want processed and star them. (Make sure they are on the "Starred" tab.)
-
Run
lidgrosyncer.py
If you want to run it in Docker:
docker-compose up