-
Notifications
You must be signed in to change notification settings - Fork 201
Setup notification
Currently, UptimeFlare uses Apprise to send notifications and supports 100+ notification channels.
However, the apprise library is written in Python, and Cloudflare's recently released python worker still has problems deploying apprise. So we are using Vercel serverless deployment for now and this part may change in the future. You can also use the Apprise API deployed by your own.
To setup:
-
Click the button below to deploy apprise on your Vercel account.
-
After deploying, you will get a link like
https://testapprise-lyc8503s-projects.vercel.app/
, appending/notify
to it, and you get the link to the Apprise API server: https://testapprise-lyc8503s-projects.vercel.app/notify -
Write the URL for sending notifications according to the Apprise wiki, which has detailed documentation and instructions on how to set up each notification channel. e.g. For telegram, your URL is
tgram://botToken/chatId
-
Fill in the
workerConfig.notification
configuration:
notification: {
appriseApiServer: "https://testapprise-lyc8503s-projects.vercel.app/notify",
recipientUrl: "tgram://botToken/chatId",
// [Optional] timezone used in notification messages, default to "Etc/GMT"
timeZone: "Asia/Shanghai",
// [Optional] grace period in minutes before sending a notification
// notification will be sent only if the monitor is down for N continuous checks after the initial failure
// if not specified, notification will be sent immediately
gracePeriod: 5,
},
If you know the javascript language, you can use the fetch
API in workerConfig.callbacks
to request the webhook you need without deploying the apprise service.
WARNING: Prolonged blocking in callbacks can cause the entire monitoring to become abnormal. If you don't know how to debug this situation, don't modify the callbacks, use the apprise method above.