watches your favorite tgtg posts to notify you when an item is available.
use .env.development
for your local development
- and start your code with
npm run dev
- start with
npm start
- nodemon with
npm start:watch
# Need to run docker container with this docker image from here:
# https://github.com/unixfox/pupflare
BASE_URL = http://localhost:8888/?url=https://apptoogoodtogo.com/api
AUTH_EMAIL = /auth/v3/authByEmail
REQUEST_POLLING_ID_URL = /auth/v3/authByRequestPollingId
REFRESH_URL = /auth/v3/token/refresh
ITEMS_URL = /item/v8/
# Crawling time in SECONDS!
CRAWLING_INTERVAL = 30
# Token
TOKEN_FILEPATH = ./data
TOKEN_FILENAME = tgtg_token.json
# Cookie
COOKIE_FILEPATH = ./data
COOKIE_FILENAME = tgtg_cookie.txt
# Bot settings
# How to get a Bot Token? -> https://core.telegram.org/bots#how-do-i-create-a-bot
TELEGRAM_BOT_TOKEN = <YOUR_BOT_TOKEN>
# How to get a Chat ID? -> https://stackoverflow.com/a/38388851
# https://api.telegram.org/bot<TOKEN>/getUpdates
CHAT_ID=<YOUR_CHAT_ID>
# TooGoodToGo Account E-Mail
YOUR_EMAIL = <email>
run docker-compose up -d
to create and run a docker container.
- tgtg watcher should run in scheduled time
- refresh token after an interval
- add Telegram Bot
- save token in file
- send message on quantity-change
- !health command added for health check