This is a fork of the original Too Good To Go watcher created in order to run it on Heroku.
Node.js cli tool for monitoring your favorite TooGoodToGo businesses. Notifications are shown when the stock of any of the businesses changes. The following notification types are supported:
- Console output
- Telegram chat message
- Heroku intergration
- Install Node.js 8.x or higher (Windows | Linux | OSx).
npm install -g toogoodtogo-watchertoogoodtogo-watcher config. Fill in your TooGoodToGo account details. Optionally enable / disable certain notifications. See Configuring Telegram notifiations for instructions on setting up the Telegram notifications.toogoodtogo-watcher login. Click the link in the login email (on PC, not on phone).toogoodtogo-watcher watch
Usage: toogoodtogo-watcher <command>
Commands:
config Edit the config file.
config-reset Reset the config to the default values.
config-path Show the path of the config file.
login Request a login email.
watch Watch your favourite busininesses for changes.
Options:
--help Show help [boolean]
--version Show version number [boolean]
- Open a Telegram chat with
BotFather. - Follow the instructions to create your own bot.
- Copy the token and enter it in the configuration via
toogoodtogo-watcher config, and setenabledtotrue. - Start the application
toogoodtogo-watcher watch - Click the
t.me/BOTNAMElink from theBotFatherchat message. - Press
BEGIN. - Your bot should greet you, and show a notification about your favorites. Note: the bot will show the favorites which you configured. Multiple people can connect to the bot to get updates about these favorites.
-
Create the following directory structure.
my-docker-compose-stuff │ docker-compose.yaml │ └───toogoodtogo-watcher │ config.json -
Create a directory
toogoodtogo-watcherinside the created directory, and copy the config.defaults.json totoogoodtogo-watcher/config.json. See above for instructions on how to configure the application. -
Create a file
docker-compose.yaml: my-docker-compose-stuff -
Copy the config.defaults.json to
toogoodtogo-watcher/config.json. See above for instructions on how to configure the application. -
Create a file
docker-compose.yamlversion: "3" image: marklagendijk/toogoodtogo-watcher restart: unless-stopped environment: - TZ=Europe/Amsterdam volumes: - ./toogoodtogo-watcher:/home/node/.config/toogoodtogo-watcher-nodejs
Create a new app and set these Config Vars (in App > Settings):
- TELEGRAM_BOT_TOKEN
- TGTG_EMAIL
Create an .env file and add the environment variables, then run:
heroku local
- List favourite business command