-
Notifications
You must be signed in to change notification settings - Fork 803
Notifications
Notifications are now handled by apprise. Apprise lets you send notifications to a large number of supported notification services. Check https://github.com/caronc/apprise/wiki for a detailed list.
To enable Apprise notifications, make a copy of apprise_config.template_json
in the config
directory and name it apprise_config.json
.
Then add apprise formatted urls for your desired notification services as json blobs.
Apprise Example blobs:
[
{
"url": "tgram://{bot_token}/{chat_id}"
},
{
"url": "twilio://{AccountSID}:{AuthToken}@{FromPhoneNo}/{PhoneNo}"
},
{
"url": "slack://{OAuthToken}/#{channel}"
}
]
To enable shock notifications to your Pavlok Shockwatch,
store the url from the pavlok app in the pavlok_config.json
file, you can copy the template from pavlok_config.template_json
.
WARNING: This feature does not currently support adjusting the intensity, it will always be max (255).
{
"base_url": "url goes here"
}
Once you have setup your apprise_config.json
you can test it by running python app.py test-notifications
from within your pipenv shell. This will send a test notification to all configured notification services.