Forceu / barcodebuddy

Barcode system for Grocy
GNU Affero General Public License v3.0
443 stars 59 forks source link

Multiple Users with different grocy API Keys #180

Open Benny12323 opened 2 years ago

Benny12323 commented 2 years ago

First of all, thanks for this amazing tool. It works perfectly fine for me. I use it especially for simple chores tracking, which is not that convenient with the Grocy App. Within this household, we try to keep track of who executed a chore (to avoid discussion about "felt facts"). For this, it would be very helpful if multiple users could access one Barcode Buddy instance, but store their individual Grocy API keys. This way Grocy could correctly record who has executed a task. I can manually create multiple users in Barcode Buddys users.db, but I have not found a way to store different API keys. Is there a way to do this? So far I'm running one Barcode Buddy instance per user, which is not a scalable solution....

Forceu commented 2 years ago

Thanks for the issue! At the moment there is no official support for multiple users and right now I don't have enough time to implement it. If you are using a physical barcode scanner, your best bet would be to modify the script that grabs the barcodes to send API requests to Grocy directly if certain barcodes are scanned (although that would mean printing out a barcode for each user).

Benny12323 commented 2 years ago

Thanks for your quick reply. I will think about a solution again. I had also considered a barcode per user, but since I attach the barcodes directly to the respective task, e.g. in the dishwasher, I quickly reach the limits of the space required.

Forceu commented 2 years ago

Even though it is not properly documented in the Grocy API, it is possible to set the user of the chore, so I might implement this at some point. I cannot give an ETA yet however