Alerts help you to stay posted when you're out and about. When a new slot is found the alerting backend will send you a notification, so you can send it your confirmation SMS or book the appropriate appointment.
Alerting backends are optional to configure. When a new slot is found the bot will alert you via Audio Text-to-Speech, so if you're on your PC anyways while the bot is running, you're already set up.
Zulip is open source and can be hosted locally, since I use it mainly for various project automations it's what has the best documentation right now. Zulip also offers a public service, along with an app for every major smartphone OS.
Messages older than 120 seconds will be ignored by the bot when waiting for interactive user input.
Alerts can be tested using python main.py --alerts
aka python3 main.py --alerts
.
- Zulip
- Telegram
- Slack
- Pushover
- Gotify
A full documentation of the backend can be found here.
- Register on https://chat.zulip.org/ and login
- Open Settings
- Navigate to Your bots. Choose
Generic bot
and enter Full name and Bot email to your choosing.
- Note the displayed bot email and API key.
- Next we'll have to get your user id rq. For that click on your username in the user-list and note the
user1234
-part.
- Set the bot email and API key you noted in your
settings.py
as shown below. AsZULIP_TARGET
use the user id we just got and add<user-id>@chat.zulip.org
. Make sure you also setZULIP_ENABLED=True
andZULIP_TYPE='private'
.
# Zulip (https://chat.zulip.org/api/)
ZULIP_ENABLED: bool = True
ZULIP_URL: str = 'https://chat.zulip.org/'
ZULIP_MAIL: str = '[email protected]'
ZULIP_KEY: str = 'DSpu0w63ggjWV9AsQjeAWEzNyvW7qymq'
ZULIP_TYPE: str = 'private' # private, stream
ZULIP_TARGET: str = '[email protected]'
ZULIP_TOPIC: str = 'General'
- Download the Zulip smartphone app, login and test your bot using
python main.py --alerts
/python3 main.py --alerts
. If you should not get anynotification, check if your phone allows Zulip to send notifications and in-app if you enabled notifications for private messages (Settings
->Notifications
->Notifications when offline/online
)
⚠ Telegram Bots will only read the LATEST message in the chat (not older than 120 seconds)
-
Visit BotFather and send
/start
-
Create a new bot by sending BotFather
/newbot
- choose the names freely -
Send
/token
and obtain yourTELEGRAM_BOT_TOKEN
forsettings.py
or just copy it from the BotFather message after creating your bot. Start a chat with your bot and send it/start
-
To get your Chat ID send
/start
to IDBot and then obtain your Chat ID using/getid
. Set your ChatID atTELEGRAM_BOT_CHATID
insettings.py
-
Start a private chat with your bot and send
/start
The remote booking feature is NOT (yet?) supported.
-
Set the
SLACK_WEBHOOK_URL
insettings.py
and setSLACK_ENABLED
toTrue
Gotify offers a self hosted push-messaging server.
The remote booking feature is NOT supported since Gotify only works in the server -> client direction