Der-Henning / tgtg

Scanner for Too Good To Go Notifications

Home Page:https://github.com/Der-Henning/tgtg/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature-Request] notification on dynamic price changes

floriegl opened this issue · comments

As TGTG recently added the "Dynamic price" feature which reduces the price the closer an unsold item gets to the pickup time, it would be useful to receive notifications about the price changes too. Or maybe even add a way on only notifying when a specific item reaches a specific price.

I would be up to trying to implement the first part of this feature request.

Hi @floriegl.
The latest release 1.18.0 now exposes the item price and value to the Prometheus metrics server.
You could now scrape these metrics with Prometheus and create alerts using Alertmanager or Grafana to be notified when the prices hit a certain value.
As this is a very special use case and would need some major changes to the scanner, I probably will not integrate it directly into the app.

I would also interested in this feature,
It would be nice to have a threshold for the dynamic price notification:
Only when the price is lower than 1/3 of the original / full price then the message should be sent out.