Forceu / barcodebuddy

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

Feature Request: Execute Custom Scripts Per Mode Action #259

Open ZachHoiberg opened 2 weeks ago

ZachHoiberg commented 2 weeks ago

Hello,

I am trying and failing to get the MQTT plugin working, but I think a native feature would help me accomplish the same goal.

I would like to be able to define additional script(s) that run per action, such as Purchase, Consume, Open, etc.

My goal for this is to have Barcode Buddy import the calorie count metrics into Grocy based on the specific food entries in the openfoodfacts database when I scan a product, if that product exists on the openfoodfacts DB and hasn't been added to Grocy yet.

Then, when a product is consumed via the barcode, it will automatically add the calories and nutrition information to a calorie counter based on the information from openfoodfacts.