Skip to content

HaseFlrn/2g2g-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2g2g-bot

Problem

I love to use the 2good2go-app. The only problem that troubles me, is that yoou won't get notified when your favourite stores have restocked.

Solution

I use the 2good2go Python library to get notified via Telegram (more might follow). To set up your own Telegram Bot use this guide. Since I'm running this script on my Raspberry Pi, I use CronTab to schedule the automated runs. Here you can find a good guide about how to use CronTab.

Getting Started

Make sure you installed and configured python3 and pip correctly. Then run:

pip install -r requirements.txt

Run the init.py script first and follow the steps (Opening your mailbox on Desktop or a Device without 2g2g-App before might come handy).

python3 init.py

The script will generate a config.json with your TooGoodToGo credentials. Afterwards follow the steps of the Telegram Bot guide and add the credentials to the respective keys.
In case you also want to use CronTab, you can use the linked guide to find out how it works. Else you can also edit the main.py script and add a python package like schedule to schedule your runs and run:

python3 main.py

About

Telegram bot for TooGoodToGo Notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages